/* ===== FUENTES PERSONALIZADAS ===== */
@font-face {
    font-family: 'Peanut Butter';
    src: url('../fonts/peanut_butter_2/Peanut Butter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-baloo {
    font-family: 'Baloo 2', cursive;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

.font-peanut {
    font-family: 'Peanut Butter', cursive;
}

/* ===== ESTILOS PERSONALIZADADOS ===== */

/* View Transitions API */
@view-transition {
    navigation: auto;
}

::view-transition-group(*) {
    animation-duration: 1s;
}

/* Estilo personalizado para el subrayado */
.underline-custom {
    position: relative;
    display: inline-block;
}

.underline-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.underline-custom:hover::after {
    width: 100%;
}

/* Estilos del grid del menú */
.menu-grid-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-item {
    transition: all 0.3s ease;
}

.accordion-slot {
    grid-column: 1 / -1;
    transition: all 0.3s ease;
}

.accordion-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilidades de animación de desplazamiento */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Scroll animations */
section {
    view-timeline: --scroll;
}

/* ===== ESTILOS WORDPRESS ===== */

/* Ajustes para WordPress admin bar */
.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px !important;
    }
}

/* Asegurar que el contenido no quede detrás del header fijo */
main {
    margin-top: 80px;
}

/* Modal de reservas para WordPress */
#modalReserva {
    z-index: 99999;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #9B031A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Correcciones específicas para elementos */
.filter.grayscale {
    filter: grayscale(100%);
}

.filter.grayscale-0 {
    filter: grayscale(0%);
}

/* Asegurar que las imágenes sean responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Mejoras para formularios */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
}

/* Utilidades personalizadas adicionales */
.rounded-br-\[40px\] {
    border-bottom-right-radius: 40px;
}

.rounded-tl-\[40px\] {
    border-top-left-radius: 40px;
}

.rounded-tr-\[40px\] {
    border-top-right-radius: 40px;
}

.rounded-bl-\[40px\] {
    border-bottom-left-radius: 40px;
}

.bg-\[\#D99422\] {
    background-color: #D99422;
}