/* VOZLYN OFFICIAL STYLESHEET */
:root {
    --bg-base: #00040f;
    --accent-primary: #ffffff;
    --accent-secondary: #0a4fbc;
    --accent-cobalt: #0052ff;
    --accent-glow: #ffffff;
    --glass-bg: rgba(6, 14, 34, 0.55);
    --glass-border: rgba(100, 150, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --font-sans: 'Montserrat', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 1. Fondo Base Puro y Canvas de Red Neuronal */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    background: radial-gradient(circle at 50% 35%, #05143a 0%, #020617 40%, #000000 80%, #000000 100%);
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* 2. Contenedor Móvil (440px max, 100% nativo iOS) */
.mobile-app {
    width: 100%;
    max-width: 440px; 
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.8rem 1.1rem 2.8rem;
    flex: 1;
}

/* Header & Logo (Bajado y con espacio elegante para respirar) */
.header {
    text-align: center;
    padding: 2.2rem 0 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 200px;
    height: auto;
    display: block;
    filter: none !important;
    box-shadow: none !important;
}

/* 3. Tarjeta Glassmorphism de Lujo (Con aire y proporción perfecta) */
.main-glass {
    background: linear-gradient(135deg, rgba(8, 18, 42, 0.30) 0%, rgba(3, 8, 22, 0.18) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-right: 1px solid rgba(120, 180, 255, 0.15);
    border-bottom: 1px solid rgba(100, 150, 255, 0.08);
    border-left: 1px solid rgba(120, 180, 255, 0.15);
    border-radius: 32px;
    padding: 1.8rem 1.3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95), 
                inset 0 0 35px rgba(0, 102, 255, 0.05);
    margin-top: 0.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Encabezados Centrados sin números */
.section-header-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-bottom: 0.2rem;
}

.section-title-centered {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-align: center;
}

.char-count-badge {
    position: absolute;
    right: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.75;
}

/* Inputs y Textareas Centrados */
.premium-input, .premium-textarea {
    width: 100%;
    background: rgba(1, 5, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.95rem 1.1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
    transition: all 0.25s ease;
    text-align: center;
}

.premium-textarea {
    height: 95px;
    resize: none;
    text-align: left;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: auto;
}

.premium-textarea::-webkit-scrollbar {
    display: none;
}

/* Focus en Blanco Puro (CERO tintes verdosos ni cian) */
.premium-input:focus, .premium-textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(1, 5, 16, 0.85);
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.85), 0 0 16px rgba(255, 255, 255, 0.25);
}

.premium-input::placeholder, .premium-textarea::placeholder {
    color: rgba(148, 163, 184, 0.45);
    text-align: center;
}

.premium-textarea::placeholder {
    text-align: left;
}

/* 4. Grid de Canales Oficiales */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.channel-card {
    background: rgba(4, 10, 28, 0.48); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    user-select: none;
}

.channel-card.full-span {
    grid-column: span 2;
}

.channel-card:hover {
    background: rgba(10, 24, 60, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Canal Activo: Borde y Resplandor Blanco Puro (Cero verdoso) */
.channel-card.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.18), inset 0 0 12px rgba(255, 255, 255, 0.04);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.channel-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #64748b;
    transition: color 0.2s ease;
}

.channel-card.active .channel-badge {
    color: #ffffff;
}

.btn-sample-play {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.22rem 0.48rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sample-play:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-sample-play.playing {
    background: #ffffff;
    color: #00040f;
    font-weight: 800;
    border-color: #ffffff;
}

.channel-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.channel-card.active .channel-name {
    color: #ffffff;
}

.channel-desc {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.35;
}

.channel-card.active .channel-desc {
    color: #cbd5e1;
}

/* 5. Botón de Generación: CREAR AUDIO (Estilo Lujo Blanco Sólido Minimalista) */
.btn-generate {
    width: 100%;
    background: #ffffff;
    color: #00040f;
    border: none;
    padding: 1.15rem 1rem;
    border-radius: 16px;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.btn-generate:hover {
    background: #f8fafc;
    color: #000000;
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.4), 0 15px 35px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.btn-generate:active {
    transform: translateY(1px) scale(0.98);
    background: #e2e8f0;
}

/* 6. Pie de Página Oficial: Franja Negra Sólida (Letras Blancas Puras) */
.footer-black-shelf {
    width: 100%;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.1rem 1rem 1.3rem;
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

.copyright {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.legal-wrap {
    margin-bottom: 0.6rem;
}

.legal-link {
    background: none;
    border: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.legal-link:hover { 
    opacity: 1; 
    color: #ffffff;
}

.credit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0.4rem;
}

.credit-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
}

.valladares-logo {
    height: 34px;
    width: auto;
    display: block;
    filter: none !important;
}

/* MODALES GLOBALES (OCULTOS POR DEFECTO CON display: none) */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 3, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: none; /* OCULTO 100% AL ENTRAR A LA PÁGINA */
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 24, 56, 0.94) 0%, rgba(4, 10, 26, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 410px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 50px -10px rgba(0, 82, 255, 0.3);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.modal-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.8rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.live-dot {
    width: 6px; height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
}

#result-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1rem;
}

.dispatch-box {
    background: rgba(1, 6, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    text-align: left;
    margin-bottom: 1.2rem;
    font-style: italic;
}

/* Audio Player Box */
.audio-player-box {
    background: rgba(2, 8, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
}

.player-play-btn {
    width: 48px; height: 48px;
    border-radius: 16px;
    background: #ffffff;
    color: #00040f;
    border: none;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.player-play-btn:active { transform: scale(0.92); }

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
}

.track-meta #track-name { color: #ffffff; }

.eq-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.eq-bar {
    width: 3px;
    background: #ffffff;
    border-radius: 2px;
    height: 4px;
    transition: height 0.12s ease;
}

/* Acciones Virales */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action {
    width: 100%;
    padding: 0.95rem;
    border-radius: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover { background: #20bd5a; }

.btn-tiktok {
    background: #010101;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-tiktok:hover {
    border-color: #ffffff;
}

.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.3);
}

.btn-messenger {
    background: #0084FF;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.35);
}

.btn-download {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-download:hover { background: rgba(255, 255, 255, 0.15); }

.btn-reset {
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    padding: 0.5rem;
}

.btn-reset:hover { color: #ffffff; }

.icon-svg {
    width: 18px; height: 18px;
    fill: currentColor;
}

/* Legal Modal */
.legal-modal-content {
    max-height: 82vh;
    overflow-y: auto;
    text-align: left;
}

.legal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.legal-body strong { color: #ffffff; }

/* LOADER / PROCESADOR NEURAL (OVERLAY FULLSCREEN OCULTO POR DEFECTO) */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 3, 10, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 150;
    display: none; /* OCULTO TOTALMENTE AL CARGAR LA PÁGINA */
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.soundwave-loader {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 35px;
}

.soundwave-loader span {
    width: 4px;
    background: #ffffff;
    border-radius: 4px;
    animation: wave 1.2s infinite ease-in-out;
}

.soundwave-loader span:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.soundwave-loader span:nth-child(2) { height: 25px; animation-delay: 0.15s; }
.soundwave-loader span:nth-child(3) { height: 35px; animation-delay: 0.3s; }
.soundwave-loader span:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.soundwave-loader span:nth-child(5) { height: 12px; animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.loader-sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #94a3b8;
}