/*
 * Guía de Estilos: Burger House
 * Colores Principales:
 * - Marrón Oscuro (#5D4037): Fondo de la cabecera, color de la carne.
 * - Rojo Oscuro (#C62828): Fondo de la sección Hero, color del tomate.
 * - Amarillo/Ámbar (#FFC107): Color de acento, texto del logo, queso.
 * - Blanco (#FFFFFF): Fondo principal.
 *
 * Fuentes:
 * - 'Bebas Neue', cursive: Títulos (H1, H2, H3).
 * - 'Open Sans', sans-serif: Cuerpo de texto.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #FFFFFF;
}

/* Estructura principal con tabla */
.main-layout {
    width: 100%;
    border-collapse: collapse;
}

/* Estilos de la Cabecera (Header) */
.header-cell {
    /* Color de fondo: Marrón Oscuro */
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
    color: white;
    padding: 20px;
    position: fixed;
    /* Fija la cabecera al hacer scroll */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
}

.logo-cell {
    width: 300px;
    vertical-align: middle;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 15px;
}

.logo-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
    display: inline;
    vertical-align: middle;
}

/* Estilos de la Navegación (Nav) */
.nav-cell {
    text-align: right;
    vertical-align: middle;
}

.nav-table {
    border-collapse: collapse;
    float: right;
}

.nav-table td {
    padding: 0 15px;
    vertical-align: middle;
}

.nav-table a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-table a:hover {
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
}

/* Botón de cambio de idioma (Interacción) */
.lang-btn {
    background: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
    color: #212121;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background: #FFB300;
}

.lang-icon {
    width: 20px;
    height: 20px;
}

/* Estilos de la Sección Principal (Hero) */
.hero-cell {
    /* Color de fondo: Rojo Oscuro */
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: white;
    padding: 120px 20px 80px;
    min-height: 100vh;
    vertical-align: middle;
}

.hero-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    height: 100%;
}

.hero-animation-cell {
    width: 50%;
    text-align: center;
    vertical-align: middle;
    padding: 40px;
}

.hero-text-cell {
    width: 50%;
    vertical-align: middle;
    padding: 40px;
}

.hero-text-cell h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
}

.hero-text-cell p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Botón de Llamada a la Acción (CTA) */
.cta-button {
    background: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
    color: #212121;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Animación de Hamburguesa (CSS puro) - Cumple con el requisito de animación llamativa */
.burger-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
    /* Animación de flotación */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.burger-animation div {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
}

/* Capas de la hamburguesa */
.bun-top {
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, #D4A574 0%, #B8956A 100%);
    top: 20px;
    animation: bounceIn 1s ease-out 0.5s both;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.lettuce {
    width: 180px;
    height: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    top: 80px;
    animation: bounceIn 1s ease-out 1s both;
}

.tomato {
    width: 160px;
    height: 15px;
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    top: 100px;
    animation: bounceIn 1s ease-out 1.2s both;
}

.cheese {
    width: 170px;
    height: 10px;
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    top: 115px;
    animation: bounceIn 1s ease-out 1.4s both;
}

.patty {
    width: 180px;
    height: 40px;
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
    top: 125px;
    animation: bounceIn 1s ease-out 1.6s both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bun-bottom {
    width: 200px;
    height: 50px;
    background: linear-gradient(135deg, #D4A574 0%, #B8956A 100%);
    top: 165px;
    animation: bounceIn 1s ease-out 1.8s both;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Keyframes para la animación de entrada */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3) translateY(-100px);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }

    70% {
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* Estilos de las Secciones de Contenido (Menú) */
.content-cell {
    padding: 0;
}

.section-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    padding: 40px 0;
}

.section-table.alt-bg {
    background-color: #F5F5F5;
    /* Fondo alternativo para separar secciones */
}

.section-title-cell {
    text-align: center;
    padding: 40px 20px 20px;
}

.section-title-cell h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: #795548;
    /* Marrón para títulos de sección */
    margin: 0;
}

.menu-item-cell {
    width: 33.33%;
    vertical-align: top;
    padding: 20px;
}

.menu-item-cell img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-item-cell img:hover {
    transform: scale(1.05);
}

.menu-item-cell h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: #E53935;
    /* Rojo para títulos de producto */
    margin-bottom: 10px;
}

.menu-item-cell p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Estilos de la Sección de Contacto */
.contact-cell {
    /* Color de fondo: Marrón Oscuro */
    background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
    color: white;
    padding: 0;
}

.contact-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
}

.contact-title-cell h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
    margin: 0;
}

.contact-info-cell {
    width: 50%;
    vertical-align: top;
    padding: 20px 40px;
}

.contact-info-cell h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
}

.contact-details {
    border-collapse: collapse;
    width: 100%;
}

.contact-details td {
    padding: 10px 0;
    vertical-align: top;
}

.contact-details strong {
    color: #FFC107;
    /* Color de acento: Amarillo/Ámbar */
    width: 100px;
    display: inline-block;
}

.map-cell {
    width: 50%;
    text-align: center;
    vertical-align: middle;
    padding: 20px 40px;
}

.location-map {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Estilos del Pie de Página (Footer) */
.footer-cell {
    background: #212121;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-cell p {
    margin: 0;
}

/* Diseño Responsivo (Media Queries) */
@media (max-width: 768px) {
    .header-cell {
        position: relative;
        padding: 15px;
    }

    .logo-cell {
        width: 100%;
        text-align: center;
        padding-bottom: 15px;
    }

    .nav-cell {
        width: 100%;
        text-align: center;
    }

    .nav-table {
        float: none;
        margin: 0 auto;
    }

    .nav-table td {
        padding: 5px 8px;
        font-size: 0.9rem;
    }

    .hero-cell {
        padding: 80px 20px 40px;
        min-height: auto;
    }

    .hero-animation-cell,
    .hero-text-cell {
        width: 100%;
        display: block;
        padding: 20px;
    }

    .menu-item-cell {
        width: 100%;
        display: block;
        padding: 15px;
    }

    .contact-info-cell,
    .map-cell {
        width: 100%;
        display: block;
        padding: 20px;
    }

    .section-title-cell h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .nav-table td {
        padding: 3px 5px;
        font-size: 0.8rem;
    }

    .hero-text-cell h2 {
        font-size: 2rem;
    }

    .burger-animation {
        width: 200px;
        height: 200px;
    }

    .bun-top,
    .bun-bottom {
        width: 140px;
        height: 45px;
    }

    .patty {
        width: 120px;
        height: 30px;
    }

    .lettuce,
    .tomato,
    .cheese {
        width: 110px;
    }

    .section-title-cell h2 {
        font-size: 2rem;
    }

    .menu-item-cell h3 {
        font-size: 1.3rem;
    }

    .menu-item-cell p {
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales (para un toque extra) */
.menu-item-cell {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.menu-item-cell:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item-cell:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-item-cell:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}