/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary-color: #102C57;      /* Azul oscuro profundo */
  --secondary-color: #164863;    /* Azul medio */
  --accent-color: #DFA878;       /* Dorado suave / Trigo */
  --accent-hover: #C89060;       /* Dorado más oscuro */
  
  --bg-light: #F8F9FA;           /* Gris muy claro para secciones alternas */
  --bg-dark: #102C57;            /* Fondo oscuro */
  --text-main: #333333;          /* Texto principal oscuro */
  --text-muted: #666666;         /* Texto secundario gris */
  --text-light: #FFFFFF;         /* Texto blanco */
  
  --font-heading: 'Merriweather', serif;
  --font-body: 'Open Sans', sans-serif;
  
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Respaldo nativo si falla JS */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--text-light); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

section {
    padding: 80px 0;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn i { margin-right: 8px; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(223, 168, 120, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navegación
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 0;
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 5px 0;
    background-color: var(--text-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--accent-color); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.header-socials {
    display: flex;
    gap: 15px;
}

.header-socials a {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.header-socials a:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   1. Sección Hero (Inicio)
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(16, 44, 87, 0.5), rgba(16, 44, 87, 0.6)),
                url('../img/church-upcoming-events-bg.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    padding-top: 70px; /* Offset para el header */
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   2. Radio en Vivo
   ========================================================================== */
.radio-section {
    position: relative;
    background: linear-gradient(rgba(16, 44, 87, 0.6), rgba(16, 44, 87, 0.7)),
                url('../img/bg_radio_1773516648213.png') center/cover no-repeat fixed;
    color: var(--text-light);
}

.radio-section .section-title,
.radio-section .section-subtitle,
.radio-section .app-buttons h3 {
    color: var(--text-light);
}

.player-container {
    background-color: var(--text-light);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto 40px;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--accent-color);
}

.now-playing {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.now-playing i {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.play-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 4rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.volume-slider { width: 100px; }

.app-buttons h3 {
    margin-bottom: 20px;
}

.store-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.store-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-3px);
}

.store-btn i { font-size: 2rem; }

.store-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.store-text span { font-size: 0.7rem; text-transform: uppercase; }
.store-text strong { font-size: 1.1rem; }

/* ==========================================================================
   3. Programas
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background-color: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.program-info {
    padding: 25px;
}

.program-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.program-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.program-info i {
    width: 20px;
    color: var(--accent-color);
}

.program-info .desc {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--text-main);
}

/* Timeline/Schedule Styles */
.schedule-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    overflow: hidden;
}

.schedule-items {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 40px;
    column-fill: balance;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px dashed #eee;
    transition: background 0.3s;
    align-items: center;
    border-radius: 4px;
    break-inside: avoid;
}

.schedule-item:hover {
    background: #f8f9fa;
}

.schedule-time {
    font-weight: 700;
    color: var(--primary-color);
    width: 110px;
    white-space: nowrap;
}

.schedule-icon {
    margin-right: 5px;
    color: var(--accent-color);
    font-size: 0.9em;
}

.schedule-title {
    flex: 1;
    text-align: right;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9em;
}

/* ==========================================================================
   4. Donaciones
   ========================================================================== */
.donations-section {
    position: relative;
    background: linear-gradient(rgba(16, 44, 87, 0.6), rgba(16, 44, 87, 0.7)),
                url('../img/bg_donations_1773516668025.png') center/cover no-repeat fixed;
    color: var(--text-light);
}

.donations-section .section-title,
.donations-section .donation-text {
    color: var(--text-light);
}

.donation-content {
    max-width: 800px;
    margin: 0 auto;
}

.donation-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.donation-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.donate-btn { font-size: 1.3rem; padding: 15px 40px; }

/* ==========================================================================
   5. Noticias y Actividades
   ========================================================================== */
.news-section {
    position: relative;
    background: linear-gradient(rgba(240, 242, 245, 0.7), rgba(240, 242, 245, 0.75)),
                url('../img/bg_news_1773516682347.png') center/cover no-repeat fixed;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--text-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.news-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   6. Sobre Nosotros
   ========================================================================== */
.content-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text, .about-image { flex: 1; }

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.rounded { border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* ==========================================================================
   7. Contacto
   ========================================================================== */
.contact-section {
    position: relative;
    background: linear-gradient(rgba(16, 44, 87, 0.6), rgba(16, 44, 87, 0.7)),
                url('../img/bg_contact_1773516696004.png') center/cover no-repeat fixed;
    color: var(--text-light);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form, .contact-info {
    background: var(--text-light);
    color: var(--text-main);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.contact-form h3, .contact-info h3 { margin-bottom: 25px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.info-list li {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    gap: 15px;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo h3 { color: var(--text-light); margin-bottom: 10px; }
.footer-logo i { color: var(--accent-color); margin-right: 10px; }
.slogan { font-style: italic; color: #ccc; }

.footer-socials { display: flex; gap: 20px; margin-top: 20px; }

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* ==========================================================================
   Animaciones
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    .content-row { flex-direction: column; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--text-light);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        display: none; /* Oculto por defecto */
    }
    
    .main-nav.active { display: flex; }
    .nav-list { flex-direction: column; text-align: center; gap: 15px; }
    .header-socials { margin-top: 15px; }
    .hero-buttons { flex-direction: column; }
    .store-links { flex-direction: column; align-items: center; }
    .store-btn { width: 100%; max-width: 250px; justify-content: center; }
    
    .schedule-items { column-count: 1; }
    .schedule-list { padding: 15px; }
}
