/* ===========================
   MICROSITE CSS (LIMPIO Y OPTIMIZADO)
   =========================== */

/* === Layout === */
.header-microsite {
  height: 56px;
  min-height: 56px;
}

@media (min-width: 992px) {
  .header-microsite {
    height: 77px;
    min-height: 77px;
  }
}

.maxw-1200 {
  max-width: 1196px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* === Colores base === */
.bg-verd {
  background-color: #006847 !important;
}

.bg-rojo {
  background-color: var(--avanza-primary-red-100) !important;
}

/* === Header con imagen === */
#header_image {
  background: url("../images/nueva_escuela_mexicana/iStock-1178762851.jpg") center center;
  background-size: cover;
  background-position: center;
  font-size: 3.125rem;
  line-height: 3.6rem;
  font-weight: 500;
  padding: 12rem 0;
  height: 537px;
}

@media (max-width: 991.98px) {
  #header_image {
    display: none !important;
  }
}

/* === Tipografía general === */
.seccio-text-white {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

/* === Presentación === */
.presentacio-texto {
  max-width: 948px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#presentacion h1 {
  font-family: "Circular Std", sans-serif;
  font-weight: 500;
  color: #1f1f1f;
  font-size: 20px;
  line-height: 22px;
  text-align: center;
}

@media (min-width: 768px) {
  #presentacion h1 {
    font-size: 30.34px;
    line-height: 33.4px;
  }
}

@media (min-width: 1200px) {
  #presentacion h1 {
    font-size: 50px;
    line-height: 56.5px;
  }

  #presentacion {
    padding-top: 3rem; /* Ajustá el valor que necesites */
    padding-bottom: 3rem;
  }
}

#presentacion p {
  font-family: "Circular Std", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #000000;
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #presentacion p {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (min-width: 1200px) {
  #presentacion p {
    font-size: 23px;
    line-height: 24.3px;
  }
}

/* === Guía del profesor === */
#guia-profesor .icono-guia {
  width: 69px;
  height: 103px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 768px) {
  #guia-profesor .icono-guia {
    width: 104px;
    height: 160px;
  }
}

@media (min-width: 1200px) {
  #guia-profesor .icono-guia {
    width: 272px;
    height: 400px;
    margin: 0;
    margin-left: 8rem;
  }
}

#guia-profesor h2 {
  font-family: "Circular Std", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 26.9px;
  color: #ffffff;
  text-align: left;
  padding-left: 10px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  #guia-profesor h2 {
    font-size: 30.34px;
    line-height: 34px;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  #guia-profesor h2 {
    font-size: 50px;
    line-height: 56.5px;
  }
}

#cuadernos-basico h2 {
  font-family: "Circular Std", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 26.9px;
  color: #ffffff;
  text-align: left;
  padding-left: 10px;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  #cuadernos-basico h2 {
    font-size: 30.34px;
    line-height: 34px;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  #cuadernos-basico h2 {
    font-size: 50px;
    line-height: 56.5px;
  }
}

#guia-profesor .texto-bloque {
  font-family: "Circular Std Book", sans-serif;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #ffffff;
  text-align: left;
  padding: 8px 16px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  #guia-profesor .texto-bloque {
    font-size: 14px;
    line-height: 16px;
  }
}

@media (min-width: 1200px) {
  #guia-profesor .texto-bloque {
    font-size: 20px;
    line-height: 20px;
  }
}

#guia-profesor .separador-blanco {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 1rem auto;
  opacity: 1;
  max-width: 100%;
}

/* === Tarjetas === */
#guia-profesor .card-body,
#cuadernos-basico .card-body {
  color: #000000;
  padding: 1rem 1.25rem;
}

#guia-profesor .card-body img {
  flex-shrink: 0;
  width: 80px;
  height: auto;
}

.tarjeta-activa {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.tarjeta-activa:hover img{
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3) !important;
}

.tarjeta-secundaria img{
  border: 2px solid #e0e0e0; 
  box-shadow: 0 2px 8px 0 rgba(60,60,60,0.08);
}

.tarjeta-activa .estado {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.tarjeta-inactiva {
  pointer-events: none;
}

.tarjeta-inactiva .estado {
  background-color: #f5f5f5;
  color: #6c757d;
  border: 1px solid #cfcfcf;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  display: inline-block;
}

.titulo-tarjeta {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
  .titulo-tarjeta {
    font-size: 0.9rem;
  }
}

/* === Bloques Generico === */

.icono-bloque {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: 69px;
  height: 103px;
}

@media (min-width: 768px) {
  .icono-bloque {
    width: 104px;
    height: 160px;
  }
}

@media (min-width: 1200px) {
  .icono-bloque {
    width: 272px;
    height: 400px;
    margin: 0;
    margin-left: 8rem;
  }
}

.titulo-bloque {
  font-family: "Circular Std", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 26.9px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .titulo-bloque {
    font-size: 30.34px;
    line-height: 34px;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .titulo-bloque {
    font-size: 50px;
    line-height: 56.5px;
  }
}

.texto-bloque {
  font-family: "Circular Std Book", sans-serif;
  font-weight: 450;
  font-size: 12px;
  line-height: 16px;
  color: #ffffff;
  text-align: left;
  padding: 8px 16px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .texto-bloque {
    font-size: 14px;
    line-height: 16px;
  }
}

@media (min-width: 1200px) {
  .texto-bloque {
    font-size: 20px;
    line-height: 20px;
  }
}

.separador-blanco {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 1rem auto;
  opacity: 1;
  max-width: 100%;
}

#guia-profesor .icono-guia {
  width: 69px;
  height: 103px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 768px) {
  #guia-profesor .icono-guia {
    width: 104px;
    height: 160px;
  }
}

@media (min-width: 1200px) {
  #guia-profesor .icono-guia {
    width: 272px;
    height: 400px;
    margin: 0;
    margin-left: 8rem;
  }
}

.icono-cuaderno {
  width: 69px;
  height: 103px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

@media (min-width: 768px) {
  .icono-cuaderno {
    width: 104px;
    height: 160px;
    margin: 0 auto 1.5rem auto;
  }
}

@media (min-width: 1200px) {
  .icono-cuaderno {
    width: 272px;
    height: 400px;
  }
}

@media (max-width: 767.98px) {
  #guia-profesor .container,
  #cuadernos-basico .container {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  /* Reducir espacio entre tarjetas */
  #guia-profesor .row.g-4,
  #cuadernos-basico .row.g-4 {
    --bs-gutter-y: 0.75rem !important;
  }
}

/* Reducir espacio entre tarjetas */
#guia-profesor .row.g-4,
#cuadernos-basico .row.g-4 {
  --bs-gutter-y: 1rem !important;
}

@media (min-width: 992px) {
  .cards {
    margin-top: 1.5rem !important;
  }
}

figure {
  margin-bottom: 0; /* elimina el margen extra */
}

.p-button,
.p-button:visited,
.p-button:active,
.p-button:focus {
  background-color: #dc3545;
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: none;
}

.p-button:hover {
  background-color: #c82333;
  color: #fff;
  text-decoration: none;
}
