/* --- ESTILOS GENERALES --- */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

:root {
    --bg-color: #050505;
    --text-main: #f4f4f4;
    --accent: #FF8C00; 
    --accent-yellow: #FFD600; 
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95), transparent);
}

.logo img { 
    height: 60px;
    display: block;
    transform: translateX(-30px);
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    margin-left: 30px; 
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover { color: var(--accent-yellow); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagenes/fondos.jpg');
    background-size: cover;
    background-position: center;
}

/* Animación de entrada para la imagen del hero */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(20px);
    }
}

.hero-image {
    max-width: 1000px;
    width: 30%;
    height: auto;
    margin-bottom: 30px;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.hero h1 {
    font-size: 8.5rem;
    line-height: 0.85;
    letter-spacing: -3px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--accent-yellow);
}

.hero p {
    font-size: 1.2rem;
    margin-top: 2px;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-ordenar {
    margin-top: -40px;
    padding: 15px 35px;
    background-color: var(--accent);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-ordenar:hover { 
    transform: scale(1.05); 
    background-color: var(--accent-yellow);
}

/* --- ESTILOS DEL MENÚ ESTÁTICO --- */
.pedidos-section {
    padding: 80px 20px;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
}

.pedidos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pedidos-section h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 10px;
}

.pedidos-section h2 span {
    color: var(--accent-yellow);
}

.pedidos-section .subtitle {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.agregados-info {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 40px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.burger-card-menu {
    background: #111;
    border: 1px solid #222;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.burger-card-menu:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.burger-card-menu img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.burger-info {
    padding: 20px;
}

.burger-info h4 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 900;
}

.burger-info .desc {
    color: #999;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 45px;
}

.price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.price-row .price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-yellow);
}

.price-row .type {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-right: 15px;
}

.btn-agregar {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-agregar:hover {
    background: var(--accent);
    color: #000;
}

/* --- ESTILOS DEL FORMULARIO DE PEDIDO JS --- */
#seccion-formulario {
    background-color: #050505;
    padding-top: 40px;
    padding-bottom: 80px;
    border-bottom: 1px solid #222;
    display: none;
}

.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px;
}

.btn-orange {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.btn-orange:hover { background-color: var(--accent-yellow); }

.btn-secondary {
    background-color: #222;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover { background-color: #333; }

.burger-card-selector {
    border: 2px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
    background-color: #1a1a1a;
}

.burger-card-selector.selected {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.2);
}

.burger-card-selector img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.burger-card-selector .burger-info-mini {
    padding: 10px;
    text-align: center;
}

.burger-card-selector h4 { color: var(--text-main); margin-bottom: 5px; font-size: 1rem;}
.burger-card-selector p { color: var(--accent-yellow); font-weight: bold; margin: 0;}

.cantidad-btn {
    padding: 12px 24px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px;
    font-size: 1.1rem;
}

.cantidad-btn:hover {
    background-color: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.resumen-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border-left: 4px solid var(--accent-yellow);
}

.ingredientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

input, textarea {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

label {
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* --- SECCIÓN DE LA HAMBURGUESA (GSAP) --- */
.burger-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('imagenes/fondochb.jpg');
    background-size: cover;
    background-position: center;
}

.burger-stack {
    position: relative;
    width: 300px;
    height: 300px;
    margin-top: 100px;
}

.ingrediente {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px; 
    height: auto;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.9)); 
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pan-sup { z-index: 5; margin-top: -40px; }
.lechuga { z-index: 4; margin-top: -9px; }
.tomate  { z-index: 3; margin-top: 5px; }
.carne   { z-index: 2; margin-top: 6px; width: 200px; }
.pan-inf { z-index: 1; margin-top: 10px; }

/* --- TEXTOS FLOTANTES ANIMADOS --- */
.promo-izq-container, .promo-der-container {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* --- Lado Izquierdo --- */
.promo-izq-container {
    top: 5%;
    left: 0%;
    width: 550px;
}
.texto-izq-img {
    width: 100%;
    opacity: 0;
    transform: translateX(-30px);
}
.flecha-izq-img {
    width: 180px; 
    position: absolute;
    top: 100%; 
    left: 35%;
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
}

/* --- Lado Derecho --- */
.promo-der-container {
    top: 15%;
    right: 5%;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.palabras-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
}
.palabra-der {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateY(-20px); 
}
.flecha-der-img {
    width: 20px; 
    margin-top: 15px;
    opacity: 0;
    transform: scaleY(0); 
    transform-origin: top center; 
}

/* --- SECCIÓN DE DETALLES --- */
.details-section {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #222;
}

.detail-card {
    background: #111;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.detail-card:hover { transform: translateY(-10px); border-color: var(--accent-yellow); }
.detail-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--accent); text-transform: uppercase;}
.detail-card p { color: #999; line-height: 1.6; font-size: 0.95rem; }
.detail-card strong { color: var(--text-main); font-size: 1.1rem; display: block; margin-top: 15px; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
    background-color: #050505;
}

/* --- MEDIA QUERIES - RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navegación */
    nav {
        padding: 12px 20px;
    }
    
    .logo img { 
        height: 45px;
        transform: translateX(-15px);
    }
    
    .nav-links a { 
        margin-left: 15px;
        font-size: 0.75rem;
    }
    
    /* Hero Section */
    .hero {
        height: 100vh !important;
        height: 100dvh !important;
    }
    
    .hero-image {
        width: 100%;
        max-width: 600px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 0.9;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-ordenar {
        margin-top: 20px;
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* Burger Section */
    .burger-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        padding: 0 !important;
    }
    
    .burger-stack {
        width: 240px;
        height: 240px;
        margin-top: 20px;
    }
    
    .ingrediente {
        width: 180px;
    }
    
    .carne {
        width: 150px !important;
    }

    /* Textos Flotantes Tablets */
    .promo-izq-container { width: 200px; top: 15%; }
    .flecha-izq-img { width: 70px; left: 30%; }
    .promo-der-container { width: 180px; top: 20%; right: 2%; }
    
    /* Menu Section */
    .pedidos-section {
        padding: 60px 15px;
    }
    
    .pedidos-section h2 {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .burger-card-menu img {
        height: 250px;
    }
    
    /* Formulario */
    .card {
        padding: 20px;
        border-radius: 10px;
    }
    
    .btn-orange, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .cantidad-btn {
        padding: 10px 20px;
        margin: 8px 5px;
        font-size: 1rem;
    }
    
    .ingredientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    input, textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    /* Detalles */
    .details-section {
        padding: 60px 15px;
        gap: 20px;
    }
    
    .detail-card {
        padding: 30px 20px;
    }
    
    .detail-card h3 {
        font-size: 1.4rem;
    }
    
    .detail-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Navegación Celulares - Centrado Absoluto Inamovible */
    nav {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 0 !important;
        width: 100% !important;
    }
    
    .logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    .logo img { 
        height: 42px !important;
        display: block !important;
        margin: 0 auto !important;
        transform: translateX(0) !important; 
    }
    
    .nav-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .nav-links a { 
        margin-left: 0 !important;
        font-size: 0.75rem !important;
    }
    
    /* Hero Section */
    .hero {
        height: 100vh !important;
        height: 100dvh !important;
        padding-top: 0 !important;
    }
    
    .hero-image {
        width: 90%;
        margin-bottom: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    /* Burger Section */
    .burger-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        padding: 0 !important;
    }
    
    .burger-stack {
        width: 200px;
        height: 200px;
        margin-top: 80px;
    }
    
    .ingrediente {
        width: 150px;
    }
    
    .carne {
        width: 120px !important;
    }

    /* Textos Flotantes Celulares (FORZADOS CON !IMPORTANT) */
    .promo-izq-container { 
        width: 170px !important; 
        top: 37% !important; 
        left: 0% !important; 
    }
    .flecha-izq-img { 
        width: 100px !important; 
        top: 120% !important; 
        left: 15% !important; 
    }
    
    .promo-der-container { 
        width: 140px !important; 
        top: 35% !important; 
        right: 2% !important; 
    }
    .flecha-der-img { 
        width: 13px !important; 
        margin-top: 5px !important;
    }
    
    /* Menu */
    .pedidos-section {
        padding: 40px 10px;
    }
    
    .pedidos-section h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .pedidos-section .subtitle {
        font-size: 0.8rem;
    }
    
    .agregados-info {
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    
    .burger-info h4 {
        font-size: 1.2rem;
    }
    
    .burger-info .desc {
        font-size: 0.85rem;
        min-height: auto;
    }
    
    .price-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-agregar {
        width: 100%;
        padding: 8px 15px;
        font-size: 0.75rem;
    }
    
    /* Formulario */
    .card {
        padding: 15px;
    }
    
    .btn-orange, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .ingredientes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Detalles */
    .detail-card {
        padding: 20px 15px;
    }
    
    .detail-card h3 {
        font-size: 1.2rem;
    }
    
    .detail-card p {
        font-size: 0.85rem;
    }
}