/* ============================================================
   FAQ — PREGUNTAS FRECUENTES
   Página: /preguntas-frecuentes/
   Ruta imágenes: assets/images/faq/
   ============================================================ */

.page-template-template-faq .andes-main-wrap,
.page-template-template-faq #primary,
.page-template-template-faq .ast-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.page-template-template-faq .correo-hero {
  margin-top: 130px;
}

.page-template-template-faq .correo-hero__imagen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.faq-hero__titulo {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 55px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
}

.faq-hero__subtitulo {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
  font-size: 24px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  color: #FFFFFF !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .page-template-template-faq .correo-hero {
    margin-top: 72px;
  }
  .page-template-template-faq .correo-hero__imagen img {
    height: 450px;
  }
  .faq-hero__titulo {
    font-size: 38px !important;
  }
  .faq-hero__subtitulo {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .page-template-template-faq .correo-hero {
    margin-top: 64px;
  }
  .page-template-template-faq .correo-hero__imagen img {
    height: 350px;
  }
  .faq-hero__titulo {
    font-size: 26px !important;
  }
  .faq-hero__subtitulo {
    font-size: 14px !important;
  }
}
/* ============================================================
   FAQ — PREGUNTAS FRECUENTES — SECCIÓN INTERACTIVA
   ============================================================ */

/* ── Sección contenedor ── */
.faq-preguntas {
  background: linear-gradient(180deg, #d8edc4 0%, #cce8d4 50%, #c0e4e0 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.faq-preguntas__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 48px;
}

/* ── Control de vistas ── */
.faq-preguntas__vista {
  display: none;
}

.faq-preguntas__vista--active {
  display: block;
  animation: faqEntrar 0.4s ease both;
}

@keyframes faqEntrar {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── VISTA 1 — GRID DE TARJETAS ── */
.faq-preguntas__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px;
  justify-items: center;
}

.faq-preguntas__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px 100px 32px;
  border: none;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 450px;
  min-height: 380px;
}

.faq-preguntas__card:hover,
.faq-preguntas__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  outline: none;
  background: #ffffff;
}

/* ── Puntos decorativos Lima ── */
.faq-preguntas__dots {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 160px;
  height: 160px;
  pointer-events: none;
}

.faq-preguntas__dot {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #AFD81A;
  opacity: 0.7;
}

.faq-preguntas__dot--b {
  left: 55px;
  top: 35px;
  width: 80px;
  height: 80px;
}

.faq-preguntas__dot--c {
  left: 0;
  top: 70px;
  width: 80px;
  height: 80px;
}

/* ── Cuerpo de la tarjeta ── */
.faq-preguntas__card-cuerpo {
  flex: 1;
  position: relative;
  z-index: 1;
}

.faq-preguntas__card-label {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  text-transform: uppercase !important;
  margin: 0 0 20px !important;
  position: relative;
  top: -10px;
}

.faq-preguntas__card-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  margin: 0 0 12px;
  line-height: 1.25;
}

.faq-preguntas__card-desc {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #333333;
  line-height: 1.6;
  margin: 0;
}

/* ── Flecha de tarjeta ── */
.faq-preguntas__card-flecha {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 24px;
  height: 36px;
  z-index: 3;
  transition: transform 0.2s ease;
}

.faq-preguntas__card:hover .faq-preguntas__card-flecha {
  transform: translateX(4px);
}

/* ── PANEL COMÚN (vistas 2 y 3) ── */
.faq-preguntas__panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px 48px;
  max-width: 860px;
  margin-inline: auto;
}

/* ── Botón volver ── */
.faq-preguntas__volver {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: -60px;
  margin-bottom: 32px;
  min-height: 44px;
}

.faq-preguntas__volver svg {
  width: 24px;
  height: 36px;
}

.faq-preguntas__volver:hover,
.faq-preguntas__volver:focus,
.faq-preguntas__volver:focus-visible {
  background: none !important;
  color: #000000;
  outline: none;
}

/* ── Cabecera del panel ── */
.faq-preguntas__panel-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #0A3C83;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.faq-preguntas__panel-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #000000;
  margin: 0 0 28px;
}

/* ── VISTA 2 — LISTA DE PREGUNTAS ── */
.faq-preguntas__lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-preguntas__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e8edf3;
  cursor: pointer;
  transition: background 0.15s ease, padding-left 0.15s ease;
  border-radius: 8px;
  min-height: 44px;
}

.faq-preguntas__item:first-child {
  border-top: 1px solid #e8edf3;
}

.faq-preguntas__item:hover,
.faq-preguntas__item:focus-visible {
  background: #f0f4fb;
  padding-left: 12px;
  outline: none;
}

.faq-preguntas__item-num {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #AFD81A;
  min-width: 28px;
  text-align: right;
}

.faq-preguntas__item-texto {
  flex: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1a2d5a;
  line-height: 1.5;
}

.faq-preguntas__item-flecha {
  flex-shrink: 0;
  width: 10px;
  height: 18px;
  color: #000000;
  transition: transform 0.2s ease;
}

.faq-preguntas__item:hover .faq-preguntas__item-flecha {
  transform: translateX(3px);
}

/* ── VISTA 3 — DETALLE DE PREGUNTA ── */
.faq-preguntas__panel--detalle {
  position: relative;
  overflow: hidden;
}

.faq-preguntas__detalle-contenido {
  position: relative;
}

.faq-preguntas__dots--detalle {
  position: absolute;
  bottom: -40px;
  right: -40px;
  left: auto;
  opacity: 0.5;
}

.faq-preguntas__detalle-q {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  margin: 0 0 20px;
  line-height: 1.4;
  max-width: 680px;
}

.faq-preguntas__detalle-r {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #333333;
  line-height: 1.75;
}

.faq-preguntas__detalle-r p {
  margin: 0;
}

/* ── RESPONSIVE TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .faq-preguntas {
    padding: 60px 0 72px;
  }

  .faq-preguntas__inner {
    padding-inline: 32px;
  }

  .faq-preguntas__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .faq-preguntas__card {
    padding: 28px 22px 100px 22px;
  }

  .faq-preguntas__card-titulo {
    font-size: 16px;
  }

  .faq-preguntas__card-desc {
    font-size: 12px;
  }

  .faq-preguntas__panel {
    padding: 32px 36px 40px;
  }

  .faq-preguntas__panel-titulo {
    font-size: 17px;
  }

  .faq-preguntas__detalle-q {
    font-size: 16px;
  }

  .faq-preguntas__detalle-r {
    font-size: 13px;
  }

  .faq-preguntas__item-texto {
    font-size: 13px;
  }
}

/* ── RESPONSIVE MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .faq-preguntas {
    padding: 44px 0 56px;
  }

  .faq-preguntas__inner {
    padding-inline: 1rem;
  }

  .faq-preguntas__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-preguntas__card {
    padding: 24px 18px 90px 18px;
    flex-direction: row;
  }

  .faq-preguntas__card-titulo {
    font-size: 15px;
  }

  .faq-preguntas__card-desc {
    font-size: 11.5px;
  }

  .faq-preguntas__dots {
    bottom: -24px;
    left: -24px;
  }

  .faq-preguntas__dot {
    width: 65px;
    height: 65px;
  }

  .faq-preguntas__dot--b {
    left: 44px;
    top: 28px;
    width: 65px;
    height: 65px;
  }

  .faq-preguntas__dot--c {
    left: 0;
    top: 56px;
    width: 65px;
    height: 65px;
  }

  .faq-preguntas__panel {
    padding: 24px 20px 32px;
    border-radius: 16px;
  }

  .faq-preguntas__panel-titulo {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .faq-preguntas__volver {
    font-size: 13px;
    min-height: 44px;
  }

  .faq-preguntas__item {
    padding: 14px 0;
    gap: 10px;
  }

  .faq-preguntas__item-num {
    font-size: 12px;
    min-width: 22px;
  }

  .faq-preguntas__item-texto {
    font-size: 12px;
  }

  .faq-preguntas__detalle-q {
    font-size: 14px;
  }

  .faq-preguntas__detalle-r {
    font-size: 12px;
  }

  .faq-preguntas__detalle-label {
    font-size: 10px;
  }
}

.faq-hero__texto {
  text-align: center !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-inline: auto !important;
}

.faq-hero__titulo {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 80px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
  white-space: nowrap !important;
}

.faq-hero__subtitulo {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
  font-size: 32px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  color: #FFFFFF !important;
  margin-bottom: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  .faq-hero__titulo {
    font-size: 48px !important;
  }
  .faq-hero__subtitulo {
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  .faq-hero__titulo {
    font-size: 28px !important;
    white-space: normal !important;
  }
  .faq-hero__subtitulo {
    font-size: 14px !important;
    white-space: normal !important;
  }
}

/* ============================================================
   FAQ — VISTA Q&A LADO A LADO
   ============================================================ */

.faq-preguntas__qa-lista {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.faq-preguntas__qa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.faq-preguntas__qa-pregunta {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 100px;
  overflow: hidden;
  min-height: 280px;
  z-index: 2;
}

.faq-preguntas__qa-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000000;
  margin: 0 0 16px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.faq-preguntas__qa-num {
  color: #000000;
  margin-right: 6px;
}

.faq-preguntas__qa-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #000000;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

.faq-preguntas__qa-flecha {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 24px;
  height: 36px;
  z-index: 2;
}

.faq-preguntas__qa-respuesta {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 20px 20px 0;
  padding: 28px 28px 28px 48px;
  margin-left: -20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  z-index: 1;
}

.faq-preguntas__qa-respuesta-titulo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000000;
  margin: 0 0 12px;
}

.faq-preguntas__qa-respuesta p {
  margin: 0;
}

@media (max-width: 1024px) {
  .faq-preguntas__qa-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faq-preguntas__qa-pregunta {
    border-radius: 20px 20px 0 0;
    padding: 24px 24px 80px;
    min-height: 220px;
  }
  .faq-preguntas__qa-respuesta {
    border-radius: 0 0 20px 20px;
    padding: 24px;
    margin-left: 0;
    margin-top: -20px;
    padding-top: 40px;
    font-size: 13px;
  }
  .faq-preguntas__qa-titulo {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .faq-preguntas__qa-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faq-preguntas__qa-pregunta {
    padding: 20px 20px 80px;
    min-height: 220px;
  }
  .faq-preguntas__qa-titulo {
    font-size: 14px;
  }
  .faq-preguntas__qa-respuesta {
    padding: 20px;
    font-size: 12px;
  }
  .faq-preguntas__qa-respuesta-titulo {
    font-size: 13px;
  }
}

.faq-preguntas__volver--bottom {
  margin-top: 40px;
  margin-bottom: 0;
}

/* ============================================================
   FAQ — BLOQUES DESTACADOS
   ============================================================ */

.faq-destacado {
  display: grid;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px 32px;
  margin: 16px 0 60px 0;
  min-height: 120px;
  width: 65%;
  position: relative;
}

/* Tipo A: texto izquierda, imagen derecha saliendo abajo */
.faq-destacado--A {
  grid-template-columns: 2fr 1fr;
  margin-right: auto;
  margin-left: 0;
}

.faq-destacado--A .faq-destacado__texto {
  order: 1;
  text-align: left;
}

.faq-destacado--A .faq-destacado__imagen {
  order: 2;
  justify-self: end;
  position: relative;
  bottom: -60px;
  right: -60px;
}

/* Tipo B: imagen izquierda saliendo abajo, texto derecha */
.faq-destacado--B {
  grid-template-columns: 1fr 2fr;
  margin-left: auto;
  margin-right: 0;
}

.faq-destacado--B .faq-destacado__texto {
  order: 2;
  text-align: right;
}

.faq-destacado--B .faq-destacado__imagen {
  order: 1;
  justify-self: start;
  position: relative;
  bottom: -60px;
  left: -60px;
}

.faq-destacado__texto {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.4;
  letter-spacing: 0;
  color: #0D2666;
}

.faq-destacado__imagen img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

@media (max-width: 1024px) {
  .faq-destacado {
    padding: 24px 32px;
    gap: 24px;
    width: 80%;
    margin-bottom: 50px;
  }
  .faq-destacado__texto {
    font-size: 28px;
  }
  .faq-destacado__imagen img {
    max-width: 160px;
  }
  .faq-destacado--A .faq-destacado__imagen,
  .faq-destacado--B .faq-destacado__imagen {
    bottom: -30px;
  }
}

@media (max-width: 480px) {
  .faq-destacado--A,
  .faq-destacado--B {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
    text-align: center;
    width: 100%;
    margin: 16px 0 40px 0;
  }
  .faq-destacado--A .faq-destacado__texto,
  .faq-destacado--B .faq-destacado__texto {
    text-align: center;
    order: 1;
  }
  .faq-destacado--A .faq-destacado__imagen,
  .faq-destacado--B .faq-destacado__imagen {
    order: 2;
    justify-self: center;
    bottom: -20px;
    right: auto;
    left: auto;
  }
  .faq-destacado__texto {
    font-size: 20px;
  }
  .faq-destacado__imagen img {
    max-width: 140px;
  }
}