/* =============================================================
   SECCIONES: FAQ + CTA FINAL + QR
   Cierre de la pagina: objeciones, llamada a la accion y QR de reserva.
   ============================================================= */


/* ---------- FAQ ---------- */
/* =============================================
   FAQ  — columna única
============================================= */
.faq { padding: 6rem 0; background: var(--gris-bg); }
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--azul-dark);
  margin-bottom: 0.7rem;
}
.faq-header p { font-size: 1rem; color: var(--gris-texto); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--blanco);
  border-radius: var(--r-m);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(38,64,212,0.18); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-titulo);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--azul-dark);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--azul-mid); }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(38,64,212,0.09);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--azul-mid);
  transition: background 0.2s, transform 0.3s;
}
.faq-item.open .faq-icon { background: var(--azul-mid); color: var(--blanco); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
/* el max-height real lo calcula JS con scrollHeight (antes 400px fijos podía recortar contenido) */
.faq-a.open { padding: 0 1.4rem 1.2rem; }
.faq-a p { font-size: 0.9rem; color: var(--gris-texto); line-height: 1.78; }
.faq-a ul { padding-left: 1.2rem; margin-top: 0.45rem; }
.faq-a ul li { font-size: 0.87rem; color: var(--gris-texto); margin-bottom: 0.28rem; line-height: 1.6; }

/* Botón sutil de precios en FAQ */
.btn-precios {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border: 2px solid #1234A0;
  color: #1234A0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}
.btn-precios:hover {
  background-color: #1234A0;
  color: #ffffff;
}

/* ---------- CTA final ---------- */
/* =============================================
   CTA FINAL
============================================= */
.cta-final {
  padding: 6rem 0;
  background: linear-gradient(135deg, #09145a 0%, #0D1B6E 50%, #1A2DB8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 550px; height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 1rem;
  line-height: 1.18;
}
.cta-final h2 em { font-style: normal; color: var(--amarillo-light); }
.cta-final > .container > p {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.62);
  max-width: 460px;
  margin: 0 auto 2.4rem;
  line-height: 1.72;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-contact {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-contact a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.cta-contact a:hover { color: var(--blanco); }
.cta-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Seccion QR ---------- */
/* =============================================
   QR SECTION
============================================= */
.qr-section {
  padding: 3.5rem 0;
  background: var(--azul-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.qr-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.qr-box {
  background: var(--blanco);
  border-radius: var(--r-m);
  padding: 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Glow ámbar al pasar el mouse: el QR "invita" a escanearse */
.qr-box:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.3),
    0 0 0 1px rgba(240,165,0,0.35),
    0 0 36px rgba(240,165,0,0.25);
}

/* Marco tipo "lector de QR": esquinas + línea de escaneo */
.qr-frame {
  position: relative;
  padding: 9px; /* aire entre las esquinas y el QR */
}
.qr-frame img { width: 130px; height: 130px; display: block; border-radius: 6px; }

/* Las 4 esquinas del visor, dibujadas con gradientes (sin imágenes extra) */
.qr-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* esquina sup-izq */
    linear-gradient(var(--amarillo), var(--amarillo)) left 0 top 0 / 18px 3px,
    linear-gradient(var(--amarillo), var(--amarillo)) left 0 top 0 / 3px 18px,
    /* esquina sup-der */
    linear-gradient(var(--amarillo), var(--amarillo)) right 0 top 0 / 18px 3px,
    linear-gradient(var(--amarillo), var(--amarillo)) right 0 top 0 / 3px 18px,
    /* esquina inf-izq */
    linear-gradient(var(--amarillo), var(--amarillo)) left 0 bottom 0 / 18px 3px,
    linear-gradient(var(--amarillo), var(--amarillo)) left 0 bottom 0 / 3px 18px,
    /* esquina inf-der */
    linear-gradient(var(--amarillo), var(--amarillo)) right 0 bottom 0 / 18px 3px,
    linear-gradient(var(--amarillo), var(--amarillo)) right 0 bottom 0 / 3px 18px;
  background-repeat: no-repeat;
  border-radius: 8px;
  transition: filter 0.3s ease;
}
.qr-box:hover .qr-frame::before {
  filter: drop-shadow(0 0 6px rgba(240,165,0,0.7));
}

/* Línea de escaneo: barre el QR de arriba a abajo cada ~3.4s.
   Solo anima transform + opacity (GPU, no genera reflow). */
.qr-frame::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--amarillo) 30%, var(--amarillo-light) 50%, var(--amarillo) 70%, transparent);
  box-shadow: 0 0 8px rgba(240,165,0,0.55);
  pointer-events: none;
  opacity: 0;
  animation: qr-scan 3.4s ease-in-out infinite;
}
@keyframes qr-scan {
  0%       { transform: translateY(0);     opacity: 0; }
  8%       { opacity: 0.9; }
  46%      { opacity: 0.9; }
  54%      { transform: translateY(124px); opacity: 0; }
  100%     { transform: translateY(124px); opacity: 0; }
}
/* Accesibilidad: sin animación si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .qr-frame::after { animation: none; opacity: 0; }
}
.qr-box span {
  font-family: var(--font-titulo);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul-dark);
}
.qr-texto h3 {
  font-family: var(--font-titulo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.4rem;
}
.qr-texto p { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.qr-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--font-titulo);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amarillo-light);
}
