

/*=========================================================
PROYECTO : CAMPUS VIRTUAL ESCUELA DE OFICIOS

ARCHIVO : style.css

VERSIÓN : 0.1

=========================================================*/


/*=========================================================
RESET GENERAL
=========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    
    scroll-behavior:smooth;

    scroll-padding-top:90px;

}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#F8FAFC;

    color:#2E2E2E;

    line-height:1.6;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}


    COLORES INSTITUCIONALES 

/*=========================================================
COLORES ESCUELA DE OFICIOS
=========================================================*/

:root{

    --azul:#0A4F9E;

    --verde:#6DBE45;

    --blanco:#FFFFFF;

    --gris-claro:#F4F6F8;

    --gris:#666666;

    --texto:#303030;

    --sombra:0 15px 40px rgba(0,0,0,.08);

    --radio:18px;

}

/*=========================================================
CONTENEDOR
=========================================================*/

.contenedor{

    width:90%;

    max-width:1400px;

    margin:auto;

}

/*=========================================================
HERO PRINCIPAL
=========================================================*/

#hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    background:var(--blanco);

}

.hero-container{

    width:90%;

    max-width:1450px;

    margin:auto;

    display:grid;

    grid-template-columns:60% 40%;

    align-items:center;

    gap:60px;

}

.hero-video{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-video video{

    width:100%;

    border-radius:25px;

    box-shadow:var(--sombra);

}

.hero-content{

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.campus-etiqueta{

    color:var(--verde);

    font-weight:bold;

    letter-spacing:3px;

    margin-bottom:20px;

}

.hero-content h1{

    font-size:62px;

    color:var(--azul);

    margin-bottom:20px;

}

.hero-content h2{

    font-size:34px;

    font-weight:400;

    color:var(--texto);

    margin-bottom:30px;

}

.hero-intro{

    font-size:20px;

    color:var(--gris);

    margin-bottom:40px;

}

/*=========================================================
MARQUESINA
=========================================================*/

.hero-slider{

    margin:40px 0;

    min-height:55px;

}

.slide{

    display:none;

    font-size:20px;

    color:var(--azul);

    font-weight:600;

}

.slide.activo{

    display:block;

}


/*=========================================================
BOTONES
=========================================================*/

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:20px;

}

.btn-principal{

    background:var(--azul);

    color:var(--blanco);

    padding:18px 38px;

    border-radius:50px;

    font-size:18px;

    font-weight:bold;

    transition:.35s;

    box-shadow:var(--sombra);

}

.btn-principal:hover{

    background:var(--verde);

    transform:translateY(-4px);

}

.btn-secundario{

    border:2px solid var(--azul);

    color:var(--azul);

    padding:18px 38px;

    border-radius:50px;

    font-size:18px;

    transition:.35s;

}

.btn-secundario:hover{

    background:var(--azul);

    color:white;

}


/*=========================================================
SECCIONES
=========================================================*/

section{

    padding:110px 0;

}

.titulo-seccion{

    text-align:center;

    margin-bottom:60px;

}

.titulo-seccion span{

    color:var(--verde);

    font-size:15px;

    letter-spacing:2px;

    font-weight:bold;

}

.titulo-seccion h2{

    color:var(--azul);

    font-size:42px;

    margin-top:12px;

}


/*=========================================================
CARDS
=========================================================*/

.cards-metodo{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.card{

    background:white;

    padding:45px;

    border-radius:22px;

    box-shadow:var(--sombra);

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

}

.card h3{

    margin:25px 0;

    color:var(--azul);

}

.icono{

    font-size:48px;

}


/*=========================================================
GALERÍA
=========================================================*/

.galeria-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.foto{

    overflow:hidden;

    border-radius:20px;

    box-shadow:var(--sombra);

}

.foto img{

    transition:.5s;

}

.foto:hover img{

    transform:scale(1.08);

}


/*=========================================================
ACCESOS
=========================================================*/

.accesos-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.acceso-card{

    background:white;

    padding:45px;

    border-radius:20px;

    box-shadow:var(--sombra);

    transition:.35s;

    color:var(--texto);

}

.acceso-card:hover{

    transform:translateY(-8px);

}

.acceso-card h3{

    color:var(--azul);

    margin-bottom:18px;

}


/*=========================================================
FOOTER
=========================================================*/

#footer{

    background:var(--azul);

    color:white;

    padding:70px 0 30px;

}

.contenedor-footer{

    width:90%;

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}

.footer-columna h3{

    margin-bottom:20px;

}

.footer-columna ul li{

    margin-bottom:12px;

}

.footer-columna a{

    color:white;

}

.copyright{

    text-align:center;

    margin-top:50px;

    border-top:1px solid rgba(255,255,255,.20);

    padding-top:25px;

    font-size:15px;

}

/*=========================================================
BIBLIOTECA PÚBLICA
=========================================================*/

.hero-biblioteca{

    background:linear-gradient(135deg,#0A4F9E,#2E86DE);

    color:#fff;

    padding:90px 0;

    text-align:center;

}

.hero-biblioteca h1{

    font-size:48px;

    margin:20px 0;

}

.hero-biblioteca p{

    max-width:850px;

    margin:auto;

    font-size:20px;

    line-height:1.8;

}

.etiqueta{

    display:inline-block;

    background:#6DBE45;

    color:#fff;

    padding:10px 24px;

    border-radius:30px;

    font-size:14px;

    letter-spacing:1px;

    font-weight:bold;

}

.articulo-destacado{

    padding:90px 0;

}

.destacado-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}

.destacado-grid img{

    width:100%;

    border-radius:18px;

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.categoria{

    color:#6DBE45;

    font-weight:bold;

    letter-spacing:2px;

    font-size:14px;

}

.destacado-grid h2{

    font-size:38px;

    margin:20px 0;

}

.destacado-grid p{

    line-height:1.8;

    color:#555;

}

/*=========================================================
BOTONES CTA - BIBLIOTECA PÚBLICA
=========================================================*/

.cta-botones{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-top:35px;
    flex-wrap:wrap;
}

.boton-verde{
    display:inline-block;
    background:#38b000;
    color:#ffffff;
    padding:16px 34px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    font-size:16px;
}

.boton-verde:hover{
    background:#2d9200;
}

.btn-campus{
    display:inline-block;
    background:#0d6efd;
    color:#ffffff;
    padding:16px 34px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    font-size:16px;
}

.btn-campus:hover{
    background:#0b5ed7;
}

/*=========================================================
CATEGORÍAS - BIBLIOTECA
=========================================================*/

.categorias-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
    margin-top:50px;
}

.categoria-card{
    background:#ffffff;
    border-radius:18px;
    padding:35px 30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.30s;
}

.categoria-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

.categoria-card .icono{
    font-size:58px;
    margin-bottom:18px;
}

.categoria-card h3{
    color:#0d6efd;
    margin-bottom:15px;
    font-size:28px;
}

.categoria-card p{
    color:#555;
    line-height:1.7;
}

/*=========================================================
BOTÓN EXPLORAR ARTÍCULOS
=========================================================*/

.btn-categoria{
    display:inline-block;
    margin-top:20px;
    padding:12px 26px;
    background:#0d6efd;
    color:#ffffff;
    text-decoration:none;
    border-radius:40px;
    font-weight:bold;
    transition:all .3s ease;
}

.btn-categoria:hover{
    background:#0b5ed7;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(13,110,253,.30);
}
/*===========================================================
                     NUESTRA VIDA 
===========================================================*/
.galeria-vida{

    padding:80px 0;

    background:#ffffff;

}
.galeria-vida .contenedor{

    max-width:1200px;

    margin:0 auto;

    padding:0 20px;

}
.galeria-vida h2{

    text-align:center;

    font-size:2.2rem;

    color:#0b3d91;

    margin-bottom:20px;

}
.galeria-vida .texto-galeria{

    max-width:800px;

    margin:0 auto 40px;

    text-align:center;

    font-size:1.1rem;

    line-height:1.8;

    color:#555555;

}
.galeria-fotos{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}
.galeria-fotos img{

    width:100%;

    height:280px;

    object-fit:cover;

    border-radius:12px;

    box-shadow:0 6px 18px rgba(0,0,0,.15);

    transition:.30s;

}
.galeria-fotos img:hover{

    transform:scale(1.03);

    box-shadow:0 12px 28px rgba(0,0,0,.25);

}
.lightbox{

    display:none;

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.85);

    justify-content:center;

    align-items:center;

    z-index:9999;

}
.lightbox img{

    max-width:90%;

    max-height:90%;

    border-radius:12px;

    box-shadow:0 12px 30px rgba(0,0,0,.40);

}
.cerrar{

    position:absolute;

    top:20px;

    right:35px;

    color:#ffffff;

    font-size:45px;

    font-weight:bold;

    cursor:pointer;

    transition:.30s;

}
.cerrar:hover{

    color:#cccccc;

}