/* ==========================================================
   CENTRO INFANTIL ZETILLAL
   CSS PÚBLICO
   PARTE 1
   Variables - Reset - Header - Navegación - Hero Carrusel
========================================================== */

/* ==========================
   RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Nunito',sans-serif;
    background:#f6f9fc;
    color:#1e293b;
    overflow-x:hidden;
}

/* ==========================
   VARIABLES
========================== */

:root{

    --primary:#0F3D91;
    --primary-dark:#0a2d69;
    --secondary:#38BDF8;

    --light:#ffffff;
    --gray:#64748b;
    --border:#e2e8f0;
    --background:#f8fafc;

    --radius:18px;

    --shadow:
            0 8px 25px rgba(15,61,145,.08);


}

/* ==========================
   HEADER
========================== */

.pn-header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:999;

    background:white;

    border-bottom:1px solid var(--border);


}

.pn-header-container{

    max-width:1400px;

    height:90px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 40px;

}

/* ==========================
   LOGO
========================== */

.pn-brand{

    display:flex;

    align-items:center;

    gap:14px;

    min-width:0;

    text-decoration:none;

}

.pn-brand-logo{

    width:52px;

    height:52px;

    flex-shrink:0;

    object-fit:contain;

}

.pn-brand-name{

    display:block;

    font-size:20px;

    font-weight:800;

    color:var(--primary);

}

.pn-brand-sub{

    display:block;

    margin-top:3px;

    font-size:12px;

    color:#64748b;

    text-transform:uppercase;

    letter-spacing:1px;

}

/* ==========================
   NAVBAR
========================== */

.ip-navbar{

    flex:1;

    min-width:0;

    display:flex;

    justify-content:center;

}

.ip-navbar-inner{

    display:flex;

    align-items:center;

    gap:clamp(16px, 2.5vw, 38px);

}

.ip-nav-link{

    position:relative;

    white-space:nowrap;

    text-decoration:none;

    color:#334155;

    font-size:15px;

    font-weight:700;

    transition:.25s;

}

.ip-nav-link:hover{

    color:var(--secondary);

}

.ip-nav-link::after{

    content:"";

    position:absolute;

    bottom:-8px;

    left:0;

    width:0;

    height:3px;

    background:var(--secondary);

    transition:.30s;

    border-radius:20px;

}

.ip-nav-link:hover::after{

    width:100%;

}

/* ==========================
   BOTÓN LOGIN
========================== */

.pn-login-btn{

    flex-shrink:0;

    white-space:nowrap;

    text-decoration:none;

    background:linear-gradient(135deg,#38BDF8,#0F3D91);

    color:white;

    padding:13px 24px;

    border-radius:12px;

    font-size:14px;

    font-weight:700;

    transition:.30s;

    box-shadow:0 8px 20px rgba(56,189,248,.25);

}

.pn-login-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 15px 35px rgba(56,189,248,.35);

}

/* ==========================
   MAIN
========================== */

main{

    margin-top:90px;

}

/* ==========================
   HERO
========================== */

.hero-section{

    width:100%;

    padding:0;

}

/* ==========================
   CARRUSEL
========================== */

.hero-carousel{

    position:relative;

    max-width:1300px;   /* ancho máximo */

    width:92%;          /* ya no ocupa toda la pantalla */

    height:500px;       /* antes 650px */

    margin:120px auto 40px; /* lo centra */

    border-radius:25px;

    overflow:hidden;


}

.carousel-wrapper{

    width:100%;

    height:100%;

    position:relative;

}

.carousel-slide{

    position:absolute;

    inset:0;

    background-size:cover;

    background-position:center;

    opacity:0;

    transition:opacity .7s ease;

}

.carousel-slide.active{

    opacity:1;

    z-index:2;

}

/* ==========================
   OVERLAY
========================== */

.hero-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    background:linear-gradient(
            90deg,
            rgba(10,28,74,.82) 0%,
            rgba(10,28,74,.55) 45%,
            rgba(10,28,74,.15) 100%
    );

}

.hero-content{

    max-width:650px;

    margin-left:9%;

    color:white;

}

/* ==========================
   BADGE
========================== */

.hero-badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:50px;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(8px);

    color:white;

    font-size:12px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:20px;

}

/* ==========================
   TITULO
========================== */

.hero-title{

    font-family:'Playfair Display',serif;

    font-size:46px;

    line-height:1.1;

    margin-bottom:20px;

    text-shadow:0 8px 20px rgba(0,0,0,.30);

}

/* ==========================
   DESCRIPCIÓN
========================== */

.hero-description{

    font-size:16px;

    line-height:1.8;

    color:rgba(255,255,255,.90);

    margin-bottom:35px;

    max-width:600px;

}

/* ==========================
   BOTONES HERO
========================== */

.hero-buttons{

    display:flex;

    gap:18px;

}

.hero-btn-primary{

    text-decoration:none;

    padding:15px 28px;

    border-radius:12px;

    background:white;

    color:var(--primary);

    font-weight:800;

    transition:.30s;

}

.hero-btn-primary:hover{

    transform:translateY(-2px);

    background:#eaf7ff;

}

.hero-btn-secondary{

    text-decoration:none;

    padding:15px 28px;

    border-radius:12px;

    border:2px solid rgba(255,255,255,.6);

    color:white;

    font-weight:800;

    transition:.30s;

}

.hero-btn-secondary:hover{

    background:white;

    color:var(--primary);

}

/* ==========================
   FLECHAS
========================== */

.carousel-arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(10px);

    color:white;

    cursor:pointer;

    z-index:30;

    transition:.25s;

}

.carousel-arrow:hover{

    background:white;

    color:var(--primary);

}

.carousel-arrow-prev{

    left:30px;

}

.carousel-arrow-next{

    right:30px;

}

/* ==========================
   DOTS
========================== */

.carousel-dots{

    position:absolute;

    bottom:35px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:10px;

    z-index:30;

}

.carousel-dot{

    width:12px;

    height:12px;

    border-radius:50%;

    border:none;

    background:rgba(255,255,255,.45);

    cursor:pointer;

    transition:.30s;

}

.carousel-dot.active{

    background:white;

    transform:scale(1.25);

}

/* ==========================================================
   PARTE 2
   LISTADO DE NOTICIAS
========================================================== */

/* ==========================
   SECCIÓN NOTICIAS
========================== */

.pn-listado{

    max-width:1400px;

    margin:80px auto;

    padding:0 40px;

}

/* ==========================
   TÍTULOS
========================== */

.section-heading{

    text-align:center;

    margin-bottom:55px;

}

.section-mini-title{

    display:inline-block;

    padding:8px 18px;

    border-radius:40px;

    background:#e0f2fe;

    color:var(--primary);

    font-size:12px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:18px;

}

.section-heading h2{

    font-family:'Playfair Display',serif;

    font-size:46px;

    color:var(--primary);

    margin-bottom:18px;

}

.section-heading p{

    max-width:760px;

    margin:auto;

    color:#64748b;

    font-size:18px;

    line-height:1.8;

}

/* ==========================
   GRID
========================== */

.pn-cards-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(270px,320px));

    justify-content:center;

    gap:25px;

}

/* ==========================
   TARJETA
========================== */

.pn-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    text-decoration:none;


    transition:.35s;

    display:flex;

    flex-direction:column;

}

.pn-card:hover{

    transform:translateY(-10px);


}

/* ==========================
   IMAGEN
========================== */

.pn-card-img{

    height:180px;

    background-size:cover;

    background-position:center;

    position:relative;
}



/* ==========================
   BADGE
========================== */

.slide-badge{

    position:absolute;

    top:18px;

    left:18px;

    z-index:5;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(255,255,255,.92);

    color:var(--primary);

    font-size:12px;

    font-weight:800;

    letter-spacing:1px;

    text-transform:uppercase;

}

/* ==========================
   CUERPO
========================== */

.pn-card-body{

    display:flex;

    flex-direction:column;

    padding:18px;

    flex:1;

}

/* ==========================
   FECHA
========================== */

.pn-card-date{

    color:#94a3b8;

    font-size:13px;

    font-weight:700;

    margin-bottom:10px;

}

/* ==========================
   TITULO
========================== */

.pn-card-title{

    font-family:'Playfair Display',serif;

    color:var(--primary);

    font-size:22px;

    line-height:1.3;

    margin-bottom:16px;

}

/* ==========================
   DESCRIPCIÓN
========================== */

.pn-card-desc{

    color:#64748b;

    line-height:1.8;

    font-size:14px;

    flex:1;

    margin-bottom:28px;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

/* ==========================
   LEER MÁS
========================== */

.pn-read-more{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--secondary);

    font-weight:800;

    font-size:15px;

    transition:.30s;

}

.pn-card:hover .pn-read-more{

    transform:translateX(8px);

}

/* ==========================
   SIN NOTICIAS
========================== */

.pn-sin-noticias{

    background:white;

    border-radius:20px;

    padding:80px;

    text-align:center;

    color:#64748b;

    box-shadow:var(--shadow);

    font-size:18px;

}
/* ==========================
   SIN NOTICIAS
========================== */

.no-news{

    background:linear-gradient(
            135deg,
            #0F3D91,
            #38BDF8
    );

}
/* ==========================================================
   PARTE 3
   QUIÉNES SOMOS
   PERSONAL
   MISIÓN Y VISIÓN
==========================================================*/

/*===========================================================
=            QUIÉNES SOMOS
===========================================================*/



.about-container{

    max-width:1350px;

    margin:0 auto 90px;

    background:white;

    border-radius:35px;

    padding:70px;

    display:grid;

    grid-template-columns:1.3fr .9fr;

    gap:60px;

    align-items:center;

    box-shadow:0 20px 60px rgba(15,61,145,.08);

}

.section-tag{

    display:inline-block;

    padding:8px 18px;

    border-radius:40px;

    background:#e0f2fe;

    color:var(--primary);

    font-size:12px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:22px;

}

.about-left h2{

    font-family:'Playfair Display',serif;

    font-size:46px;

    color:var(--primary);

    line-height:1.25;

    margin-bottom:25px;

}

.about-left p{

    color:#64748b;

    font-size:17px;

    line-height:1.9;

    margin-bottom:20px;

}

/*===========================================================
=            TARJETAS DERECHA
===========================================================*/

.about-right{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

.about-card{

    background:#f8fbff;

    border:1px solid #e6eef8;

    border-radius:22px;

    padding:28px 20px;

    text-align:center;

    transition:.30s;

    box-shadow:none;

}

.about-card:hover{

    transform:translateY(-6px);

    background:white;

    box-shadow:0 15px 35px rgba(15,61,145,.10);

}

.about-card h3{

    color:var(--secondary);

    font-size:40px;

    font-weight:800;

    margin-bottom:10px;

}

.about-card span{

    color:#64748b;

    line-height:1.7;

    font-size:15px;

}

/*===========================================================
=            PERSONAL
===========================================================*/

.staff-section{

    padding:60px 40px 100px;

    background:#f8fafc;

}

.section-header{

    text-align:center;

    max-width:900px;

    margin:auto;

    margin-bottom:60px;

}

.section-header span{

    display:inline-block;

    padding:8px 18px;

    border-radius:40px;

    background:#e0f2fe;

    color:var(--primary);

    font-size:12px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:2px;

    margin-bottom:18px;

}

.section-header h2{

    font-family:'Playfair Display',serif;

    font-size:44px;

    color:var(--primary);

    line-height:1.3;

}

.staff-grid{

    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.staff-card{

    background:white;

    border-radius:24px;

    padding:45px 35px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.35s;

}

.staff-card:hover{

    transform:translateY(-8px);


}

.staff-icon{

    width:90px;

    height:90px;

    margin:auto;

    margin-bottom:25px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:42px;

    background:linear-gradient(135deg,#38BDF8,#0F3D91);

    color:white;

}

.staff-card h3{

    color:var(--primary);

    font-size:24px;

    margin-bottom:15px;

}

.staff-card p{

    color:#64748b;

    line-height:1.8;

}

/*===========================================================
=            MISIÓN Y VISIÓN
===========================================================*/

.mission-section{

    padding:100px 40px;

    background:white;

}

.mission-container{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:40px;

}

.mission-box{

    background:linear-gradient(135deg,#0F3D91,#1d4ed8);

    color:white;

    padding:50px;

    border-radius:28px;

    position:relative;

    overflow:hidden;


}

.mission-box::before{

    content:"";

    position:absolute;

    width:220px;

    height:220px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    right:-70px;

    top:-70px;

}

.mission-box span{

    display:inline-block;

    margin-bottom:20px;

    font-size:12px;

    font-weight:800;

    letter-spacing:2px;

    text-transform:uppercase;

    color:#bae6fd;

}

.mission-box h2{

    font-family:'Playfair Display',serif;

    font-size:36px;

    margin-bottom:22px;

    position:relative;

}

.mission-box p{

    position:relative;

    font-size:17px;

    line-height:1.9;

    color:rgba(255,255,255,.92);

}

/* ==========================================================
   PARTE 4
   FOOTER - RESPONSIVE - ANIMACIONES
==========================================================*/

/*===========================================================
=            FOOTER
===========================================================*/

.home-footer{

    background:#0F3D91;

    color:white;

    margin-top:80px;

}

.footer-content{

    max-width:1200px;

    margin:auto;

    padding:60px 30px;

    text-align:center;

}

.footer-content h3{

    font-family:'Playfair Display',serif;

    font-size:32px;

    margin-bottom:15px;

}

.footer-content p{

    font-size:15px;

    color:rgba(255,255,255,.80);

    line-height:1.8;

}

/*===========================================================
=            SCROLL SUAVE
===========================================================*/

section{

    scroll-margin-top:110px;

}

/*===========================================================
=            ANIMACIONES
===========================================================*/

.pn-card,
.staff-card,
.about-card,
.mission-box,
.hero-btn-primary,
.hero-btn-secondary,
.carousel-arrow{

    transition:all .30s ease;

}

.pn-card:hover,
.staff-card:hover,
.about-card:hover{

    transform:translateY(-8px);

}

.hero-btn-primary:hover,
.hero-btn-secondary:hover{

    transform:translateY(-3px);

}

.carousel-arrow:hover{

    transform:translateY(-50%) scale(1.08);

}

/*===========================================================
=            TABLET
===========================================================*/

@media(max-width:1100px){

    .pn-header{

        position:relative;

    }

    main{

        margin-top:0;

    }

    .pn-header-container{

        height:auto;

        padding:16px 25px;

        display:grid;

        grid-template-columns:minmax(0, 1fr) auto;

        grid-template-areas:
                "brand login"
                "nav nav";

        row-gap:16px;

    }

    .pn-brand{

        grid-area:brand;

    }

    .ip-navbar{

        grid-area:nav;

        width:100%;

    }

    .pn-login-btn{

        grid-area:login;

    }

    .ip-navbar-inner{

        justify-content:center;

    }

    .hero-title{

        font-size:46px;

    }

    .about-container{

        grid-template-columns:1fr;

    }

    .about-right{

        margin-top:20px;

    }

    .staff-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .mission-container{

        grid-template-columns:1fr;

    }

}

/*===========================================================
=            CELULAR
===========================================================*/

@media(max-width:768px){

    .pn-header{

        position:relative;

    }

    .pn-header-container{

        height:auto;

        display:flex;

        padding:20px;

        flex-direction:column;

        gap:18px;

    }

    .ip-navbar{

        width:100%;

    }

    .ip-navbar-inner{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    main{

        margin-top:0;

    }

    .hero-carousel{

        height:500px;

    }

    .hero-content{

        margin:0 25px;

    }

    .hero-title{

        font-size:34px;

    }

    .hero-description{

        font-size:15px;

    }

    .hero-buttons{

        flex-direction:column;

        align-items:flex-start;

    }

    .pn-listado{

        padding:0 20px;

    }

    .section-heading h2{

        font-size:34px;

    }

    .about-left h2{

        font-size:40px;

        line-height:1.25;

    }

    .about-right{

        grid-template-columns:1fr;

    }

    .staff-grid{

        grid-template-columns:1fr;

    }

    .mission-box{

        padding:35px;

    }

    .mission-box h2{

        font-size:30px;

    }

}

/*===========================================================
=            CELULARES PEQUEÑOS
===========================================================*/

@media(max-width:480px){

    .hero-carousel{

        height:430px;

    }

    .hero-title{

        font-size:28px;

    }

    .hero-description{

        display:none;

    }

    .carousel-arrow{

        display:none;

    }

    .pn-brand-name{

        font-size:18px;

    }

    .section-heading h2{

        font-size:28px;

    }

    .about-left h2{

        font-size:28px;

    }

    .section-header h2{

        font-size:30px;

    }

    .footer-content h3{

        font-size:24px;

    }

}


/*===========================================================
=            SCROLLBAR
===========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:#38BDF8;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#0F3D91;

}