/*
Theme Name: Iglesia Vineland Theme
Theme URI: https://iglesiadevineland.org
Author: Tu Nombre
Description: Tema personalizado para la Iglesia Adventista de Vineland basado en el estilo responsivo y moderno.
Version: 1.0.0
Text Domain: iglesia-vineland
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: #333;
    overflow-x: hidden;
}

:root {
    --navy: #1a2a4f;
    --azul-claro: #4a90d9;
    --marron: #8b5a2b;
    --marron-claro: #a06e3a;
    --gris-claro: #f5f5f5;
    --verde-iglesia: #2d7d46;
}

/* HEADER Y NAVEGACIÓN */
.header {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3d6e 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 0px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
    list-style: none;
    padding: 0;
}

.nav-menu > li > a,
.nav-menu > li > span {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
    display: block;
    cursor: pointer;
}

.nav-menu > li > a:hover {
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
}

.nav-menu .btn-donar a {
    background: var(--verde-iglesia);
    padding: 8px 20px;
    border-radius: 30px;
    transition: background 0.3s;
}

.nav-menu .btn-donar a:hover {
    background: #236a3a;
}

/* Submenú desktop */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    background: #16213e;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding: 8px 0;
    top: 100%;
    left: 0;
    z-index: 100;
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    display: block;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255,255,255,0.1);
}

/* HERO SECTION */
.hero {
    margin-top: 70px;
    min-height: 85vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--azul-claro) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    padding: 60px 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.hero .subtitulo {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
    opacity: 0.95;
}

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

.btn-primary {
    background: var(--verde-iglesia);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #236a3a;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

/* SECCIONES Y VALORES */
.section {
    padding: 80px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.valor-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--verde-iglesia);
}

.valor-card:hover {
    transform: translateY(-10px);
}

.valor-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.valor-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.valor-card p {
    color: #666;
    line-height: 1.6;
}

/* INFORMACIÓN Y HORARIOS */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h3 i {
    color: var(--verde-iglesia);
}

.info-card p, .info-card li {
    color: #555;
    line-height: 1.8;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card .dia-semana {
    font-weight: 600;
    color: var(--navy);
}

.info-card .horario {
    color: #666;
}

.info-card .horario.cerrado {
    color: #999;
}

.info-card .horario.destacado {
    color: var(--verde-iglesia);
    font-weight: 600;
}

.mapa-container {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mapa-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.btn-direccion {
    display: inline-block;
    background: var(--azul-claro);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-direccion:hover {
    background: var(--navy);
}

/* CONTENIDO PRINCIPAL */
.main-content {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}

.main-content h1 {
    color: var(--navy);
    margin-bottom: 20px;
}

.main-content p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* FOOTER */
.footer {
    background: var(--navy);
    color: #aaa;
    padding: 50px 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: var(--marron);
}

.footer .social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 20px;
    color: #aaa;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: var(--marron);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* MENÚ MÓVIL LATERAL */
.menu-toggle-mobile {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--verde-iglesia);
    border: none;
    color: white;
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.menu-toggle-mobile:hover {
    transform: scale(1.05);
    background: #236a3a;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--navy) 0%, #2a3d6e 100%);
    z-index: 1050;
    transition: right 0.3s ease;
    padding: 80px 20px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: all 0.3s;
    font-size: 16px;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
}

.mobile-menu .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }
    .nav-menu {
        display: none !important;
    }
    .menu-toggle-mobile {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitulo {
        font-size: 1.1rem;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .section {
        padding: 50px 20px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .main-content {
        margin: 90px 15px 20px;
        padding: 20px;
    }
}

/* ============================================================ */
/* ESTILOS DEL CALENDARIO */
/* ============================================================ */
.calendario-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.calendario-header h1 {
    color: var(--navy);
    font-size: 2rem;
}

.total-eventos {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.selector-años {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.selector-años label {
    color: #555;
    font-weight: 500;
}

.selector-años select {
    padding: 10px 20px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.selector-años select:hover {
    border-color: var(--verde-iglesia);
    box-shadow: 0 2px 8px rgba(45, 125, 70, 0.2);
}

.selector-años select:focus {
    outline: none;
    border-color: var(--verde-iglesia);
    box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.2);
}

.no-eventos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.no-eventos p {
    font-size: 18px;
    color: #666;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.mes-card {
    background: white;
    border-radius: 16px;
    padding: 20px 24px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.mes-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

.mes-card.sin-eventos {
    opacity: 0.6;
    background: #f8f9fa;
}

.mes-card.con-eventos {
    border-left: 4px solid var(--verde-iglesia);
}

.mes-titulo {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eventos-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.eventos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eventos-lista li {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 8px;
}

.eventos-lista li:last-child {
    border-bottom: none;
}

.evento-dia {
    font-weight: 700;
    color: var(--verde-iglesia);
    font-size: 0.95rem;
    min-width: 32px;
    flex-shrink: 0;
}

.evento-titulo {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.sin-eventos-texto {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* ============================================================ */
/* RESPONSIVE CALENDARIO */
/* ============================================================ */
@media (max-width: 768px) {
    .calendario-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .calendario-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .total-eventos {
        text-align: center;
    }

    .selector-años {
        justify-content: center;
        flex-wrap: wrap;
    }

    .selector-años select {
        width: 100%;
        max-width: 200px;
    }

    .calendario-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mes-card {
        padding: 16px 18px 18px;
    }

    .no-eventos p {
        font-size: 16px;
    }
}