/* ================= REGLAS GENERALES Y BASE ================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fafafa;
}

.texto-seccion {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.cita-mensaje {
    background: #f7f0df;
    border-left: 4px solid #C89B3C;
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    font-size: 18px;
    color: #5A3514;
}

/* ================= ENCABEZADO (HEADER) ================= */
header {
    background: #7A4B1F;
    color: white;
    padding: 20px 40px;
}

.encabezado {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 20px;
}

.titulo {
    text-align: left;
}

.titulo h1 {
    font-size: 38px;
    margin: 0 0 5px 0;
}

.titulo h2 {
    font-size: 20px;
    margin: 0;
    font-weight: normal;
    color: #f0e6d2;
}

/* ================= MENÚ DE NAVEGACIÓN ================= */
nav {
    background: #5a3514;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    display: block;
    padding: 18px 10px;
    transition: 0.3s;
}

nav a:hover {
    color: #FFD700;
}

nav i {
    color: #D4AF37;
    margin-right: 8px;
}

/* Submenú Desplegable */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #5A3514;
    min-width: 260px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu li a:hover {
    background: #C89B3C;
    color: white;
}

.desplegable:hover .submenu {
    display: block;
}

/* ================= CONTROL DE PÁGINAS (SPA) ================= */
.pagina {
    display: none;
}

.pagina.activa {
    display: block;
}

#inicio {
    display: flex;
    flex-direction: column;
}

/* ================= HERO (SECCIÓN PRINCIPAL) ================= */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url("../img/parroquia.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    text-align: center;
}

.hero-card h2 {
    color: white;
    font-size: 50px;
    margin-bottom: 20px;
}

.hero-card p {
    color: white;
    font-size: 22px;
    margin-bottom: 35px;
    line-height: 1.5;
}

.boton {
    background: #C89B3C;
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.boton:hover {
    background: #9A6D1F;
}

/* ================= BIENVENIDA ================= */
.bienvenida {
    background: #ffffff;
    padding: 60px 10%;
}

.contenedor-bienvenida {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.texto-bienvenida {
    flex: 2;
}

.texto-bienvenida h2 {
    color: #7A4B1F;
    font-size: 38px;
    margin-bottom: 25px;
}

.texto-bienvenida p {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

.imagen-bienvenida {
    flex: 1;
    text-align: center;
}

.imagen-bienvenida img {
    width: 280px;
    transition: 0.3s;
}

.imagen-bienvenida img:hover {
    transform: scale(1.05);
}

/* ================= FRASE BÍBLICA ================= */
.frase-biblica {
    background: #f7f0df;
    padding: 60px 10%;
}

.frase-contenedor {
    max-width: 900px;
    margin: auto;
    background: linear-gradient(135deg, #C89B3C, #D4AF37, #B8860B);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.frase-contenedor i {
    font-size: 40px;
    margin-bottom: 15px;
}

.frase-contenedor blockquote {
    font-size: 26px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 20px;
}

.frase-contenedor span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.frase-contenedor:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

/* ================= CONTENIDO INTERNO DE PÁGINAS ================= */
.contenedor {
    padding: 50px 10%;
    background: #ffffff;
}

.contenedor h2 {
    color: #7A4B1F;
    font-size: 36px;
    border-bottom: 3px solid #C89B3C;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px;
}

.historia {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.historia img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.historia p {
    color: #444;
    line-height: 1.8;
    font-size: 18px;
}

.ubicacion {
    background: #fdfaf3;
    padding: 25px;
    border-left: 5px solid #C89B3C;
    border-radius: 4px;
    margin-bottom: 40px;
}

.ubicacion h3, 
.comunidades h3 {
    color: #7A4B1F;
    margin-top: 0;
}

.ubicacion ul {
    line-height: 1.8;
    font-size: 17px;
    color: #444;
}

/* ================= TARJETAS (GRIDS) ================= */
.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tarjeta {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border-top: 5px solid #C89B3C;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.tarjeta i {
    font-size: 35px;
    color: #7A4B1F;
    margin-bottom: 15px;
}

.tarjeta h4 {
    margin: 10px 0 5px;
    color: #333;
    font-size: 20px;
}

.tarjeta p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* ================= COMPONENTES ADICIONALES ================= */
.btn-volver-inicio {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #7A4B1F;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-volver-inicio:hover {
    background-color: #C89B3C;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ================= PIE DE PÁGINA (FOOTER) ================= */
footer {
    background: #5A3514;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 15px;
}

/* ================= DISEÑO RESPONSIVO (TABLETS Y SMARTPHONES) ================= */
@media (max-width: 768px) {
    .encabezado {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .titulo {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        padding: 12px;
    }

    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .contenedor-bienvenida, 
    .historia {
        flex-direction: column;
    }

    .historia img {
        max-width: 100%;
    }

    .frase-contenedor blockquote {
        font-size: 20px;
    }
}
/* 1. Ocultar TODAS las páginas por defecto */
.pagina {
    display: none;
}

/* 2. Mostrar SOLAMENTE la página que tiene la clase 'activa' */
.pagina.activa {
    display: block; /* Usa 'block', 'flex' o 'grid' según la estructura de tus secciones */
}

/* 1. Ocultar TODAS las páginas por defecto */
.pagina {
    display: none !important;
}

/* 2. Mostrar ÚNICAMENTE la página que tiene la clase 'activa' */
.pagina.activa {
    display: block !important;
}