/* ================================
   DEPURADO CSS — ICATSIN V3
   ================================ */

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kumbh Sans", sans-serif;
  line-height: 1.6;
}

/* Texto base general */
body,
html {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

h1 {
  font-size: 2.25rem; /* 36px */
}

h2 {
  font-size: 1.75rem; /* 28px */
}

h3 {
  font-size: 1.375rem; /* 22px */
}

h4 {
  font-size: 1.125rem; /* 18px */
}

h5 {
  font-size: 1rem; /* 16px */
}

h6 {
  font-size: 0.875rem; /* 14px */
}

p {
  font-size: 1rem; /* 16px */
  font-weight: normal;
  margin-bottom: 1rem;
}

.errorcap {
  color: #f44336 !important;
  font-size: 0.95em !important;
  font-style: italic;
}
/*General*/

/* Títulos principales */
.titulo-principal {
  font-size: 1.85rem; /* 36px */
  font-weight: bold;
  text-align: center;
}
/* Subtítulos de sección */
.subtitulo {
  font-size: 1.75rem; /* 28px */
  font-weight: bold;
}

.link-titulo {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.link-titulo:hover {
  text-decoration: none;
  color: #000; /* o el color institucional que prefieras */
}

/*Tarjeta de noticias*/

.tarjeta-noticia {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #952431;

  background-color: #fff;
  max-width: 300px;
  margin: 0 auto;
  margin-top: 1rem;
}

.tarjeta-noticia img {
  max-height: 280px;
  object-fit: cover;
  width: 100%;
}

.tarjeta-noticia .contenido {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tarjeta-noticia p {
  font-size: 0.85rem;
  line-height: 1.3;
  max-height: 3.6em;
  /* menos líneas */
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.tarjeta-noticia h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 6px;
  max-height: 2.6em;
  /* Limita a 2 líneas */
  overflow: hidden;
  text-overflow: ellipsis;
}

.tarjeta-noticia .fecha {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
}

.tarjeta-noticia .boton {
  margin-top: auto;
  text-align: center;
  display: inline-block;
  background-color: #a23437;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.tarjeta-noticia .boton:hover {
  background-color: #811f22;
}

/* Secccion de carrusel */
.fotografia {
  border-radius: 8px !important;
}
/* === Carrusel principal (ajustes depurados) === */

/* Contenedor principal */
#carruseles {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Indicadores inferiores (puntos) */
.carousel-indicators [data-bs-target] {
  background-color: rgba(90, 90, 90, 0.7);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 3px;
}

/* Botones laterales (flechas prev/sig) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(83, 78, 78, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 50% 50%;
}

/* Imagenes del carrusel */
#carruseles img.fotografia {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px !important;
}

/* Altura adaptable por dispositivo */
@media (max-width: 576px) {
  #carruseles img.fotografia {
    max-height: 250px;
  }
}

@media (min-width: 577px) {
  #carruseles img.fotografia {
    max-height: 480px;
  }
}

/* FONDO Y CONTENEDOR DE "CONOCE A ICATSIN" */
/* === FONDO Y CONTENEDOR DE "CONOCE A ICATSIN" === */
.seccion-icatsin-wrap {
  background-image: url("../imagenes/fondo_icatsin.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 15px;
}

@media (max-width: 1024px) {
  .seccion-icatsin-wrap {
    background-attachment: scroll;
  }
}

/* === BLOQUES DE ICONOS === */
.contenedor-icatsin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.bloque-icatsin {
  width: 320px;
  height: 220px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.bloque-icatsin img {
  max-width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.bloque-icatsin:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bloquee-icatsin {
  width: 320px;
  height: 220px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.bloquee-icatsin img {
  max-width: 130px;
  height: auto;
  margin-bottom: 1rem;
}

.bloquee-icatsin:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.etiqueta-icatsin {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
}

/* === CONTENIDO DE LA SECCIÓN === */
.contenido-icatsin {
  position: absolute;
  inset: 0;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.subtitulo-conoce {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
  background-color: rgb(72, 61, 61);
  padding: 1rem;
  border-radius: 12px;
  opacity: 0.7; /* forma correcta en CSS */
}

.logo-info-icatsin img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 8px;
}

.texto-info-icatsin {
  font-size: 1.1rem;
  padding: 2rem;
}

.justificado {
  text-align: justify !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .contenido-icatsin {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 2rem 1rem;
  }
}

@media (max-width: 768px) {
  .contenido-icatsin {
    min-height: 600px;
  }

  .justificado {
    text-align: left !important;
  }

  /* Títulos principales */
  .titulo-principal {
    font-size: 1.35rem;
    font-weight: bold;
    text-align: center;
  }
}

/* ================================
   SECCIÓN DE ALIANZAS
   ================================ */
.alianzasSection {
  background-color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.alianzasTitulo {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.alianzasSwiper {
  padding: 1rem 2rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: transform 0.3s ease;
}

.swiper-slide img:hover {
  transform: scale(1.05);
}

.swiper-button-next,
.swiper-button-prev {
  background-color: #eee;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: black;
}

/* Centrar el bloque y limitar ancho en pantallas grandes */
.alianzasSwiper {
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Ajustar visibilidad de botones */
.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(238, 238, 238, 0.9);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #681b32; /* color institucional */
  transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(220, 220, 220, 1);
}

/* === SECCIÓN INSCRIPCIÓN === */
.bloque-inscripcion {
  background-color: rgb(115, 117, 116);
  color: white;
}

.contenedor-inscripcion {
  display: flex;
  flex-wrap: wrap;
}

.img-inscripcion {
  flex: 1 1 400px;
}

.img-inscripcion img {
  width: 100%;
  height: auto;
  display: block;
}

.texto-inscripcion {
  flex: 1 1 500px;
  padding: 2rem;
}

.btn-inscribete {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: white;
  color: #64666a;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  border: 2px solid white;
}

.btn-inscribete:hover {
  background-color: #eaeaea;
  color: #64666a;
}

/* === Ajustes responsivos === */
@media (max-width: 768px) {
  .contenedor-inscripcion {
    flex-direction: column;
  }

  .bloque-inscripcion {
    display: flex;
    align-items: center;
    min-height: 100px; /* evita colapso */
    max-height: 720px; /* mantiene altura uniforme */
  }

  .texto-inscripcion {
    padding: 1rem;
  }

  .texto-inscripcion h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .texto-inscripcion p {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .btn-inscribete {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* === FORMULARIO DE CONTACTO === */
.contactImage {
  text-align: center;
  margin-top: 5rem;
}

.contactImage img {
  max-width: 70%;
  height: auto;
}

.formContactBox {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formContactBox h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.formContactBox select,
.formContactBox input,
.formContactBox textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Botón */
.btnContacto {
  background-color: #681b32;
  color: #fff;
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btnContacto:hover {
  background-color: #390f1c;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .contactImage {
    margin-top: 0.1rem;
  }

  .contactImage img {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .contactImage img {
    max-width: 150px;
  }

  .formContactBox {
    padding: 0.5rem;
  }
}

/* Lateral de redes sociales */
.social-lateral {
  position: fixed;
  left: auto; /* Alineado a la izquierda */
  right: 0;
  bottom: 50px; /* Pegado al borde inferior */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #221f1c;
  opacity: 80%;
  padding: 10px;
  border-radius: 10px 0 0 10px; /* Curva solo en esquina inferior derecha */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
/* Estilos de los iconos del lateral*/
.social-lateral-icon {
  color: white; /* Color de los iconos */
  text-decoration: none; /* Sin subrayado */
  margin: 3px 0; /* Espacio entre iconos */
  font-size: 22px; /* Tamaño de los iconos */
  transition: color 0.3s ease; /* Transición suave al pasar el mouse */
}

.social-lateral-icon:hover {
  color: #0c0b09; /* Cambia el color al pasar el mouse */
}

/* <!-- EMBLEMA (contenido sobre fondo completo) --> */
#Emblema .titulo-principal {
  color: #fff;
  margin: 0 0 16px;
}

#Emblema .texto-emblema p {
  color: #fff;
  margin: 0 0 12px;
}
#Emblema {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white; /* opcional si quieres texto blanco encima */
}

#Emblema::before {
  content: "";
  position: absolute;
  inset: 0; /* cubre todo el div */
  background-color: rgba(112, 42, 63, 0.75); /* tinto semitransparente */
  z-index: 0;
}

#Emblema > * {
  position: relative;
  z-index: 1; /* asegura que el contenido quede encima del filtro */
}
.dirNombre {
  font-size: 20px !important;
  font-weight: bold;
  line-height: 1.2;
}

.dirIcono {
  font-size: 16px !important;
}

.dirImagen {
  text-align: right !important;
}
@media (max-width: 768px) {
  .carousel-item img {
    height: 50vh !important; /* más baja en móvil */
    object-fit: cover;
  }
  .dirNombre {
    font-size: 18px !important;
    font-weight: bold;
  }

  .dirImagen {
    text-align: center !important;
  }
}

/* VISTA DE TRANSPARENCIA */
.boton-transparencia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #eeeeee;
  border: 2px solid #c3c3c3;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  padding: 40px 10px;
  color: #221f1c !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
  min-height: 210px;
  max-width: 180px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  transform: scale(1);
}

.boton-transparencia i {
  display: block;
  margin-bottom: 15px;
  font-size: 2.8em;
}

.boton-transparencia p {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0;
  color: #524f4d !important;
  transition: color 0.25s ease;
  line-height: 1.2em;
}

.boton-transparencia:hover p {
  color: #f9f9f9 !important;
}

.boton-transparencia:hover {
  background-color: #691c32 !important;
  border-color: #691c32 !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
  color: #f9f9f9 !important;
}

.icono-transparencia svg {
  width: 48px;
  height: 48px;
  fill: #524f4d;
  /* color base */
  transition: fill 0.3s ease;
}

.boton-transparencia:hover .icono-transparencia svg {
  fill: #ffffff;
  /* cambia a blanco al pasar el cursor */
}

.padding-transparencia {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

@media (max-width: 768px) {
  .padding-transparencia {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
.svg-transparencia svg {
  width: 60px;
  height: 60px;
  fill: #691c32;
  /* tinto */
}

.svg-transparencia svg {
  width: 80px;
  height: 80px;
}
/*w3-border-white w3-bottombar w3-hover-border-black*/
.color-menu {
  background-color: #fff !important;
  color: #681b32 !important;
}

.menu {
  font-family: "Mestiza", "Montserrat", sans-serif;
  font-weight: bold;
  border-bottom: 6px solid #fff !important;
  margin-top: 2.5rem !important;
}

.menu-activa {
  /*color: #681b32 !important;*/
  font-weight: bold;
  border-bottom: 6px solid #681b32 !important;
}

.menu:hover,
.menu:active,
.menu:focus {
  color: #fff !important;
  background-color: #bc955b !important;
  border-bottom: 6px solid #b97207 !important;
}

.w3-dropdown-hover:hover > .menu {
  background-color: #bc955b !important; /* tu color deseado */
  border-bottom: 6px solid #b97207 !important;
  color: white !important;
}
.menu-opcion:hover {
  background-color: #b89a6d !important;
  color: white !important;
}

.menu-panel {
  color: #681b32 !important;
  background-color: #ffffff !important;
  padding: 12px 18px !important;
}

.menu-panel:hover,
.menu-panel:active,
.menu-panel:focus {
  color: #fff !important;
  background-color: #bc955b !important;
  border-bottom: 6px solid #b97207 !important;
}

.w3-dropdown-hover:hover > .menu-panel {
  background-color: #bc955b !important; /* tu color deseado */
  border-bottom: 6px solid #b97207 !important;
  color: white !important;
}

.contenido-margen {
  margin-top: 7rem;
}

/*Redes sociales en la parte superior*/

/* Iconos */
.icono-social {
  display: inline-block;
  margin-top: 1.7rem;
  margin-left: 0.5rem;
  font-size: 1.5rem;
  color: #681b32;
}
.icono-contacto {
  display: inline-block;
  width: 10em;
  position: relative;
  margin-right: 0.5em;
}
.icono-social:hover {
  color: #5e3a03 !important;
}
.icono-contacto:hover {
  opacity: 0.8;
  color: #000 !important;
}
/* Imagen para Desktop*/
.margen-logo {
  margin-top: 1.4em !important;
  margin-left: 1.4em !important;
}
.logo-icatsin {
  width: 14em !important;
  margin-top: 1.1em !important;
}

.ancho-medio {
  width: 50% !important;
}

/* Para pantallas móviles: que sea 100% y apile una debajo de la otra */
@media (max-width: 768px) {
  .ancho-medio {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  .invertir-movil {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* Imagen para Laptop*/
@media (max-width: 1920px) and (min-width: 1197px) {
  .margen-logo {
    margin-top: 1em !important;
    margin-left: 1em !important;
  }
  .logo-icatsin {
    width: 11rem !important;
    margin-top: 1.5rem;
  }
}

/* Imagen para Tableta */
@media (max-width: 1196px) and (min-width: 901px) {
  .margen-logo {
    margin-top: 0.7em !important;
    margin-left: 0.7em !important;
  }
  .logo-icatsin {
    width: 10em !important;

    margin-top: 1.5rem;
  }
  .color-menu {
    color: #fff !important;
    background-color: #681b32 !important;
  }
}
/* Imagen para Celular */
@media (max-width: 900px) {
  .color-menu {
    color: #fff !important;
    background-color: #681b32 !important;
  }

  .margen-logo {
    margin-top: 0.5em !important;
    margin-left: 0.5em !important;
  }
  .logo-icatsin {
    width: 8em !important;
    margin: 0.3rem;
  }

  /*Boton flotante*/
  .botonSubir {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    z-index: 999;
    background-color: #bc955b;
    color: white;

    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 90%;
  }

  .btonSubir:hover {
    background-color: #a23437;
    text-decoration: none;
    color: white !important;
  }
}
.mini {
  margin: 2px !important;
  padding: 2px 16px !important;
}
/* Carrusel móvil — que las imágenes siempre se adapten */
#carruselMovil .carousel-item img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  background-color: #000; /* opcional, para dar efecto elegante si sobra espacio */
}

/* El header siempre encima del carrusel */
header {
  position: relative;
  z-index: 5000;
}

/* El carrusel debajo del menú móvil */
#carruseles {
  position: relative;
  z-index: 1;
}
/* Evitar que cualquier vista móvil rompa el ancho */
body,
html {
  overflow-x: hidden !important;
}
