@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat/Montserrat-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Mestiza";
  src: url("../fonts/mestiza/mestiza-regular-webfont.woff2") format("woff2"),
    url("../fonts/mestiza/mestiza-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Mestiza";
  src: url("../fonts/mestiza/mestiza-regularitalic-webfont.woff2")
      format("woff2"),
    url("../fonts/mestiza/mestiza-regularitalic-webfont.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Mestiza";
  src: url("../fonts/mestiza/mestiza-bold-webfont.woff2") format("woff2"),
    url("../fonts/mestiza/mestiza-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Mestiza";
  src: url("../fonts/mestiza/mestiza-bolditalic-webfont.woff2") format("woff2"),
    url("../fonts/mestiza/mestiza-bolditalic-webfont.woff") format("woff");
  font-weight: bold;
  font-style: italic;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Lato", sans-serif;
}

/* Texto base general */
body,
html {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

h1 {
  font-size: 2.25rem; /* 36px */
  font-weight: bold;
}

h2 {
  font-size: 1.75rem; /* 28px */
  font-weight: bold;
}

h3 {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
}

h4 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

h5 {
  font-size: 1rem; /* 16px */
  font-weight: 500;
}

h6 {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
}

p {
  font-size: 1rem; /* 16px */
  font-weight: normal;
  margin-bottom: 1rem;
}

.justificado {
  text-align: justify !important;
}
/* Títulos principales */
.titulo-principal {
  font-size: 2.25rem; /* 36px */
  font-weight: bold;
  text-align: center;
}

/* Subtítulos de sección */
.subtitulo {
  font-size: 1.75rem; /* 28px */
  font-weight: bold;
}

/* Encabezado medio (ej. títulos internos) */
.encabezado-medio {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
}

/* Encabezado pequeño */
.encabezado-pequeno {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

/* Texto de párrafo */
.parrafo {
  font-size: 1rem; /* 16px */
  font-weight: normal;
}

/* Texto secundario (notas, filtros, leyendas) */
.texto-secundario {
  font-size: 0.875rem; /* 14px */
  color: #555;
}

/* Texto para pie de página o legal */
.texto-footer {
  font-size: 0.8125rem; /* 13px */
  color: #727272;
}

/* Texto para botones y menú */
.texto-boton {
  font-size: 1rem; /* 16px */
  font-weight: 500;
}

/* Titulo */
.titulo-institucional {
  font-family: "Mestiza", "Montserrat", sans-serif;
  font-weight: normal;
}
.link-titulo {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.link-titulo:hover {
  text-decoration: none;
  color: #000; /* o el color institucional que prefieras */
}

/*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;
}
.contenido-margen {
  margin-top: 7rem;
}

.fotografia {
  border-radius: 8px !important;
}

/*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;
}
/* 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: #64666a;
  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 */
}

/* 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;
}

/*
<a href="#" class="card-link">
  <div class="card-icon">
    <img src="ruta_icono.svg" alt="Ícono">
  </div>
  <div class="card-text">Protección de datos personales</div>
  <div class="card-arrow">
    <span>&#8594;</span>
  </div>
</a>

*/
/*Tarjeta de noticias*/

.tarjeta-noticia {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  background-color: #fff;
  max-width: 300px;
  min-height: 380px;
  max-height: 400px;
  margin: 0 auto;
  margin-top: 1rem;
}

.tarjeta-noticia img {
  max-height: 180px;
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
}

.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;
}

/*Boton de opciones*/
.card-link {
  position: relative;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  color: #444;
  transition: all 0.3s ease;
}

.card-link .card-icon img {
  width: 50px;
  height: 50px;
}

.card-link .card-text {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
}

.card-link .card-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: transparent;
  color: #681b32;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background-color: #bc955b;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 0;
}

.card-link:hover::after {
  transform: translateY(0%);
}

.card-link:hover .card-arrow {
  transform: rotate(360deg);
  color: white;
  z-index: 2;
}

.img-fondo-icatsin {
  width: 100%;
  height: auto;
  display: block;
}

.contenido-icatsin {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100%;
}

/* Título */
.subtitulo-conoce {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  background-color: rgb(72, 61, 61);
  padding: 1rem;
  border-radius: 12px;
  opacity: 70%;
}

/* Contenedor de los bloques */
.contenedor-icatsin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  padding: 0 1rem;
}

.dimContenedor {
  max-width: 80% !important;
}

.contactContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.formContactBox {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  display: flex;
  /* <-- Agregado */
  flex-direction: column;
  /* <-- Agregado */
  gap: 0.5rem;
  /* <-- Espacio entre elementos */
}

.formContactBox h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.formContactBox form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.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;
}

.contactImage {
  text-align: center;
  margin-top: 5rem;
}

.contactImage img {
  max-width: 70%;
  height: auto;
}

/* Bloques individuales */
.bloque-icatsin {
  flex: 1 1 auto;
  max-width: 300px;
  min-width: 220px;
  width: 100%;
  text-decoration: none;
  color: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-sizing: border-box;
}

.bloque-icatsin:hover .etiqueta-icatsin {
  color: white;
}

.bloque-icatsin:hover {
  transform: scale(1.05);
  background-color: black !important;
  color: white !important;
}

.icono-icatsin img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.etiqueta-icatsin {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

/* Colores de fondo personalizados */
.fondo-verde {
  background-color: #007a33;
}

.fondo-cafe {
  background-color: #8b3a0d;
}

.fondo-azul {
  background-color: #008fa1;
}

/** Seccion corregida  */

.contenido-icatsin {
  position: absolute;
  inset: 0;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bloque-info-icatsin {
  background-color: #64666a;
  padding: 3rem 1rem;
  color: white;
}

.contenido-info-icatsin {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: justify;
}

.logo-info-icatsin img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 8px;
}

.texto-info-icatsin {
  flex: 1 1 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 2rem;
}

/** Casos de exito Testimonio */
.bg-icatsin-test {
  background-color: #eaddca;
  padding: 4rem 1rem;
  color: white;
}

.testimonio-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

.nubeTestimonio {
  background: white;
  color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.nubeTestimonio::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid white;
}

.fotoTestimonio img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  margin: 1rem auto;
}

.infoTestimonio .nombre {
  font-weight: bold;
  font-size: 1.2rem;
  color: #681b32;
}

.infoTestimonio .plantel {
  font-size: 1rem;
  color: #681b32;
}

.btnContacto {
  background-color: #681b32;
  color: white;
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 6px;
}

.btnContacto:hover {
  background-color: #390f1c;
}

/* 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;
}
/*Tarjeta de ultimas noticia */
.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;
}

@media (max-width: 768px) {
  .contenedor-inscripcion {
    flex-direction: column;
  }

  .texto-inscripcion {
    padding: 1.5rem;
  }
}
/* Responsive: en móvil ocultamos la imagen y usamos background */
@media (max-width: 1024px) {
  .contenido-margen {
    margin-top: 7rem;
  }
  .contenedor-icatsin {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .img-fondo-icatsin {
    display: none;
  }

  .contactImage {
    margin-top: 0.1rem;
  }

  .contactImage img {
    max-width: 250px;
    margin: 0 auto;
  }
  .contenido-icatsin {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
  }
  .ancho-medio {
    width: 100% !important;
  }
}

/* Responsive: apilar en móvil/tablet */
@media (max-width: 768px) {
  .contenedor-icatsin {
    flex-direction: column;
    padding: 0 1rem;
  }

  .bloque-icatsin {
    max-width: 100%;
  }

  .contenido-icatsin {
    min-height: 600px;
  }

  .bloque-info-icatsin {
    padding: 1rem 1rem;
  }

  .contenido-info-icatsin {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    height: auto !important;
  }

  .texto-info-icatsin {
    font-size: 1rem;

    padding: 0rem;
    padding-top: 1rem;
  }

  .logo-info-icatsin img {
    max-width: 150px;
  }

  .contactImage {
    margin-top: 0.1rem;
  }

  .contactImage img {
    max-width: 150px;
    margin: 0 auto;
  }
  .contactContainer {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .dimContenedor {
    max-width: 100% !important;
  }

  .formContactBox {
    width: 100%;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .formContactBox select,
  .formContactBox input,
  .formContactBox textarea {
    padding: 0.5rem;
    font-size: 1rem;
  }
}

/* CSS Noticias */
.noticia-card {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2rem;
}
.noticia-card__imagen {
  max-width: 350px;
  padding: 8px;
  border-top-left-radius: 50px;
}

.noticia-card__img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.noticia-card__contenido {
  padding: 10px;
  flex: 1;
}

.noticia-card__contenido a {
  text-decoration: none;
  color: #681b32;
  /* color base (puede ser el que uses en títulos) */
  transition: color 0.3s, text-decoration 0.3s;
  font-weight: bold;
}

.noticia-card__contenido a:hover {
  color: #64666a;
  /* o el color institucional que uses */
  text-decoration: underline;
  /* o cambia a none si no quieres subrayado */
}

.ultimas__item {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.ultimas__imagen img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.ultimas__titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.ultimas__fecha {
  font-size: 0.8rem;
  color: #777;
}

.columnaDerecha__titulo {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.noticia-card__titulo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.5rem;
}

.noticia-card__titulo a {
  text-decoration: none;
  color: #000;
  /* color base (puede ser el que uses en títulos) */
  transition: color 0.3s, text-decoration 0.3s;
}

.noticia-card__titulo a:hover {
  color: #681b32;
  /* o el color institucional que uses */
  text-decoration: underline;
}
.columna-derecha {
  max-width: 380px;
}
/* Celular */
@media (max-width: 600px) {
  .justificado {
    text-align: left !important;
  }
  .contenido-margen {
    margin-top: 7rem;
  }

  .tarjeta-noticia {
    min-width: none;
    /*width: 250px;*/
  }
}
.paginador-not {
  padding: 8px 10px !important;
}
