/* ----- RESET Y ESTILOS GLOBALES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #1a0e08 0%, #2d1810 50%, #1a0e08 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Fondo con partículas decorativas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.05), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.05), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.05), transparent),
        radial-gradient(2px 2px at 80% 80%, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

/* ----- CONTENEDOR PRINCIPAL ----- */
.container {
    max-width: 750px;
    width: 100%;
    background: linear-gradient(180deg, #fff6e8 0%, #f5e6d3 100%);
    border-radius: 60px 60px 40px 40px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 40px rgba(255,255,255,0.1);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease;
    position: relative;
}

.container:hover {
    transform: scale(1.01);
}

/* ----- ENCABEZADO ----- */
.header {
    background: linear-gradient(135deg, #c2410c, #e65c1e);
    padding: 25px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: slideBackground 10s linear infinite;
}

@keyframes slideBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(50px); }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header h1 {
    color: white;
    font-size: 2.2rem;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.emoji-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    margin: 5px 0;
}

.emoji-bounce {
    display: inline-block;
    animation: bounceEmoji 2s infinite;
}

@keyframes bounceEmoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-top: 5px;
}

/* ----- ÁREA DE LA HAMBURGUESA ----- */
.burger-area {
    background: linear-gradient(180deg, #fbe9c3 0%, #f5dca8 100%);
    padding: 25px 20px 15px;
    border-bottom: 4px solid #d9a13b;
    position: relative;
}

.burger-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 420px;
    overflow-y: auto;
    padding: 20px 15px;
    background: linear-gradient(180deg, #f7e5c2, #f0dbb5);
    border-radius: 50px;
    box-shadow: 
        inset 0 0 0 3px #fffaef,
        inset 0 0 0 6px #d9a13b,
        inset 0 0 30px rgba(0,0,0,0.1);
    position: relative;
    scroll-behavior: smooth;
}

/* Scroll personalizado */
.burger-container::-webkit-scrollbar {
    width: 8px;
}

.burger-container::-webkit-scrollbar-track {
    background: #d9a13b40;
    border-radius: 10px;
}

.burger-container::-webkit-scrollbar-thumb {
    background: #d9a13b;
    border-radius: 10px;
}

.burger-container::-webkit-scrollbar-thumb:hover {
    background: #c48a2a;
}

/* Sombra de la hamburguesa */
.burger-shadow {
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.15), transparent);
    margin: 0 auto;
    margin-top: -10px;
    filter: blur(8px);
}

/* ----- ELEMENTOS DE LA HAMBURGUESA ----- */
.pan-superior {
    background: linear-gradient(180deg, #e8b84a, #d49a2e);
    width: 280px;
    height: 70px;
    border-radius: 120px 120px 30px 30px;
    box-shadow: 0 8px 0 #a75f1a, 0 10px 20px rgba(0,0,0,0.2);
    margin-bottom: 5px;
    position: relative;
    border-bottom: 3px solid #c4882a;
}

.semillas {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-around;
    color: #d49a2e;
    font-size: 1.2rem;
    letter-spacing: 15px;
    opacity: 0.6;
}

.pan-inferior {
    background: linear-gradient(180deg, #d49a2e, #c4882a);
    width: 280px;
    height: 45px;
    border-radius: 15px 15px 80px 80px;
    box-shadow: 0 8px 0 #a75f1a, 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 5px;
    border-top: 3px solid #b87a20;
}

.carne {
    background: linear-gradient(180deg, #7a4622, #5a3218);
    width: 260px;
    height: 32px;
    border-radius: 45px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.1);
    margin: 4px 0;
    position: relative;
}

.carne::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.1) 10px,
        rgba(0,0,0,0.1) 12px
    );
    border-radius: 50%;
}

/* ----- INGREDIENTES (animados) ----- */
.hamburguesa-ingrediente {
    width: 260px;
    border-radius: 30px;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    position: relative;
    animation: aparecerIngrediente 0.3s ease-out;
}

@keyframes aparecerIngrediente {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hamburguesa-ingrediente:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.queso {
    background: linear-gradient(135deg, #ffdb5c, #f5b81b);
    height: 14px;
    border: 1px solid #e6a017;
}

.tocino {
    background: repeating-linear-gradient(45deg, #c46d3a, #c46d3a 8px, #a04d20 8px, #a04d20 16px);
    height: 12px;
    border-radius: 20px;
}

.salsa-bbq {
    background: radial-gradient(circle, #9b4b2c, #5a2210);
    height: 8px;
    filter: blur(0.2px);
}

.salsa-picante {
    background: repeating-linear-gradient(90deg, #ff7b2c, #ff3c00);
    height: 8px;
    animation: vibrarSalsa 0.3s ease-in-out;
}

@keyframes vibrarSalsa {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(6px) rotate(3deg); }
    40% { transform: translateX(-6px) rotate(-3deg); }
    60% { transform: translateX(4px) rotate(2deg); }
    80% { transform: translateX(-4px) rotate(-2deg); }
}

/* ----- ESTADÍSTICAS ----- */
.stats {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #2f241b, #1a1208);
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 120px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #ffdd99;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.stat-number {
    color: #ffb347;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-unit {
    color: #ffdd99;
    font-size: 0.8rem;
    margin-left: 3px;
}

.stat-altura .stat-number { color: #ffb347; }
.stat-calorias .stat-number { color: #ff6b35; }
.stat-ingredientes .stat-number { color: #ffd93d; }

/* ----- BARRA DE MONSTRUOSIDAD ----- */
.monstruosidad {
    background: linear-gradient(135deg, #2f241b, #1a1208);
    padding: 15px 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.monstruosidad-label {
    color: #ffdd99;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ffeb3b, #ff6b35, #ff1744);
    border-radius: 50px;
    transition: width 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    width: 0%;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.monstruosidad-porcentaje {
    display: block;
    text-align: center;
    color: #ffdd99;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
}

/* ----- ADVERTENCIA ----- */
.advertencia {
    background: linear-gradient(135deg, #9b2c1d, #7a2215);
    color: #ffd966;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    animation: alertaPulsar 0.5s ease-in-out 3;
}

@keyframes alertaPulsar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.advertencia-icon {
    font-size: 1.5rem;
}

/* ----- BOTONES ----- */
.botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    justify-content: center;
    background: linear-gradient(180deg, #e7cfaa, #dbb892);
}

.btn {
    border: none;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 60px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-text {
    font-weight: bold;
}

.btn-info {
    font-size: 0.7rem;
    opacity: 0.8;
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 20px;
}

.btn-queso {
    background: linear-gradient(135deg, #e6b422, #d49a1a);
    color: #3b2a0f;
    box-shadow: 0 4px 0 #b47c10, 0 6px 15px rgba(230, 180, 34, 0.3);
}

.btn-queso:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b47c10, 0 10px 25px rgba(230, 180, 34, 0.4);
}

.btn-tocino {
    background: linear-gradient(135deg, #bc6f36, #a55a2a);
    color: white;
    box-shadow: 0 4px 0 #8a4f1f, 0 6px 15px rgba(188, 111, 54, 0.3);
}

.btn-tocino:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8a4f1f, 0 10px 25px rgba(188, 111, 54, 0.4);
}

.btn-bbq {
    background: linear-gradient(135deg, #a5522d, #8a3f1f);
    color: white;
    box-shadow: 0 4px 0 #773a1e, 0 6px 15px rgba(165, 82, 45, 0.3);
}

.btn-bbq:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #773a1e, 0 10px 25px rgba(165, 82, 45, 0.4);
}

.btn-picante {
    background: linear-gradient(135deg, #d6431e, #b8350f);
    color: white;
    box-shadow: 0 4px 0 #992b0f, 0 6px 15px rgba(214, 67, 30, 0.3);
}

.btn-picante:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #992b0f, 0 10px 25px rgba(214, 67, 30, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #5f3b2c, #4a2c1f);
    color: white;
    box-shadow: 0 4px 0 #352219, 0 6px 15px rgba(95, 59, 44, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #352219, 0 10px 25px rgba(95, 59, 44, 0.4);
}

/* ----- PIE DE PÁGINA ----- */
.footer {
    background: linear-gradient(180deg, #fbe9c3, #f0dbb5);
    text-align: center;
    font-size: 0.8rem;
    padding: 15px;
    color: #6b3a1c;
    border-top: 1px solid #d9a13b;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .pan-superior, .pan-inferior {
        width: 220px;
    }
    
    .carne, .hamburguesa-ingrediente {
        width: 200px;
    }
    
    .stat {
        min-width: 80px;
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn {
        min-width: 80px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .btn-text {
        display: none;
    }
    
    .btn-info {
        display: none;
    }
}