
/* ========================================= */
/* ===== CONTENEDOR GENERAL 996PX ======== */
/* ========================================= */

.preguntasfrecuentes {
  width: 100%;
  max-width: 62.25rem; /* 996px */
  margin: 0 auto;
  /* padding: 1.25rem 1.25rem; */
  font-family: 'Quicksand', sans-serif;
  text-align: center;
}

/* ESTE ERA EL PROBLEMA: este contenedor también DEBE medir 996px */
.minotariacfdi {
  width: 100%;
  max-width: 62.25rem; /* 996px */
  margin: 0 auto;
}


/* ========================================= */
/* =========== TÍTULO ====================== */
/* ========================================= */

.main-title {
  font-weight: 700;
  font-size: 3.5625rem; /* 57px */
  line-height: 100%;
  color: #003899;
  /* margin-bottom: 2.5rem; */
}


/* ========================================= */
/* ========= CONTENEDOR DE FAQS ============ */
/* ========================================= */

.faq-container {
  width: 100%;        /* Ocupa TODO el ancho */
  max-width: 62.25rem; /* 996px */
  margin: 0 auto;     /* Centrado */
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
  font-family: 'Quicksand', sans-serif;
}


/* ========================================= */
/* =========== TARJETA FAQ ================= */
/* ========================================= */

.faq-item {
  width: 100%;              /* AHORA ocupa 996px completos */
  background: #fff;
  border: 0.0625rem solid #9AA9DC; /* 1px */
  border-radius: 1rem; /* 16px */
  padding: 1.625rem 2rem; /* 26px 32px */
  box-sizing: border-box;
  transition: all 0.28s ease;
}

.faq-item.active {
  border-color: #2654BB;
  box-shadow: 0rem 0.3125rem 0.9375rem 0rem #19213D0F; /* 0 5px 15px */
  padding-bottom: 2.5rem; /* 40px */
}

.faq-item{
  cursor:pointer;
  transition: all .25s ease;
}

.faq-item:hover{
  transform: translateY(-2px);
  border-color:#2654BB;
  box-shadow: 0px 4px 4px 0px #00000040;
}


/* ========================================= */
/* ======= CABECERA DEL FAQ ================= */
/* ========================================= */

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-header h3 {

  font-weight: 700;
  font-style: Bold;
  font-size: 1.625rem; /* 26px */
  line-height: 100%;
  letter-spacing: 0%;

  color: #000;
  margin: 0;
  max-width: calc(100% - 3.75rem); /* 60px */
}


/* ========================================= */
/* ======= CONTENIDO DEL FAQ ================ */
/* ========================================= */

.faq-content {
  font-weight: 400;
  font-style: Regular;
  font-size: 1.125rem; /* 18px */
  line-height: 156%;
  text-align: left;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  opacity: 1;
}
/* ========================================= */
/* ============ BOTÓN “>” ==================== */
/* ========================================= */


.faq-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;  
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem; /* 18px */
  cursor: pointer;
  transition: all 0.28s ease;
  background: transparent;
  border: 0.0625rem solid #003899; 
  color: #003899;
}

.faq-item.active .faq-toggle img{
  filter: brightness(0) invert(1);
}

.faq-toggle{
  transition: all .3s ease;
}
.faq-toggle img{
  width: 36px;
  height: 36px;
  display: block;
}

.faq-item.active .faq-toggle {
  background: #003899;
  color: #fff;
  box-shadow:
    0rem 0.125rem 0.375rem 0rem #4A3AFF1A,
    0rem 0.0625rem 0.09375rem 0rem #FFFFFF40 inset,
    0rem -0.0625rem 0.0625rem 0rem #0000001F inset;
  border: none;
  /* transform: rotate(90deg); */
  
}


/************************************ CODIGO DEL SUBRRAYADO *************************************/

/* enlace dentro del FAQ */
.faq-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.125rem; /* 2px */
  transition: color .25s ease;
}

/* subrayado animado (solo uno) */
.faq-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 0.125rem; /* 2px */
  background-color: #003899;
  transition: width .25s ease;
}

/* hover: color azul + aparece la raya */
.faq-link:hover {
  color: #003899;
}

.faq-link:hover::after {
  width: 100%;
}

/* accesibilidad */
.faq-link:focus-visible {
  outline: 0.125rem solid #003899; /* 2px */
  outline-offset: 0.1875rem; /* 3px */
  border-radius: 0.25rem; /* 4px */
}



/* ========================================= */
/* ============ RESPONSIVE ================= */
/* ========================================= */

@media (max-width: 62.25rem) { /* 996px */
  .preguntasfrecuentes,
  .minotariacfdi,
  .faq-container {
    max-width: 100%;
    padding: 0 0.9375rem; /* 15px */
  }
}

@media (max-width: 30rem) { /* 480px */
  .main-title {
    font-size: 2.5rem; /* 40px */
  }
  .faq-item {
    padding: 1.125rem 1.25rem; /* 18px 20px */
  }
  .faq-header h3 {
    font-size: 1rem; /* 16px */
  }
  .faq-video-trigger{
    font-size: 14px !important;
    padding: 0;
  }

  
}



@media (max-width: 23.4375rem) { /* 375px */
  .main-title {
    font-size: 2.5rem; /* 40px */
  }
  .faq-item {
    padding: 1.125rem 1.25rem; /* 18px 20px */
  }
  .faq-header h3 {
    font-size: 1rem; /* 16px */
  }
  .faq-video-trigger{
    font-size: 14px !important;
    padding: 0;
  }

  
}




/* VIDEO OCULTO INICIALMENTE */
/* ========================================= */
/* =============== VIDEO =================== */
/* ========================================= */

.faq-video-wrapper {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
  border: 2px solid #003899;
  border-radius: 12px;
  overflow: hidden;
}

/* VIDEO RESPONSIVO REAL */
.faq-video-wrapper video {
  width: 100%;
  max-width: 932px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Cuando el video está activo */
.faq-video-wrapper.active {
  display: flex;
}

/* El texto debe parecer clickeable */
.faq-video-trigger {
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-top: 1rem;
  transition: color .2s ease;
  text-align: left;
}


