/*
Theme Name: SorJuana
Theme URI: https://www.viraje360.com
Author: Ricardo Galván Martínez
Author URI: https://www.viraje360.com
Description: For Schools
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: digital marketing, branding, theme, wordpress, education, school
Text Domain: sorjuana
*/




:root{
	--grisclaro: #E3E2D0;
	--cafe: #522B1A;
	--amarillo: #DEC200;
	--rosa: #DB1B58;
  --verde: #25D366;
}

*, img{
	padding: 0;
	margin: 0;
	border:0;
}

a{
	text-decoration: none;
	color: inherit;
}

body{
	background-color: white;
	font-size: 12px;
}

.text-grisclaro{
	color: var(--grisclaro);
}

.text-cafe{
	color: var(--cafe);
}

.text-amarillo{
	color: var(--amarillo);
}

.text-rosa{
	color: var(--rosa);
}

h1 {
  font-size: 3rem;   /* 48px */
  font-weight: 800;
}

h2 {
  font-size: 2.4rem; /* 38.4px */
  font-weight: 700;
}

h3 {
  font-size: 2rem;   /* 32px */
  font-weight: 600;
}

h4 {
  font-size: 1.6rem;   /* 32px */
  font-weight: 600;
}

p, li, .text-post-entry > p {
  font-size: 1.125rem; /* 18px */
}

hr{
  opacity: 1;
}

.parrafo{
  font-size: 1.125rem; /* 18px */
}

.radius{
	border-radius: 4px;
}

.psmall{
	font-size: 1.2em;
	font-weight: 400;
}

.capital{
	text-transform: uppercase;
}


ul{
	
}

li{
	font-weight: 400;
}

.linea{
	height: 4px;
	background-color: var(--rosa);
	border-radius: 4px;
}

.linea-title{
  height: 6px;
  width: 300px;
  max-width: 400px;
  background-color: var(--amarillo);
  border-radius: 4px;
  border: none;
  opacity: 1;
  display: block;
}

.breadcrumb{
	font-size: 1.4em;
	color: var(--cafe);
}

.italic{
	font-style: italic;
}

.bolder{
	font-weight: bolder;
}

.margin-top{
	margin-top: 40px;
}

.margin-bottom{
	margin-top: 40px;
}

.padding-top{
	padding-top: 80px;
}

.padding-bottom{
	padding-bottom: 80px;
}

.align-horizontal{
	display: flex;
	align-items: center;
}

.align-vertical{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;	
}

.horizontal-space{
	display: flex;
	justify-content: space-between;
}

.back-cafe{
	background-color: var(--cafe);
}

.back-gris{
	background-color: var(--grisclaro);
}

.back-amarillo{
	background-color: var(--amarillo);
}

.back-white{
	background-color: white;
}

.back-rosa{
	background-color: var(--rosa);
}

.back-verde{
  background-color: var(--verde);
}

.btn{

	font-size: 1.6em;
	border-radius: 50px;
	padding: 4px 20px;
}

.hover-rosa:hover{
	background-color: #ad1b4a;
}

.hover-amarillo:hover{
  background-color: #a5920e;
}

.hover-verde:hover{
  background-color: #075E54;
}

.hover-cafe:hover{
	background-color: #2e180e;
}

.list-advanced > ul{
  list-style: none;
  padding-left: 0px;
  margin-left: 0px;
}

.list-advanced > ul > li::before{
	content: '\f0da';
	font-family: 'FontAwesome';
	font-weight: 500;
	font-size: 0.6em;
	margin-right: 6px;
  list-style: none;
  padding-left: 0px;
  margin-left: 0px;
}

.icon-list-arrow-right li::before{
	content: '\f0da';
	font-family: 'FontAwesome';
	font-weight: 500;
	font-size: 0.6em;
	margin-right: 6px;
}

.footer ul{
	list-style: none;
	padding-left: 0;
}

.footer ul li::before {
	content: '\f0da';
	font-family: 'FontAwesome';
	font-weight: 500;
	font-size: 1em;
	margin-right: 6px;
} 

.bordertop{
	border-top: 12px solid var(--amarillo);
}

/**VIDEOS**/

.box-video {
  position: relative;
  width: 100%;
  padding-top: 100%; /* cuadrado */
  background-color: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* sombra suave */
  transition: transform 0.3s ease;
}

.box-video:hover {
  transform: scale(1.02); /* efecto sutil al pasar el mouse */
}

.box-video video.video-size {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.marco{
	overflow: hidden;
}


.img-video video{
	width: 100%;
}

/**BOX ENTRADAS**/

.box-detail-generica{
	background-color: white;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid #dfdfdf;
	margin: 30px 0;
}

.box-detail-destacada{
	background-color: white;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid #dfdfdf;
	margin: 30px 0;
	width: 100%;
}

.text-post-entry{
	padding: 0 30px;
}

.box-icon{
	background-color: white;
	padding: 8px;
	border-radius: 4px;
	color: var(--cafe);
	text-align: center;
	height: 200px;
}

.text-size-smaller p{
	font-size: 1.6em;
}

.text-size-smaller h3{
	font-size: 2em;
}

.post-img-entry{
	height: 206px;
	width: 25%;
	min-width: 25%;
	overflow: hidden;
	margin-right: 10px;
	position: relative;
}

.col-destacada{
	display: flex;
}

.box-altura{
	display: flex;
	flex: 1;
}

.post-img-entry-destacada{
	height: 400px;
	width: 100%;
	min-width: 25%;
	overflow: hidden;
	position: relative;
	margin-bottom: 30px;
}

.post-img-entry img , .post-img-entry-destacada img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mascara-img{
	background-color: rgba(0, 0, 0, 0.1);
	position: absolute;
	z-index: +100;
	width: 100%;
	height: 100%;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease-in-out;
}

/**paginacion**/
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  color: #343a40;
  text-decoration: none;
}

.page-numbers.current {
  background-color: #6c757d;
  color: #fff;
  font-weight: bold;
}

.page-numbers:hover {
  background-color: #e9ecef;
}

/**NAV**/

/**/
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.fullscreen-menu.active {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.5rem;
  color: #ffffff; /* Cambia a cualquier color que desees */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.close-menu:hover {
  color: #ff4d4d; /* Color al pasar el mouse */
}

.fullscreen-menu .close-menu {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.fullscreen-nav li {
  margin: 1rem 0;
  font-size: 1.2rem;
}
/**/

.menu-icon span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #222;
  margin: 4px 0;
}
.logo img {
  height: 60px;
}

.close{
	display: none;
}

.maxbox{
	background-color: white;
	width: 100%;
	height: 100vh;
	z-index: +998;
	position: absolute;
	display: none;
	top: 0;
	left: 0;

}

/**HERO**/

.hero{
	position: relative;
	width: 100%;
	height: 90vh;
}

.overlay{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 90vh;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: -1;
}

.image-hero-cover{
	position: absolute;
	width: 100%;
	height: 90vh;
	top: 0;
	left: 0;
	background-image: url('	https://www.csj.edu.mx/lp/wp-content/themes/lp-template/imgs/video-hero.webp');
  	background-position: center;
  	background-size: cover;
  	z-index: -3;
  	min-height: 750px;
}

.container-fluid-header{
	position: absolute;
	z-index: 1;
	margin-top: 20px;
}

.video-hero-container{
	height: 90vh;
	width: 100%;
	position: absolute;
  	left: 0px;
  	top: 0px;
  	z-index: -2;
  	overflow: hidden;
  	padding: 0;
  	margin: 0;
  	min-height: 750px;
}

.video-hero{
	height: 90vh;
  	object-fit: cover;
  	object-position: 50% 50%;
  	width: 100%;
  	min-height: 750px;
}

.video-hero{
	height: 90vh;
  	object-fit: cover;
  	object-position: 50% 50%;
  	width: 100%;
  	min-height: 750px;
}

.hero-text{
	height: 90vh;
	position: absolute;
	top: 0;
	left: 0;
  	display: flex;
  	align-items: center;
  	min-height: 750px;
}

.encabezado{
	font-size: 4em;
	font-weight: 500;
	line-height: 1.2em;
	padding: 20px 0;
	border: 1px solid white;
}

/**FOOTER**/

.footer{
	
}

.logo-footer{
	max-width: 160px;
}

.social-bar{
	font-size: 5em;
}

.social-bar a{
	margin: 0 20px;
}

/*****PAGINA NIVELES******/

.galeria-img{
	overflow: hidden;
	width: 100%;
	height: 304px;
	position: relative;
	display: block;
	margin-bottom: 40px;
}

.galeria-img img{
 	width: 100%;
 	height: 100%;
 	object-fit: cover;
 	display: block;
 	cursor: zoom-in;
}

.titular-nivel{
	margin: 16px 0;
}

.box-link {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px; /* o el alto que necesites */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  border-radius: 4px; /* opcional */
}

.box-link .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* oscurecimiento */
  z-index: 1;
}

.box-link .content-box-link {
  position: relative;
  z-index: 2;
  font-weight: bold;
  padding: 1rem;
}

.banner-historia-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.banner-historia {
  position: relative;
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-historia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

.banner-historia-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.banner-historia-content h2 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.banner-historia-content p {
}

.cuadro-img-container {
  width: 100%;
  max-width: 300px; /* Puedes ajustar el tamaño según tu diseño */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  z-index: 1001;
  border-radius: 1rem; /* Igual que .radius para armonía */
}

.cuadro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}



/***PAGE HISTORIA COLEGIO***/

.contenido-historia {
  color: #333;
}

blockquote {
  font-size: 1.8rem;
  font-style: italic;
}

/***NAV****/

/* --- Layout principal --- */
.main-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  background-color: white;
}

.container-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* --- Icono hamburguesa --- */
.menu-icon {
  width: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
}

.menu-icon span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* --- Logo --- */


/* --- Botones header --- */
.header-buttons {
  display: flex;
  gap: 1rem;
}

.btn-header {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.btn-green {
  background-color: #2c6a60;
}

.btn-magenta {
  background-color: #a43e7c;
}

/* --- Menú fullscreen --- */
.fullscreen-menu {
  background-color: #1a1a1a; /* Cambia este valor por el que desees */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  padding: 2rem;
}

.fullscreen-menu.active {
  display: flex;
}

.fullscreen-nav {
  list-style: none;
  padding: 0;
  text-align: center;
}

.fullscreen-nav li {
  margin: 1rem 0;
  border-bottom: 1px solid var(--amarillo);
}

.fullscreen-nav li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

/***list taxonomy niveles***/

.material-box ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.material-box ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.material-box h4,
.material-box strong {
  display: block;
  font-size: 1rem;
  margin-top: 1rem;
  color: #703c1e;
}

.grados-lista {
  list-style: none;
  padding-left: 0;
}

.grados-lista li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.grados-lista li::before {
  content: '\f0da';
  font-family: 'FontAwesome';
  font-weight: 500;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.7em;
  color: #703c1e;
}

.img-term{
	overflow: hidden;
	width: 100%;
	height: 260px;
}

.img-term img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/***PAGE COMUNIDAD***/

.card-box-img{
	height: 250px;
	overflow: hidden;
}

.card-box-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.card-box p{
	margin: 12px 0px !important;
}

.fecha-superior {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--cafe);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 10;
}




/**galeria imagenes**/
.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px; /* Espaciado lateral */
}

.gallery-item {
  width: 33.333%;
  padding: 10px;
  box-sizing: border-box;
}

.gallery-item a,
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item a:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}


.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.wp-block-gallery .blocks-gallery-item {
  width: calc(33.333% - 10px);
}
.wp-block-gallery img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.wp-block-gallery img:hover {
  transform: scale(1.05);
}

.wp-block-gallery .blocks-gallery-item a {
  display: block;
}

.wp-block-gallery .blocks-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.wp-block-gallery .blocks-gallery-item img:hover {
  transform: scale(1.03);
  cursor: zoom-in;
}


/***formulario***/

.formulario{
  background-color: var(--grisclaro);
  padding: 10px;
  border-radius: 4px;
}

.formulario form input, .formulario form textarea{
	width: 100%;
	padding: 10px;
	border-radius: 4px;
}

.formulario form input[type=submit]{
	background-color: var(--rosa);
	color: white;
}

.formulario form input[type=submit]:hover{
	background-color: var(--cafe);
	transition: 1s;
}

.formulario form select{
  padding: 10px;
  border-radius: 4px;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: red;
  background-color: red;
  color: white;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: green;
  color: white;
  background-color: green;
}

.formulario form input[type=file]{
	
}


/**paginas-administracion**/

.fondo-contacto {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.fondo-contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.fondo-contacto .container {
  position: relative;
  z-index: 2;
}

/**CALENDARIO GOOGLE**/

/* Fondo con imagen de fondo y oscurecimiento */
.fondo-calendario {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

.fondo-calendario::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* oscurecimiento */
  z-index: -1;
}

/* Caja del calendario */
.calendario-box {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  max-width: 1000px;
  width: 100%;
  margin: 30px auto;
}

/* Título del calendario */
.calendario-box h2 {
  color: #572700;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
}

/* Estilos del iframe de Google Calendar */
.calendario-box iframe {
  width: 100%;
  height: 700px;
  border: none;
}

.calendario-iframe iframe {
  width: 100%;
  height: 700px;
  border: none;
}



/* Estilos para los botones de calendario */
.calendario-niveles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.calendario-niveles .btn {
  background-color: var(--cafe); /* color café */
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.calendario-niveles .btn:hover,
.calendario-niveles .btn.active {
  background-color: var(--rosa); /* café más oscuro al hacer hover o activo */
  color: #fff;
}


.ngg-galleryoverview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}











/***************************************************************************************/
/******************************************MOBILE***************************************/
/***************************************************************************************/

@media only screen and (max-width: 1199px){

	.post-img-entry {
  	height: 320px;
	}

}

@media (max-width: 991px) {
  h1 {
    font-size: 2.4rem; /* 38.4px */
  }
  h2 {
    font-size: 2rem;   /* 32px */
  }
  h3 {
    font-size: 1.6rem; /* 25.6px */
  }
  h4 {
    font-size: 1.2rem;   /* 32px */
    font-weight: 600;
  }
  p, li, .text-post-entry > p {
    font-size: 1rem;   /* 16px */
  }

  .ngg-galleryoverview{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 767px) {
  .gallery-item {
    width: 50%;
  }

  .nav .btn {
    font-size: 0.9rem;         /* Texto más pequeño */
    padding: 0.4rem 0.8rem;     /* Espaciado más compacto */
    white-space: nowrap;       /* Fuerza que no haga salto de línea */
  }

  .nav .btn span {
    display: none; /* Si usas etiquetas internas, puedes ocultar partes */
  }

  .encabezado {
    font-size: 2em;
    font-weight: 500;
    line-height: 1.2em;
    padding: 20px 0;
    border: 1px solid white;
  }
}	

@media (max-width: 576px) {
  h1 {
    font-size: 2rem; /* 32px */
    }
  h2 {
    font-size: 1.6rem; /* 25.6px */
    }
  h3 {
    font-size: 1.4rem; /* 22.4px */
    }
  p, li {
    font-size: 0.95rem; /* 15.2px */
    }
  .calendario-niveles .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .ngg-galleryoverview{
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 100%;
  }
}


/**ajustes para iphone***/

@media (max-width: 576px) {
  .calendario-niveles {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .calendario-niveles .btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    text-align: center;
    background-color: var(--cafe) !important;
    color: white !important;
    white-space: normal;
  }
}


*, *::before, *::after {
  box-sizing: border-box;
}

