/* BOTÃ“N ADMIN TOPBAR */

@media (max-width: 768px){

    .row{
        flex-direction: column;
    }

    .col-md-4,
    .col-md-8,
    .col-md-6{
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
    }
}
.admin-login
{
    display:inline-flex;
    align-items:center;
    gap:6px;
	border:1px solid rgba(255,255,255,0.4);
    background:rgba(255,255,255,0.15);
    color:#fff !important;
    padding:4px 10px;
    border-radius:20px;
    font-size:13px;
    text-decoration:none;
    transition:0.3s;
}

.admin-login i
{
    font-size:14px;
}

/* HOVER MODERNO */
.admin-login:hover
{
    background:#fff;
    color:#b71c1c !important;
}


/* ðŸ”´ TOPBAR */ 
.topbar
{
    background:#c62828 !important;
    color:#fff;
    font-size:14px;
    padding:7px 0;   /* ðŸ‘ˆ antes 6px */
    line-height:1.6;
}

.topbar .container
{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:40px;
}

.topbar i
{
    margin-right:4px;
}

/* CONTENEDOR TEXTO */
.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

/* "LICEO" PRINCIPAL */
.brand-title
{
    font-size:25px;
    font-weight:700;
    color:#1a1a1a;
    letter-spacing:0.5px;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

/* NOMBRE INSTITUCIÃ“N */
.brand-subtitle
{
    font-size:35px;
    font-weight:500;
    color:#b71c1c; /* rojo institucional */
	font-family: allura
}

/* MENUS */

.navbar-nav .nav-link
{
    position:relative;
    padding:10px 12px;
	text-transform: uppercase;

}

.navbar-nav .nav-link.active{
    font-weight: 700;
    color: #c62828;
}

.navbar-nav .nav-link::after
{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:0%;
    height:2px;
    background:#b71c1c;
    transition:0.3s;
    transform:translateX(-50%);
}

.navbar-nav .nav-link:hover::after
{
    width:70%;
}

/* SLIDER */
.slider{
    position:relative;
    width:100%;
    height:420px;
    overflow:hidden;
}

/* CADA SLIDE */
.slide
{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:1s ease;
}

.slide.active{
    opacity:1;
    z-index:1;
}

/* IMAGEN */
.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* Banner centenario */

.banner-centenario img {
    width: 100%;
    max-height: 380px;   /* ajusta aquí */
   
}

/* título */
.titulo-centenario{
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* frase */
.frase-centenario{
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}




/* mision y vision */

.card-mision{
    color: #333;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
	 opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.card-mision.show{
    opacity: 1;
    transform: translateY(0);
}

.card-mision:nth-child(1){
    transition-delay: 0.1s;
}

.card-mision:nth-child(2){
    transition-delay: 0.2s;
}

.card-mision:hover{
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 25px rgba(230, 65, 19, 0.18);
    border-color: rgba(230, 65, 19, 0.25);
}
.icono{
    font-size: 26px;   /* más compacto */
    color: #E74113;
    display: block;
    margin: 0 auto 6px;
}

.card-mision h5{
    font-weight: 600;
    color: #E74113;
    font-size: 21px;   /* más institucional */
    margin-bottom: 8px;
}

.card-mision p{
    text-align: justify;
    font-size: 13.5px; /* clave para compactar */
    line-height: 1.5;
    margin-bottom: 0;
    color: #444;
    font-family: "Gill Sans", "Arial", sans-serif;
}

/* OVERLAY */
.slide-overlay{
    position:absolute;
    bottom:0;
    width:100%;
    padding:40px 20px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.8),
        transparent
    );

    color:#fff;
}

/* TEXTO */
.slide-overlay h2{
    font-size:28px;
    font-weight:700;
    margin-bottom:5px;
}

.slide-overlay p{
    font-size:16px;
    margin:0;
}


/* titulo de pagina */

.page-banner{
   background: linear-gradient(
        135deg,
        #c62828 0%,
        #b71c1c 50%,
        #7f1515 100%
    );
    color: #fff;
    padding: 25px 0;
    margin-top: 0;
}

.page-title{
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.page-banner2{
    background: linear-gradient(
        135deg,
        #E5C414 0%,
        #E5C414 50%,
        #E5C414 100%
    );
    color: #fff;
     padding-top: 1px;
    padding-bottom: 1px;
    margin-top: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* ? brillo superior suave */
.page-banner2::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.12),
        transparent
    );
    pointer-events: none;
}



/* =========================
   NOTICIAS DESTACADAS
========================= */

.destacada-card{

    display:flex;
    flex-direction:column;
    height:100%;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    transition:all .3s ease;
}

.destacada-card:hover{

    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.18);
}

/* IMAGEN */
.destacada-img{

    width:100%;
    height:240px;
    overflow:hidden;
    flex-shrink:0;
}

.destacada-img img{

    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s ease;
}

.destacada-card:hover .destacada-img img{

    transform:scale(1.05);
}

/* CUERPO */
.destacada-body{

    display:flex;
    flex-direction:column;
    padding:15px;
    flex-grow:1;
}

/* TITULO */
.destacada-body h3{

    color:#c62828;
    font-size:17px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:10px;
    min-height:48px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* RESUMEN */
.destacada-body p{

    color:#555;
    font-size:14px;
    line-height:1.6;
    margin-bottom:0;
    flex-grow:1;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
/* ðŸ”¥ OVERLAY */ 
.overlay-destacada
{ 
	position:absolute; 
	bottom:0; 
	width:100%; 
	padding:25px; 
	background: linear-gradient( to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3), transparent ); 
} 
.overlay-destacada h2
{ 
	background: rgba(255,255,255,0.15); 
	backdrop-filter: blur(6px); 
	padding:12px 18px; 
	border-radius:10px; 
	display:inline-block; 
	color:#fff; 
	font-size:24px; 
	font-weight:600; 
	max-width:70%; 
	text-shadow:0 2px 10px rgba(0,0,0,0.8); 
} 

.destacada-small{
    position:relative;
    display:block;
    width:90%;
    height:280px; /* ðŸ‘ˆ mÃ¡s pequeÃ±a */
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
    text-decoration:none;
}

.destacada-small img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}

.destacada-small:hover img{
    transform:scale(1.05);
}

/* overlay mÃ¡s limpio */
.destacada-small-overlay{
    position:absolute;
    bottom:0;
    width:100%;
    padding:10px 12px;
    background:linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.destacada-small-overlay h3{
    color:#fff;
    font-size:14px; /* ðŸ‘ˆ mÃ¡s pequeÃ±o */
    font-weight:600;
    margin:0;
}


/* âš¡ ACCESOS */ 
.acceso-box{
    background: #ffffff;
    color: #1a3c5e;
    padding: 12px 25px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    /* ? relieve */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(26, 60, 94, 0.15);
}

.acceso-box:hover{
    background: #f5f7fa;
    color: #c62828;

    transform: translateY(-3px);

    /* ? más profundidad al hover */
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.acceso-box i{
    font-size: 18px;
}

/* ðŸŸ¡ NOTICIAS GRID */ 
.card-img-top
{ 
	height:180px; object-fit:cover; 
} 
.noticia-hover
{ 
	transition:0.3s; 
} 
.noticia-hover:hover
{ 
	transform:translateY(-8px); box-shadow:0 15px 30px rgba(0,0,0,0.2); 
} 

/* NOTICIA HORIZONTAL */
.noticia-horizontal{
    border:none;
    border-radius:10px;
    overflow:hidden;
    transition:0.3s;
     width: 100%;
    max-width: 650px;
}

.noticia-horizontal:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGEN */
.noticia-img{
    object-fit:cover;
    height:100%;
    min-height:140px;
}

/* TEXTO */
.noticia-horizontal .card-title{
    font-size:15px;
    font-weight:600;
	color: #c62828;
}
.resumen{
    font-size:13px;
    color:#444;
    line-height:1.4;
    margin-bottom:8px;
}

.fecha-noticia{
    font-size:12px;
    color:#888;
    border-top:1px solid #eee;
    padding-top:6px;
}

.ubicacion-fecha{
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* PAGINA NOTICIA INDIVIDUAL*/

.img-detalle{
    width: 100%;
    max-width: 450px;   /* controla que no sea exageradamente grande */
    height: auto;
    display: block;
    margin: 0 auto;     /* la centra */
    border-radius: 10px;
}

.contenido-noticia{
    text-align: justify;
    font-size: 16px;
    line-height: 1.7;
}

.footer{
    background: linear-gradient(
        135deg,
        #121212 0%,
        #1a1a1a 50%,
        #222 100%
    );

    color:#ccc;
    padding:60px 0 25px;

    border-top:4px solid #c62828;
}

/* TITULO */
.footer-title{
    color:#fff;
    font-size:24px;
    font-weight:700;
    margin-bottom:10px;
}

/* LINEA ROJA */
.footer-line{
    width:60px;
    height:3px;
    background:#c62828;
    margin-bottom:20px;
    border-radius:10px;
}

/* TEXTO */
.footer-text{
    font-size:14px;
    color:#aaa;
    line-height:1.7;
    margin-bottom:20px;
}

/* ITEMS CONTACTO */
.footer-contacto{
    display:flex;
    align-items:flex-start;
    gap:12px;

    margin-bottom:14px;

    font-size:14px;
    line-height:1.6;
}

/* ICONOS */
.footer-contacto i{
    color:#c62828;
    font-size:16px;
    margin-top:3px;
}

/* TEXTO CONTACTO */
.footer-contacto span{
    color:#ddd;
}

/* CENTRO */
.footer-centro{
    padding:10px 20px;
}

/* NOMBRE */
.footer-liceo{
    color:#fff;
    font-size:26px;
    font-weight:700;
    margin-bottom:10px;
}

/* FRASE */
.footer-frase{
    color:#bbb;
    font-style:italic;
    font-size:15px;
    line-height:1.6;
}

/* LOGO */
.footer-logo{
    max-width:300px;
    width:100%;
    height:auto;

    transition:0.3s;
}

.footer-logo:hover{
    transform:scale(1.03);
}

/* DIVISOR */
.footer-divider{
    border-color:rgba(255,255,255,0.08);
    margin:35px 0 20px;
}

/* COPYRIGHT */
.footer-copy{
    color:#888;
    font-size:13px;
    letter-spacing:0.3px;
}

/* RESPONSIVE */
@media(max-width:991px){

    .footer{
        text-align:center;
    }

    .footer-line{
        margin:0 auto 20px;
    }

    .footer-contacto{
        justify-content:center;
    }

    .footer-logo{
        margin-top:20px;
    }
}

/* LINKS FOOTER */
.footer a{
    color:#6D6D6D;
    text-decoration:none;
    transition:0.3s;
}

.footer a:hover{
    color:#fff;
    opacity:0.9;
}

/* contenido de la pagina */

.historia-titulo {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #c62828;
  margin-bottom: 30px;
  position: relative;
  font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, "sans-serif"
}

.historia {
  max-width: 900px;
  margin: auto;
  font-family: 'Georgia', serif;
  color: #2c3e50;
}

.historia-item {
  border-left: 3px solid #c62828; /* rojo institucional */
  padding-left: 15px;
  margin-bottom: 25px;
  position: relative;
}

.historia-item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #c62828;
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 5px;
}

.historia-item h5 {
  margin: 0;
  color: #1a3c5e; /* azul institucional */
  font-weight: bold;
}

.historia-item p {
  margin: 5px 0 0 0;
  line-height: 1.6;
  font-size: 15px;
	text-align: justify;
}

.btn-volver{
    background-color: #c62828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-volver:hover{
    background-color: #b71c1c;
    color: #fff;
}

/* documentos */

.documentos a {
    font-family: "Gill Sans", "Arial", sans-serif;
    color: black;
    text-decoration: none;
}

.documentos a:hover {
    color: #c62828;
    padding-left: 5px;
}

.btn-doc {
    width: 250px;
    height: 250px;
    background-color: #b71c1c;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    text-decoration: none;
    font-size: 20px;
	font-family: "Gill Sans", "Arial", sans-serif;
    padding: 10px;

    transition: 0.3s;
}

.btn-doc:hover {
    background-color: #D86A6B;
    color: #3b5176;
}

.btn-doc img {
    width: 50px;   /* tamaño de la imagen */
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.btn-doc {
    flex-direction: column; /* pone imagen arriba y texto abajo */
    font-size: 21px;
    line-height: 1.3;
}

/* agregado 06-05 */

.admin-login {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* espacio entre icono y texto */
}

.admin-login img {
    transition: 0.3s;
}

.admin-login:hover img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(89%) saturate(746%) hue-rotate(343deg) brightness(92%) contrast(92%);
}



.acceso-box {
    width: 100%;
    justify-content: center;
}

/* modificaciones realizadas para visualización en celulares*/

html, body{
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px){

    .slider{
        height: 150px;
    }

    .slide-overlay h2{
        font-size: 16px;
    }

    .slide-overlay p{
        font-size: 12px;
    }
}

@media (max-width: 768px){

    .brand-title{
        font-size: 18px;
        text-align: center;
    }

    .brand-subtitle{
        font-size: 20px;
        text-align: center;
    }

    .brand-text{
        align-items: center;
    }
}

@media (max-width: 768px){

    h1,h2,h3{
        line-height: 1.2;
    }

    .navbar-nav .nav-link{
        font-size: 14px;
    }
}

@media (max-width: 768px){

    .col-lg-4 img{
        border-radius: 12px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        transition: 0.3s;
		width: 250px;
    }

    .col-lg-4 img:hover{
        transform: scale(1.02);
    }
}

/* css formato celular  noticias  principales*/
@media (max-width: 768px){

    .col-md-4{
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .destacada-card{
        box-shadow: 0 6px 15px rgba(0,0,0,0.12);
        border-radius: 12px;
    }
	
	.destacada-card:hover{
        transform: none; /* evita saltos raros en móvil */
    }

    .destacada-img{
        height: 180px;
    }

    .destacada-body{
        padding: 10px;
    }

    .destacada-body h3{
        font-size: 14px;
    }

    .destacada-body p{
        font-size: 12px;
    }
}


/* css formato celular listado de noticias */
@media (max-width: 768px){

    /* CONTENEDOR PRINCIPAL */
    .col-lg-8{
        padding-left: 10px;
        padding-right: 10px;
    }

    /* CARD PRINCIPAL ? ESTILO LISTADO */
    .noticia-horizontal{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eaeaea;
        padding: 8px 0;
        background: transparent;
    }

    .noticia-horizontal:hover{
        transform: none;
        box-shadow: none;
    }

    /* IMAGEN PEQUEÑA (TIPO PREVIEW) */
    .noticia-img{
        width: 90px !important;
        height: 70px !important;
        object-fit: cover;
        border-radius: 6px;
    }

    .col-md-4{
        flex: 0 0 auto;
        width: auto !important;
    }

    /* TEXTO */
    .card-body{
        padding: 6px 10px;
    }

    /* TÍTULO TIPO PORTAL */
    .card-title{
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 4px;
        color: #c62828;
    }

    /* RESUMEN ? OCULTO ESTILO EMOL */
    .resumen{
        display: none;
    }

    /* FECHA MÁS DISCRETA */
    .fecha-noticia{
        font-size: 11px;
        color: #888;
        border-top: none;
        padding-top: 0;
    }

    /* EFECTO TOQUE MÓVIL */
    .noticia-horizontal:active{
        background: #f5f5f5;
    }
}

/* para la lista de noticias */
/* EFECTO FADE */
#contenedor-noticias{
    transition: all .35s ease;
}

/* PAGINACIÓN */
.pagination-modern .page-link{

    border:none;
    margin:0 4px;
    border-radius:12px;
    padding:10px 16px;

    color:#333;
    font-weight:600;

    transition:all .25s ease;

    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.pagination-modern .page-link:hover{

    transform:translateY(-2px);

    background:#E5C414;
    color:#fff;
}

/* ACTIVO */
.pagination-modern .active .page-link{

    background:#E5C414;
    color:#fff;

    box-shadow:0 5px 15px rgba(229,196,20,.4);
}

/* NOTICIAS */
.noticia-horizontal{

    border:none;
    border-radius:18px;

    overflow:hidden;

    transition:all .25s ease;

    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.noticia-horizontal:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/* =========================
   GALERÍA NOTICIAS
========================= */

.galeria-img{

    width:100%;

    height:260px;

    object-fit:cover;

    border-radius:15px;

    cursor:pointer;

    transition:.3s;
}

.galeria-img:hover{

    transform:scale(1.03);

    box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.modal-content{
    background: transparent !important;
}

.carousel-item img{
    border-radius: 12px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    width: 3rem;
    height: 3rem;
}

.btn-close{
    transform: scale(1.3);
}

.carousel-item{
    text-align:center;
    background:#000;
}

.carousel-item img{
    transition: .2s;
}
