/* --- Variables Globales --- */
:root {
    --navy-dark: #070e1d;
    --navy-main: #0f2347;
    --blue-royal: #1d4ed8;
    --gold-main: #f59e0b;
    --gold-dark: #b45309;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-body: #f1f5f9;
    --white: #ffffff;
    /* Sombras multicapa para efecto 3D real */
    --shadow-3d: 0 20px 25px -5px rgba(15, 35, 71, 0.1), 0 8px 10px -6px rgba(15, 35, 71, 0.08);
    --shadow-hover: 0 25px 40px -10px rgba(15, 35, 71, 0.2);
    --shadow-gold: 0 10px 25px -5px rgba(245, 158, 11, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

/* --- Navegación Flotante (Efecto Cristal) --- */
header {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--navy-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i {
    color: var(--gold-main);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(29, 78, 216, 0.08);
    color: var(--blue-royal);
}

.nav-radio {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.nav-radio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* --- Hero con Profundidad --- */
#inicio {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    padding: 140px 0 160px;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 35, 71, 0.78) 0%, rgba(7, 14, 29, 0.94) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge-welcome {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
    color: #fde68a;
}

#inicio h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#inicio h1 span {
    background: linear-gradient(to right, #fde68a, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#inicio p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 38px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white);
    padding: 16px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.65);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-main);
    transform: translateY(-4px);
}

/* --- Tarjetas 3D Superpuestas --- */
#quienes-somos {
    margin-top: -90px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.grid-overlap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.card-3d {
    background: var(--white);
    padding: 45px 38px;
    border-radius: 24px;
    box-shadow: var(--shadow-3d);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-3d:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-featured {
    background: linear-gradient(145deg, var(--navy-main), var(--navy-dark));
    color: var(--white);
}

.card-featured p {
    color: #cbd5e1;
}

.icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue-royal), var(--navy-main));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: 0 12px 20px -5px rgba(29, 78, 216, 0.4);
}

.icon-gold {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    box-shadow: var(--shadow-gold);
}

.card-3d h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

/* --- Encabezados de Sección --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle {
    display: inline-block;
    color: var(--blue-royal);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(29, 78, 216, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    color: var(--navy-main);
}

/* --- Horarios con Tarjetas en Relieve --- */
#horarios {
    padding: 60px 0 100px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.schedule-card {
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-3d);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.schedule-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-main);
}

.schedule-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--blue-royal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sunday-highlight {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid var(--gold-main);
}

.sunday-highlight .schedule-icon {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white);
}

.schedule-info .day {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-dark);
    letter-spacing: 0.5px;
}

.schedule-info h4 {
    font-size: 1.2rem;
    color: var(--navy-main);
    margin: 4px 0;
}

.schedule-info .time {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* --- Radio en Vivo (Zeno Widget) --- */
#radio {
    padding: 40px 0 80px;
}

.radio-box-3d {
    background: radial-gradient(circle at top right, #1e3a8a, var(--navy-dark));
    border-radius: 30px;
    padding: 60px 40px;
    color: var(--white);
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(7, 14, 29, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.radio-content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 12px #ef4444;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.radio-box-3d h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.radio-box-3d p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* Contenedor específico para el reproductor de Zeno */
.zeno-player-wrapper {
    background: rgba(255, 255, 255, 0.05); /* Fondo muy sutil */
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 450px; /* Ancho ajustado para verse compacto */
    margin: 0 auto;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

/* Controles Minimalistas (Botón circular) */
.minimal-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-radio-ctrl {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-radio-ctrl i {
    margin-left: 4px; /* Ajuste visual optico para el triagulo de play */
}

.btn-radio-ctrl:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

.btn-radio-ctrl:active {
    transform: scale(0.95);
}

/* Estado activo del botón (Detener - Rojo) */
.btn-radio-ctrl.is-active {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}
.btn-radio-ctrl.is-active i {
    margin-left: 0; /* Al centrar el cuadrado de stop no requiere compensación */
}

.status-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.status-label.live-active {
    color: #4ade80; /* Verde indicador de en vivo */
    font-weight: 600;
}

/* Barras de Ecualizador */
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
}

/* Estado inactivo por defecto */
.sound-wave span {
    width: 5px;
    height: 6px;
    background: var(--gold-main);
    border-radius: 4px;
    transition: height 0.3s ease;
}

/* Animación que solo corre cuando tiene la clase is-playing inyectada por JS */
.sound-wave.is-playing span {
    animation: wave 1.2s infinite ease-in-out;
}

.sound-wave.is-playing span:nth-child(1) { animation-delay: 0.1s; }
.sound-wave.is-playing span:nth-child(2) { animation-delay: 0.3s; }
.sound-wave.is-playing span:nth-child(3) { animation-delay: 0.5s; }
.sound-wave.is-playing span:nth-child(4) { animation-delay: 0.2s; }
.sound-wave.is-playing span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 6px; }
    50% { height: 32px; }
}

/* --- Contacto y Mapa --- */
#contacto {
    padding: 60px 0 110px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 35px;
    align-items: stretch;
}

.contact-info-card {
    background: var(--white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: var(--shadow-3d);
}

.contact-info-card h3 {
    font-size: 1.8rem;
    color: var(--navy-main);
    margin-bottom: 10px;
}

.contact-lead {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-royal), var(--navy-main));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 15px -4px rgba(29, 78, 216, 0.35);
}

.info-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--navy-main);
}

.info-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.map-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    border: 6px solid var(--white);
    min-height: 400px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Pie de Página --- */
footer {
    background: var(--navy-dark);
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
    border-top: 4px solid var(--gold-main);
}

/* --- Adaptación a Celulares --- */
@media (max-width: 860px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        border-radius: 24px;
        padding: 16px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    #inicio h1 { font-size: 2.6rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}