@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;900&family=Inter:wght@400;500;600&display=swap');

/* ========= RESET ========= */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Inyección Apple: Suavizado de bordes y fuentes */
    -webkit-font-smoothing: antialiased;
}

body{
    /* Inyección Apple: Inter como prioridad (similar a San Francisco) */
    font-family: 'Inter', 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #f5f5f7; /* Inyección: Gris neutro oficial de Apple */
}

/* ========= VARIABLES (REUTILIZACIÓN 🔥) ========= */
:root{
    --main-color: #0071e3; /* Inyección: El azul vibrante de Apple */
    --whatsapp: #25D366;
    --text-color: #1d1d1f; /* Inyección: Negro profundo Apple */
    --text-light: #86868b; /* Inyección: Gris subtítulo Apple */
    --bg-white: #fff;
    --apple-radius: 18px; /* Inyección: Curvatura iOS estándar */
}

/* ========= CONTENEDOR ========= */
.container{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========= GRID ========= */
.grid{
    display: grid;
    gap: 2rem;
}

/* ========= SECCIONES ========= */
.section{
    padding: 4rem 0;
    text-align: center;
}

.stitle{
    font-size: 2.5rem; /* Inyección: Más impacto visual */
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 2rem;
}

/* ========= HEADER ========= */
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent;
    transition: .4s;
    /* Inyección Apple: Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.scroll-header{
    background: rgba(255, 255, 255, 0.72); /* Inyección: Traslúcido al hacer scroll */
    box-shadow: 0 2px 15px rgba(0,0,0,0.04); /* Inyección: Sombra suave */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav{
    height: 60px; /* Inyección: Más compacto */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navL{
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navL-img{
    width: 40px;
}

.navList{
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navLink{
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem; /* Inyección: Tamaño refinado */
    transition: .3s;
}

.navLink:hover{
    color: var(--main-color);
}

.navToggle,
.navClose{
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========= NAV MOBILE ========= */
@media (max-width:768px){
    .navM {
        position: fixed;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        top: 0;
        right: -100%;
        width: 70%;
        /* 1. Asegura que ocupe todo el alto visual */
        height: 100vh; 
        /* 2. Evita que el padding ensanche o mueva el contenido fuera de lugar */
        box-sizing: border-box; 
        padding: 3rem;
        transition: .4s;
        box-shadow: 10px 0 30px rgba(0,0,0,0.05);
        
        /* 3. Para que el contenido interno se distribuya verticalmente */
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
    }

    .navList{
        flex-direction: column;
        row-gap: 1.5em;
    }

    .navToggle,
    .navClose{
        display: block;
    }

    .navClose{
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .show-menu{
        right: 0;
    }
}

/* ========= ESPACIO HEADER ========= */
.main{
    margin-top: 80px;
}
/* ================= HOME (QUIÉNES SOMOS) ================= */

.homecont {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* TEXTO */
.homedata {
    max-width: 600px;
    text-align: justify;
}

/* TÍTULO */
.homet {
    font-size: 3.5rem; /* Inyección: Título estilo "Hero" de Apple */
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    text-align: left;
}

/* DESCRIPCIÓN */
.homedes {
    text-align: justify;
    line-height: 1.5;
    color: var(--text-light);
}

/* BOTONES */
.homebut {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* IMAGEN */
.homeg {
    display: flex;
    justify-content: center;
}

.homeimg {
    width: 300px;
    max-width: 100%;
    height: auto;
    /* Inyección Apple: Sombra orgánica profunda */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
    .homecont {
        flex-direction: column;
        text-align: center;
    }

    .homet {
        text-align: center;
        font-size: 2.5rem;
    }

    .homedata {
        text-align: justify;
    }

    .homebut {
        justify-content: center;
    }

    .homeimg {
        width: 200px;
        margin-top: 2rem;
    }
}

/* ========= GRUPOS ========= */
#grupos-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3rem;
    justify-items: center;
}

.pdcontent{
    background: var(--bg-white);
    border-radius: var(--apple-radius); /* Inyección */
    padding: 2.5rem 1rem; /* Inyección: Más aire */
    text-align: center;
    width: 100%;
    max-width: 300px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04); /* Inyección: Sombra Apple */
    border: 1px solid rgba(0,0,0,0.02);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.productimg{
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.pdtitle{
    font-weight: 600;
}

.pdsub{
    font-size: .8rem;
    color: var(--text-light);
}

.pdprice{
    font-size: .9rem;
    margin: .5rem 0;
}

.pdbut{
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--whatsapp);
    border-radius: 50%;
    padding: 12px;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.pdcontent:hover .productimg{
    transform: translateY(-8px) scale(1.05);
}

/* ========= TEXTOS ========= */
.homedes,
.catdesc,
.planabdesc,
.disdesc{
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

/* ========= SOBRE NOSOTROS ========= */
.category.container{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.catdata{
    background: white; /* Inyección: Tarjetas blancas sobre fondo gris */
    padding: 2.5rem;
    border-radius: var(--apple-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.reverse{
    flex-direction: row-reverse;
}

.catimg{
    width: 250px;
    border-radius: 12px; /* Inyección: Suavizado */
    object-fit: contain;
}

.cattext{
    max-width: 600px;
    text-align: justify;
}

/* ========= PLAN ========= */
.aboutimg{
    width: 100%;
    max-width: 400px;
    margin: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--apple-radius);
}

/* ========= SERVICIOS ========= */
.dscont{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 3rem;
    border-radius: var(--apple-radius);
}

.disdata{
    max-width: 500px;
    text-align: justify;
}

/* ========= CARRUSEL ========= */
.carousel{
    width: 100%;
    max-width: 400px;
}

.carousel img{
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: none;
    border-radius: var(--apple-radius); /* Inyección */
}

.carousel img.active{
    display: block;
}

/* ========= COORDINADORES ========= */
.newcont{
    display: flex;
    justify-content: center;
}

.newcontent{
    background: var(--bg-white);
    border-radius: var(--apple-radius); /* Inyección */
    padding: 2rem; /* Inyección */
    text-align: center;
    width: 280px; /* Inyección */
    margin: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.newimg{
    width: 160px; /* Inyección */
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.newti{
    font-size: 1.1rem;
    font-weight: 600;
}

.newsub{
    font-size: .85rem;
    color: var(--text-light);
}

.newtag{
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 113, 227, 0.1); /* Inyección: Fondo traslúcido Apple */
    color: var(--main-color);
    padding: .3rem .8rem;
    border-radius: 8px; /* Inyección */
    font-size: .75rem;
    font-weight: 600;
}

.newbu{
    margin-top: 1rem;
    display: inline-block;
    border-radius: 980px; /* Inyección: Estilo píldora */
}

/* ========= FOOTER ========= */
.footer{
    background: #fbfbfd; /* Inyección: Fondo Footer claro estilo Apple */
    color: var(--text-color);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 4rem 0 2rem;
}

.footerL {
    display: flex;
    /* Centra verticalmente (ya lo tenías) */
    align-items: center; 
    /* 1. Centra horizontalmente */
    justify-content: center; 
    /* 2. Asegura que ocupe todo el ancho para que el centro sea el real */
    width: 100%; 
    
    gap: .5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.footerL-img {
    width: 30px;
    /* Evita que la imagen se encoja si el texto es muy largo */
    flex-shrink: 0; 
}

.ftcontainer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2rem;
}

.ftli{
    list-style: none;
}

.ftrli{
    color: var(--text-light);
    text-decoration: none;
    font-size: .85rem;
    transition: .3s;
}

.ftrli:hover{
    color: var(--main-color);
}

.footersocial-link {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.8;
    /* Esto quita el subrayado del espacio en blanco */
    text-decoration: none; 
    /* Esto ayuda a que el enlace solo mida lo que mide el icono */
    display: inline-flex; 
}

.footercopy{
    text-align: center;
    margin-top: 3rem;
    font-size: .75rem;
    color: var(--text-light);
}

/* ========= RESPONSIVE ========= */
@media (max-width:768px){

    #grupos-container{
        grid-template-columns: 1fr;
    }

    .catdata{
        flex-direction: column;
    }

    .dscont{
        flex-direction: column;
    }

    .carousel img{
        height: auto;
        object-fit: contain;
    }

    .newcontent{
        width: 220px;
    }

}
/* ================= PLAN PASTORAL (EQUILIBRADO) ================= */

.plancont {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: var(--apple-radius);
}

/* PDF */
.aboutimg {
    width: 100%;
    max-width: 500px;
    margin: auto;
    display: block;
    border-radius: 1rem;
}

/* TEXTO */
.abdata {
    width: 100%;
    max-width: 500px;
}

/* TITULO */
.abti {
    text-align: left;
}

/* TEXTO */
.planabdesc {
    text-align: justify;
    margin: 1rem 0;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .plancont {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .abdata {
        margin: auto;
    }

    .abti {
        text-align: center;
    }
}

/* FLECHAS SWIPER */
.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
}

/* Estilo opcional para resaltar el Login */
.login-link {
    display: flex;
    align-items: center;
    column-gap: 0.25rem;
    background-color: var(--main-color) !important;
    color: #ffffff !important; 
    padding: 0.6rem 1.2rem;
    border-radius: 980px; /* Estilo Apple */
    transition: .3s;
    font-weight: 600;
}

.login-link:hover {
    transform: scale(1.05);
    background-color: #0077ed !important;
}
/* ========= INYECCIÓN NIVEL SUPERIOR: APPLE REFINEMENT ========= */

:root {
    /* Refinamiento de paleta: Colores más vibrantes y profundos */
    --main-color: #0071e3;
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-bg: #f5f5f7;
    --apple-card-shadow: 0 12px 40px rgba(0,0,0,0.06);
    /* Curvatura de "Superelipse" Apple */
    --apple-radius: 22px; 
}

/* Inyección: Scroll suave nativo */
html {
    scroll-behavior: smooth;
}

/* Inyección: Selección de texto estilo Apple */
::selection {
    background-color: rgba(0, 113, 227, 0.2);
    color: var(--apple-black);
}

body {
    background-color: var(--apple-bg);
    /* Inyección: Renderizado de texto de ultra-definición */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Inyección: Glassmorphism Superior en el Header */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* Inyección: Animación de "Levitación" en Cards */
.pdcontent, .newcontent, .catdata, .plancont {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.7); /* Brillo en el borde superior */
}

.pdcontent:hover, .newcontent:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Inyección: Botones con efecto de escala al pulsar */
.button:active, .pdbut:active {
    transform: scale(0.95);
}

/* Inyección: Micro-animación para las imágenes de los Grupos */
.productimg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inyección: Footer con desenfoque de fondo sutil */
.footer {
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(10px);
}

/* ========= INYECCIÓN: NAVEGACIÓN EN UNA SOLA LÍNEA (PREMIUM) ========= */

.nav {
    display: flex;
    justify-content: space-between; /* Mantiene logo a la izquierda y resto a la derecha */
    align-items: center;
    gap: 2rem; /* Espacio entre el logo y el bloque de navegación */
}

/* 1. Unificamos la lista y el botón de ingresar */
.navM {
    display: flex;
    align-items: center;
    margin-left: auto; /* Empuja todo el bloque hacia la derecha */
}

.navList {
    display: flex;
    align-items: center; /* Alinea verticalmente los links y el botón */
    column-gap: 2.5rem; /* Espacio elegante entre secciones */
    margin: 0;
}

/* 2. Estilizamos el link de Login para que se vea como un botón de sistema */
.apple-login {
    background-color: var(--main-color) !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 980px !important; /* Estilo cápsula Apple */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 1rem; /* Separación extra del último link */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.apple-login:hover {
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    transform: scale(1.02);
}

/* 3. Refinamiento de los links para que no se vean apretados */
.navLink {
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    opacity: 0.8;
}

.navLink:hover {
    opacity: 1;
}

/* 📱 Ajuste para mantener la limpieza en pantallas medianas */
@media (max-width: 1024px) {
    .navList {
        column-gap: 1.5rem;
    }
}

/* 📱 En móvil se mantiene el menú oculto (no cambia tu lógica) */
@media (max-width: 768px) {
    .navM {
        margin-left: 0;
    }
}

/* ========= INYECCIÓN: REDUCCIÓN DE ESCALA (COMPACT NAV) ========= */

/* 1. Reducimos la altura total del header */
.header {
    /* De 70px o 80px que tenías, bajamos a una escala más Apple */
    height: 52px; 
    display: flex;
    align-items: center;
}

.nav {
    height: 52px; /* Alineación perfecta con el header */
    gap: 1.5rem; /* Espacio más estrecho entre logo y menú */
}

/* 2. Reducimos el logo y los textos */
.navL-img {
    width: 32px; /* Logo más discreto */
}

.navL {
    font-size: 0.95rem; /* Nombre de la pastoral un poco más pequeño */
}

/* 3. Ajustamos la lista de navegación para que sea más sutil */
.navList {
    column-gap: 1.8rem; /* Reducimos el espacio entre los links */
}

.navLink {
    font-size: 0.82rem; /* Tamaño estándar de la barra superior de apple.com */
    font-weight: 400; /* Peso más ligero para un look más limpio */
}

/* 4. Reducimos el botón de ingresar para que no domine la vista */
.login-link {
    padding: 0.4rem 1rem !important; /* Más delgado */
    font-size: 0.8rem !important;
    column-gap: 0.3rem !important;
}

.login-link i {
    font-size: 1rem !important; /* Ícono más pequeño */
}

/* 5. Ajuste del margen del contenido principal */
.main {
    margin-top: 60px; /* Reducimos el espacio que dejaba el header viejo */
}

/* ========= MEJORA DE REFINAMIENTO ========= */
.scroll-header {
    /* Hacemos la sombra aún más sutil al ser más pequeño */
    box-shadow: 0 1px 10px rgba(0,0,0,0.03); 
}

