/* Estilos globales optimizados y responsive */
:root {
    --color-primario: #d32f2f;
    --color-secundario: #ff9800;
    --color-fondo: #f5f5f5;
    --color-texto: #333;
    --color-blanco: #fff;
    --sombra: 0 4px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

/* Estilos del header y navegación */
header {
    background-color: #481e26ff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 220px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

.nav-desktop a:hover {
    color: var(--color-secundario);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    width: 42px;
    height: 42px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-blanco);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Menú hamburguesa para móviles */
.nav-mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    /* background-color: var(--color-primario); */
    background-color: #481e26ff;
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-mobile.active {
    left: 0;
}

.nav-mobile a {
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 1.2rem;
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-blanco);
    font-size: 1.5rem;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* Estilos del banner */
.banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos de las secciones */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primario);
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background-color: var(--color-fondo);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-primario);
    z-index: 0;
}

/* Estilos de la sección historia */
.historia-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.historia-contenido > div {
    flex: 1 1 300px;
}

.historia-contenido img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--sombra);
}

/* Contenedor principal del menú */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #7d0000;
}

/* Contenedor de cada tarjeta */
.card-container {
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

/* La tarjeta que gira */
.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    border-radius: 10px;
    cursor: pointer;
}

/* Efecto hover para desktop */
@media (hover: hover) {
    .card-container:hover .flip-card:not(.active) {
        transform: rotateX(180deg);
    }
}

/* Efecto para dispositivos táctiles */
.flip-card.active {
    transform: rotateX(180deg);
}

/* Estilos comunes para ambas caras */
.flip-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Cara frontal */
.flip-card-front {
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: rotateY(0deg);
}

.flip-card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 3px solid #7d0000;
}

.dish-info {
    height: 30%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dish-info a {
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.flip-card-front h3 {
    margin: 0;
    color: #7d0000;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

.flip-card-front .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    margin-top: 10px;
}

/* Cara trasera */
.flip-card-back {
    background: linear-gradient(135deg, #032336 0%, #004d7a 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Asegura que el contenedor tenga perspectiva */
.card-container {
    perspective: 1000px;
    width: 300px;
    height: 400px;
}

/* Estilo base para la tarjeta */
.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 10px;
    cursor: pointer;
}

/* Efecto hover para desktop */
@media (hover: hover) {
    .card-container:hover .flip-card {
        transform: rotateX(180deg);
    }
}

/* Efecto para dispositivos táctiles */
.flip-card.flipped {
    transform: rotateX(180deg);
}

/* Estilos para ambas caras */
.flip-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cara frontal - posición normal */
.flip-card-front {
    transform: rotatex(0deg);
}

/* Cara trasera - posición invertida */
.flip-card-back {
    transform: rotateX(180deg);
}

/*FIN DE LOS ESTILOS TARJETAS*/

/* Estilos del paginador */
.paginador {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.paginador a {
    padding: 0.5rem 1rem;
    border: 1px solid rgb(255, 255, 255);
    text-decoration: none;
    color: #7d0000;
    border-radius: 4px;
    transition: all 0.3s;
    background-color: #ffffff;
}

.paginador div {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    background-color: #7d0000;
}

.paginador a:hover, .paginador .seleccionado {
    background-color: var(--color-primario);
    color: white;
    border-color: var(--color-primario);
}

/* Estilos de contacto */
.contacto-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.contacto-contenido img {
    max-width: 200px;
}

.social-contact {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-contact img {
    width: 40px;
    transition: transform 0.3s;
}

.social-contact img:hover {
    transform: scale(1.2);
}

/* Estilos del footer */
footer {
    background-color: #222;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-highlight {
    color: var(--color-secundario);
    font-weight: bold;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .banner {
        height: 300px;
    }

    section {
        padding: 2rem 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .card {
        height: auto;
    }

    /*Agregado por mi LOGO*/
    .logo {
        width: 180px;
    }

    .logo img {
        width: 100%;
        height: auto;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s;
    }

    .social-icons img:hover {
        transform: scale(1.5);
    }
    /*Fin Agregado por mi LOGO*/
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .banner {
        height: 200px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .dish-info h3 {
        font-size: medium;
    }

    /*Agregado por mi LOGO*/
    .logo {
        width: 160px;
    }

    .logo img {
        width: 100%;
        height: auto;
    }

    .social-icons img {
        width: 32px;
        height: 32px;
        transition: transform 0.3s;
    }

    .social-icons img:hover {
        transform: scale(1.5);
    }
    /*Fin Agregado por mi LOGO*/
}

/*AGREGADO POR MI VIDEO*/
.videot {
    display: grid;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100vh; /* Ajusta la altura según tus necesidades */
    overflow: hidden; /* Oculta cualquier parte del video que sobresalga */
    background-color: rgba(0, 0, 0, 0.3);
}
.videot h1 {
    margin-bottom: -80px;
    font-size: 40px;
    color: #fff;
    text-shadow: 0 0 50px rgba(0, 0, 0, 1);
}
.videot img {
    margin-top: -100px;
    width: 100%;
}
.videot video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Asegura que el video esté detrás del contenido */
}

@media (max-width: 768px) {
    .videot {
    display: grid;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: auto; /* Ajusta la altura según tus necesidades */
    overflow: hidden; /* Oculta cualquier parte del video que sobresalga */
    background-color: rgba(0, 0, 0, 0.3);
    }
    .videot h1 {
        margin-bottom: -42px;
        font-size: 24px;
        color: #fff;
        text-shadow: 0 0 50px rgba(0, 0, 0, 1);
    }
    .videot img {
        width: 100%;
        margin-top: 0px;
    }
    .videot video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        height: 100%;
        z-index: -1; /* Asegura que el video esté detrás del contenido */
    }
}

@media (max-width: 480px) {
    .videot {
    display: grid;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: auto; /* Ajusta la altura según tus necesidades */
    overflow: hidden; /* Oculta cualquier parte del video que sobresalga */
    background-color: rgba(0, 0, 0, 0.3);
    }
    .videot h1 {
        margin-top: 10px;
        margin-bottom: -42px;
        font-size: 16px;
        color: #fff;
        text-shadow: 0 0 50px rgba(0, 0, 0, 1);
    }
    .videot img {
        width: 100%;
        margin-top: 0px;
    }
    .videot video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        height: 100%;
        z-index: -1; /* Asegura que el video esté detrás del contenido */
    }
}

/*FIN AGREGADO POR MI VIDEO*/

/* Estilos para la barra de búsqueda */
.search-container {
    max-width: 1200px;
    /* margin: 0 auto 30px; */
    margin: 0 auto;
    padding: 15px;
    background-color: #7d0000;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-form input[type="text"],
.search-form input[type="number"],
.search-form select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form button {
    background-color: #ff1900;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #7e0d00;
}

.clear-search {
    display: inline-block;
    margin-top: 10px;
    color: #ff0000;
    text-decoration: none;
    font-size: 16px;
    background-color: #ffffff;
    padding: 7px 20px;
    border-radius: 4px;
}

.clear-search:hover {
    background-color: #ff1900;
    color: white;
    cursor: pointer;
    /* font-size: 16px; */
    transition: background-color 0.3s;
    /* text-decoration: underline; */
}

.no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: #fff;
    font-size: 18px;
}