/* ============================================
   RESET Y VARIABLES
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-neon: #39ff14;
    --accent-neon-hover: #2dd60f;
    --accent-pink: #ff10f0;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: var(--spacing-md); }
.hidden { display: none !important; }
.accent { color: var(--accent-neon); }

/* VISTAS */
.view { display: none; min-height: 100vh; opacity: 0; transition: opacity var(--transition-slow); }
.view.active { display: flex; align-items: center; justify-content: center; opacity: 1; }

/* LANDING */
#landing { text-align: center; }
.hero { max-width: 1200px !important; width: 100%; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hero-title { font-size: clamp(1.5rem, 2.8vw, 2.8rem) !important; line-height: 1.3 !important; width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--text-secondary); margin-bottom: var(--spacing-xl); max-width: 600px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) { .hero-title { white-space: normal; font-size: 1.6rem !important; } }

/* BOTONES PRINCIPALES (HERO) */
.cta-button {
    background: var(--accent-neon); color: var(--bg-dark); border: none; padding: 1.2rem 3rem;
    font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 900; cursor: pointer; border-radius: 0;
    text-transform: uppercase; letter-spacing: 0.05em; transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3); position: relative; overflow: hidden; z-index: 1;
}
.cta-button::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: var(--accent-neon-hover); border-radius: 50%; transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal); z-index: -1;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(57, 255, 20, 0.6); }
.cta-button:hover::before { width: 300px; height: 300px; }

/* QUIZ */
#quiz { padding-top: var(--spacing-md); }
.quiz-header { margin-bottom: var(--spacing-xl); }
.progress-bar { width: 100%; height: 4px; background: var(--bg-card); border-radius: 2px; overflow: hidden; margin-bottom: var(--spacing-sm); }
.progress-fill { height: 100%; background: var(--accent-neon); width: 0%; transition: width var(--transition-normal); box-shadow: 0 0 10px var(--accent-neon); }
.progress-text { display: block; text-align: center; color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.quiz-content { max-width: 700px; margin: 0 auto; }
.question-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: var(--spacing-lg); line-height: 1.2; text-align: center; }
.options-container { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.option-btn {
    background: var(--bg-card); border: 2px solid transparent; color: var(--text-primary);
    padding: 1.5rem 2rem; font-size: clamp(1rem, 2vw, 1.2rem); text-align: left; cursor: pointer;
    transition: all var(--transition-fast); position: relative; overflow: hidden;
}
.option-btn::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--accent-neon); transform: scaleY(0); transition: transform var(--transition-normal); }
.option-btn:hover { border-color: var(--accent-neon); background: rgba(57, 255, 20, 0.05); }
.option-btn:hover::before { transform: scaleY(1); }
.option-btn:active { transform: scale(0.98); }

/* RESULTADOS */
#results { padding-top: var(--spacing-md); }
.loading-screen { text-align: center; min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loading-spinner { width: 80px; height: 80px; border: 4px solid var(--bg-card); border-top-color: var(--accent-neon); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: var(--spacing-md); box-shadow: 0 0 20px rgba(57, 255, 20, 0.3); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-secondary); max-width: 400px; }
.results-content { text-align: center; }
.results-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: var(--spacing-xl); line-height: 1.2; scroll-margin-top: 20px; }

/* PRODUCT CARD */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); margin-bottom: var(--spacing-lg); transition: opacity 0.3s ease; }
.product-card { background: var(--bg-card); padding: var(--spacing-md); transition: transform var(--transition-normal); border: 2px solid transparent; }
.product-card:hover { transform: translateY(-8px); border-color: var(--accent-neon); }
.product-image { width: 100%; height: 220px; object-fit: contain; background: #ffffff; border-radius: 8px; margin-bottom: 15px; padding: 15px; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); position: relative; }
.product-image:after { content: "Imagen no disponible"; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #333; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.8rem; z-index: -1; }
.product-title { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--spacing-sm); line-height: 1.3; }
.product-description { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: var(--spacing-md); line-height: 1.5; }
.product-btn {
    background: transparent; border: 2px solid var(--accent-neon); color: var(--accent-neon);
    padding: 0.8rem 1.5rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-transform: uppercase;
    letter-spacing: 0.05em; transition: all var(--transition-fast); width: 100%; text-decoration: none; display: inline-block;
}
.product-btn:hover { background: var(--accent-neon); color: var(--bg-dark); box-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .panic-btn {
    bottom: 110px !important;
          right: 10px !important;
          /* Hacemos el botón un pelín más compacto en móvil para que moleste menos */
          padding: 8px 16px !important;
          font-size: 0.85rem !important;
          /* Aseguramos que flote sobre todo */
          z-index: 9999 !important;
    }
    .container {
      padding-bottom: 180px !important;
      padding: var(--spacing-sm); }
    .hero-title { margin-bottom: var(--spacing-sm); }
    .hero-subtitle { margin-bottom: var(--spacing-md); }
    .cta-button { padding: 1rem 2rem; width: 100%; }
    .option-btn { padding: 1.2rem 1.5rem; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card { max-width: 100%; }
    .social-footer {
        padding: 10px 5px;
    }
    .social-content {
        gap: 10px;
    }
}
@media (max-width: 480px) { .hero-title br, .results-title br { display: none; } }

/* ANIMACIONES */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.option-btn, .product-card { animation: fadeInUp var(--transition-normal) ease-out; }
.option-btn:nth-child(1) { animation-delay: 0.1s; } .option-btn:nth-child(2) { animation-delay: 0.2s; }
.option-btn:nth-child(3) { animation-delay: 0.3s; } .option-btn:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(1) { animation-delay: 0.1s; } .product-card:nth-child(2) { animation-delay: 0.2s; } .product-card:nth-child(3) { animation-delay: 0.3s; }

/* SOCIAL Y WHATSAPP */
.share-whatsapp-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 1rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; transition: color 0.2s ease; }
.share-whatsapp-link:hover { color: var(--accent-neon); }
.share-whatsapp-link svg { fill: currentColor; }
.social-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(10px); border-top: 1px solid #333; padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; z-index: 100; }
.social-content { display: flex; align-items: center; gap: 20px; }
.social-text { font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.social-icons { display: flex; gap: 15px; }
.legal-links { font-size: 0.7rem; color: #666; margin-top: 4px; }
.legal-links a { color: #888; text-decoration: none; transition: color 0.2s; }
.legal-links a:hover { color: var(--accent-neon); }
.social-link { display: flex; align-items: center; justify-content: center; color: var(--text-primary); width: 24px; height: 24px; transition: transform 0.2s ease, color 0.2s ease; }
.social-link svg { width: 100%; height: 100%; display: block; }
@media (max-width: 480px) { .social-content { flex-direction: column; gap: 8px; } .social-footer { padding-bottom: 15px; } }

/* IDIOMA */
.lang-selector { position: absolute; top: 20px; right: 20px; z-index: 1000; }
.lang-btn { background: rgba(0,0,0,0.6); border: 1px solid #444; color: white; padding: 8px 12px; cursor: pointer; border-radius: 30px; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; }
.lang-btn:hover { background: #000; border-color: #00ff00; }
.fi { width: 24px; height: 18px; border-radius: 4px; background-size: cover; }
.lang-dropdown { display: none; position: absolute; top: 110%; right: 0; background: #000; border: 1px solid #333; list-style: none; padding: 5px 0; margin: 0; border-radius: 8px; width: 160px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.lang-dropdown.show { display: block; }
.lang-dropdown li a { display: flex; align-items: center; gap: 12px; padding: 10px 15px; color: #ccc; text-decoration: none; font-size: 14px; transition: 0.2s; }
.lang-dropdown li a:hover { background: #1a1a1a; color: #fff; }

/* WIDGET FLOTANTE */
.floating-deal { position: fixed; top: 20px; left: 20px; width: 260px; background: rgba(20, 20, 20, 0.95); border: 1px solid #333; border-left: 3px solid var(--accent-neon); border-radius: 8px; padding: 15px; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-family: sans-serif; animation: slideInLeft 0.5s ease-out; display: block; }
.floating-deal.closed { display: none; }
.close-deal {
    position: absolute;
    top: -10px; /* Lo sacamos un poco para que destaque */
    right: -10px;
    background: #333; /* Fondo oscuro para que se vea */
    border: 2px solid var(--accent-neon); /* Borde neón */
    color: #fff;
    font-size: 1.2rem;
    width: 30px; /* Tamaño fijo generoso */
    height: 30px;
    border-radius: 50%; /* Redondo */
    cursor: pointer;
    z-index: 10000; /* Por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-deal:hover {
    background: var(--accent-neon);
    color: #000;
    transform: scale(1.1);
}
.deal-tag-mini { font-size: 0.65rem; font-weight: 900; color: var(--accent-neon); letter-spacing: 1px; margin-bottom: 5px; display: block; text-transform: uppercase; }
.mini-product { display: flex; flex-direction: column; gap: 10px; }
.mini-img-wrapper { width: 100%; height: 120px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; padding: 5px; }
.mini-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.mini-title { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-btn { background: var(--accent-neon); color: var(--bg-dark); text-align: center; padding: 8px; font-size: 0.8rem; font-weight: 800; text-decoration: none; border-radius: 4px; display: block; margin-top: 5px; transition: transform 0.2s; }
.mini-btn:hover { transform: scale(1.02); box-shadow: 0 0 10px rgba(57, 255, 20, 0.4); }
.mini-price-container { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; margin-bottom: 4px; }
.mini-old-price { text-decoration: line-through; color: #888; font-size: 0.8rem; }
.mini-new-price { color: var(--accent-neon); font-weight: 900; font-size: 1.1rem; text-shadow: 0 0 5px rgba(57, 255, 20, 0.2); }
@keyframes slideInLeft { from { transform: translateX(-100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 480px) { .floating-deal { top: auto; bottom: 80px; left: 10px; width: 200px; } .mini-img-wrapper { height: 100px; } }

/* MODAL */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 999999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background-color: #000; border: 2px solid #39ff14; box-shadow: 0 0 25px rgba(57, 255, 20, 0.3); padding: 30px; border-radius: 8px; width: 90%; max-width: 400px; color: #fff; text-align: center; font-family: sans-serif; position: relative; }
.modal-box h3 { margin-top: 0; color: #39ff14; text-transform: uppercase; letter-spacing: 1px; }
.modal-box input, .modal-box textarea { width: 100%; background: #111; border: 1px solid #333; color: #fff; padding: 12px; margin: 10px 0 15px 0; border-radius: 4px; box-sizing: border-box; }
.modal-box input:focus, .modal-box textarea:focus { outline: none; border-color: #39ff14; }
.modal-box button { width: 100%; padding: 15px; background-color: #39ff14; color: #000; font-weight: bold; border: none; cursor: pointer; text-transform: uppercase; font-size: 16px; }
.modal-box button:hover { box-shadow: 0 0 15px #39ff14; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; cursor: pointer; color: #666; }
.close-btn:hover { color: #fff; }

/* ============================================
   ESTILOS NUEVOS Y MODIFICADOS
   ============================================ */

/* BANNER AMAZON PRIME */
.prime-banner {
    display: inline-block; margin: 0 auto var(--spacing-md) auto; background: rgba(0, 168, 225, 0.15); border: 1px solid #00A8E1;
    color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-size: 0.95rem; font-weight: 600;
    letter-spacing: 0.5px; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(0, 168, 225, 0.2); position: relative; overflow: hidden; max-width: 90%;
}
.prime-banner:hover { background: rgba(0, 168, 225, 0.3); box-shadow: 0 0 25px rgba(0, 168, 225, 0.5); transform: translateY(-2px); color: #fff; }
@media (max-width: 480px) { .prime-banner { font-size: 0.8rem; padding: 10px 15px; width: 100%; border-radius: 8px; } }

/* DEDICATORIA IA MEJORADA */
.ai-dedication {
    background: #111;
    border: 2px dashed var(--accent-neon); /* Borde más visible */
    padding: 25px 20px 20px 20px; /* Más padding arriba para el badge */
    margin: 30px auto;
    max-width: 600px;
    position: relative;
    border-radius: 12px;
    text-align: left; /* Texto alineado a la izquierda */
}

.ai-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-neon);
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(57, 255, 20, 0.3);
}

#ai-dedication-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ai-dedication-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Botones a la derecha */
}

.btn-text-icon {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.85rem;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-text-icon:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

.btn-text-icon.refresh:hover {
    color: var(--accent-neon);
    border-color: var(--accent-neon);
}

/* WRAPPED Y BOTONES DE ACCIÓN HORIZONTALES */
.share-wrapped-container { margin: 20px 0; } /* Mantenido por si acaso, aunque ya no se usa directamente */

.results-actions-container {
    display: flex;
    flex-direction: row; /* En línea */
    justify-content: center;
    gap: 15px; /* Espacio entre botones */
    flex-wrap: wrap; /* Que bajen si no caben */
    margin: 30px auto;
    max-width: 800px;
}

.action-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 50px; /* Botones redondeados */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px; /* Ancho mínimo para uniformidad */
}

/* Estilo específico para cada botón */
.action-btn.wrapped {
    background: var(--accent-neon);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}
.action-btn.wrapped:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
}

.action-btn.more {
    background: transparent;
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
}
.action-btn.more:hover {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 16, 240, 0.4);
    transform: translateY(-3px);
}

.action-btn.restart {
    background: transparent;
    border: 2px solid #555;
    color: #ccc;
}
.action-btn.restart:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
     transform: translateY(-3px);
}


/* NEWSLETTER */
.newsletter-box { background: #222; padding: 20px; margin: 30px auto; border-radius: 8px; max-width: 500px; text-align: center; }
.lead-form { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }
.lead-form input { padding: 10px; border-radius: 4px; border: none; width: 60%; }
.lead-form button { background: var(--accent-pink); color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* RULETA DEL PÁNICO */
.panic-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff0000, #ff5e00);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    cursor: pointer;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* CAJA DEL MODAL (LA RULETA) */
.roulette-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px !important;
    width: 90%;
    max-width: 400px; /* Ancho máximo controlado */
    background: #000;
    border: 2px solid var(--accent-neon);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    position: relative; /* Para el z-index */
    overflow: visible;  /* Dejamos que respire */
    height: auto !important; /* Altura flexible */
}

/* Ajuste para el texto de la profecía */
#oracle-prophecy {
    margin: 15px 0 !important;
    width: 100%;
    line-height: 1.4;
}

/* IMAGEN DEL PRODUCTO */
.roulette-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin: 0;
}

/* TÍTULO DEL PRODUCTO */
#roulette-title {
    margin: 0;
    font-size: 1.1rem;
    padding: 0 10px;
}

/* TEXTO PARPADEANTE */
.blink {
    animation: blinker 0.5s linear infinite;
    color: var(--accent-pink);
    margin: 0;
}

@keyframes blinker { 50% { opacity: 0; } }

/* BOTÓN DE COMPRA DENTRO DE LA RULETA */
#roulette-link {
    display: block; /* Asegura que ocupe su línea */
    width: 100%;
    max-width: 280px; /* Que no sea gigante */
    background: var(--accent-neon);
    color: #000;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    margin: 20px auto 10px auto; /* Márgenes automáticos laterales */
    border-radius: 50px; /* Redondo y moderno */
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    line-height: 1.2;
}
#roulette-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
}
/* BOTÓN CANCELAR */
.close-roulette {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.3s ease;
    width: auto; /* Que ocupe lo que necesite */
    min-width: 120px;
}

.close-roulette:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE PARA LOS NUEVOS BOTONES */
@media (max-width: 600px) {
    .results-actions-container {
        flex-direction: column; /* En móvil, uno debajo del otro */
        align-items: stretch; /* Que ocupen todo el ancho */
        gap: 10px;
    }
    .action-btn {
        width: 100%;
    }
}
/* =========================================
   MEJORAS VISUALES "MAGO DEL PHP" (IA)
   ========================================= */

/* 1. EL VENDEDOR BIPOLAR (Descripciones dinámicas) */
/* Hacemos que el texto nuevo brille y destaque sobre el gris aburrido */
.product-description em {
    font-style: normal; /* Quitamos cursiva clásica */
    color: #fff;
    font-weight: 600;
    /* Efecto degradado sutil verde matrix */
    background: linear-gradient(90deg, #fff 0%, #aaffaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Sombra de neón */
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    display: block;
    margin-top: 5px;
    padding: 5px;
    border-left: 2px solid var(--accent-neon);
    background-color: rgba(57, 255, 20, 0.05); /* Fondo muy sutil */
}

/* 2. EL ORÁCULO DEL PÁNICO (Ruleta) */
/* Convertimos el texto rosa en algo místico que late */
#oracle-prophecy {
    font-family: 'Courier New', monospace !important; /* Estilo terminal */
    letter-spacing: 0.5px;
    background: rgba(255, 16, 240, 0.1); /* Fondo rosa transparente */
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 16, 240, 0.3);
    animation: neonPulse 2s infinite alternate; /* ¡Late! */
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* 3. CAJA DE DEDICATORIAS */
/* Le damos un look más "Premium" a la caja negra */
.ai-dedication {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-left: 4px solid var(--accent-neon); /* Borde lateral marcado */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.ai-dedication:hover {
    box-shadow: 0 5px 25px rgba(57, 255, 20, 0.15);
    border-color: var(--accent-neon);
}

#ai-dedication-text {
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    color: #eee;
    text-shadow: 0 0 2px rgba(255,255,255,0.2);
}

/* ANIMACIÓN DE PULSO (Para el oráculo) */
@keyframes neonPulse {
    0% { box-shadow: 0 0 5px rgba(255, 16, 240, 0.2); border-color: rgba(255, 16, 240, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 16, 240, 0.5); border-color: rgba(255, 16, 240, 0.8); }
}

/* ANIMACIÓN DE PARPADEO (Para los estados de carga "Pensando...") */
@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}
/* =========================================
   BUSCADOR DEL CAOS (REDISEÑO VISUAL)
   ========================================= */

.chaos-section {
    margin: 20px auto 40px auto; /* Espacio arriba y abajo */
    max-width: 550px;
    padding: 0 15px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.chaos-title {
    font-size: 0.8rem;
    color: #888; /* Texto sutil, no queremos que grite */
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* LA CÁPSULA */
.chaos-bar-wrapper {
    display: flex;
    align-items: center;
    background: #111; /* Fondo muy oscuro */
    border: 1px solid #444; /* Borde sutil */
    border-radius: 50px; /* Redondeado total */
    padding: 5px 5px 5px 20px; /* Padding interno */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Sombra flotante */
    transition: all 0.3s ease;
}

/* Efecto al seleccionar: Brilla en Rosa */
.chaos-bar-wrapper:focus-within {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.3);
    transform: scale(1.02);
}

/* EL INPUT (TEXTO) */
#chaos-input {
    flex: 1; /* Ocupa todo el espacio */
    background: transparent !important; /* IMPORTANTE: Quitar fondo blanco */
    border: none !important;
    color: #fff !important; /* Texto blanco */
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    width: 100%;
}

#chaos-input::placeholder {
    color: #666; /* Placeholder discreto */
    font-style: italic;
}

/* EL BOTÓN (LUPA) */
#chaos-btn {
    background: var(--accent-pink); /* Rosa para contrastar con el verde de abajo */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Círculo perfecto */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Que no se aplaste */
}

#chaos-btn:hover {
    background: #fff;
    color: var(--accent-pink);
    transform: rotate(15deg) scale(1.1); /* Efecto divertido al pasar ratón */
}

#chaos-btn svg {
    stroke: currentColor;
}

/* RESPONSIVE (MÓVIL) */
@media (max-width: 480px) {
    .chaos-section {
        margin-bottom: 30px;
    }

    #chaos-input {
        font-size: 0.9rem; /* Letra un poco más pequeña en móvil */
    }
}
/* =======================================================
   📱 MODO COMPACTO FINAL PARA MÓVIL (SIN SCROLL)
   ======================================================= */

@media (max-width: 600px) {

    /* 1. ESTRUCTURA GENERAL: Ganar espacio arriba */
    .container {
        padding-top: 70px !important; /* Espacio justo para los botones flotantes */
        padding-bottom: 80px !important; /* Espacio para el footer */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto; /* Quitar altura forzada */
    }

    /* 2. TÍTULOS: Reducción drástica */
    .hero-title {
        font-size: 1.4rem !important; /* Mucho más pequeño */
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        margin-top: 0 !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.3;
        margin-bottom: 15px !important;
        padding: 0 10px;
    }

    /* 3. BOTÓN VERDE GIGANTE: Más fino */
    .cta-button {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        width: 90% !important; /* Un poco de margen a los lados */
        margin: 0 auto;
        display: block;
    }

    /* 4. BUSCADOR DEL CAOS: Compacto */
    .chaos-section {
        margin: 15px auto !important; /* Menos separación */
        margin-bottom: 20px !important;
    }

    .chaos-title {
        font-size: 0.7rem !important; /* Título minúsculo */
        margin-bottom: 5px !important;
    }

    .chaos-bar-wrapper {
        padding: 2px 2px 2px 15px !important; /* Cápsula más fina */
    }

    #chaos-input {
        font-size: 0.9rem !important;
        padding: 8px 0 !important;
    }

    #chaos-btn {
        width: 38px !important;
        height: 38px !important;
    }

    /* 5. "COMPARTE ESTA LOCURA": Reducido al mínimo */
    .social-footer {
        padding: 8px !important; /* Muy fino */
        background: rgba(0, 0, 0, 0.95); /* Más opaco */
        gap: 5px;
    }

    .social-content {
        gap: 10px !important;
        flex-direction: row !important; /* Mantener en línea para ahorrar altura */
    }

    .social-text {
        font-size: 0.65rem !important; /* Texto muy pequeño */
        margin: 0;
        white-space: nowrap; /* Que no salte de línea */
    }

    .social-icons {
        gap: 10px !important;
    }

    .social-link {
        width: 18px !important; /* Iconos pequeños */
        height: 18px !important;
    }

    /* Ocultar enlaces legales en móvil si molestan mucho, o hacerlos diminutos */
    .legal-links {
        font-size: 0.55rem !important;
        margin-top: 2px;
    }

    /* 6. BOTONES FLOTANTES SUPERIORES (Audio e Idioma) */
    #toggle-audio {
        top: 15px !important;
        left: 15px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
        background: rgba(0,0,0,0.9) !important; /* Fondo negro para que se lea encima del texto si choca */
    }

    .lang-selector {
        top: 15px !important;
        right: 15px !important;
    }

    .lang-btn {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        background: rgba(0,0,0,0.9) !important;
    }
}
