/* IMPERAX — Agencias · White label.
   Misma paleta, misma tipografía, mismos componentes que el resto del sitio.
   Este archivo solo añade lo específico de esta página; el formulario reutiliza
   las clases de rescate.css y los botones y la rejilla vienen de styles.css. */

/* ===============================================================
   1. HERO
   =============================================================== */
.ag-hero {
  padding: 152px 0 100px;
  border-bottom: 1px solid rgba(245, 245, 247, .08);
  position: relative;
  overflow: hidden;
}

.ag-hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  width: 1120px;
  height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(245, 245, 247, .055) 0%, rgba(245, 245, 247, 0) 70%);
  pointer-events: none;
}

.ag-hero .wrap { position: relative; }

.ag-eyebrow {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 32px;
}

.ag-hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  max-width: 20ch;
  margin: 0;
}

.ag-hero .dim,
.ag-modelo .dim, .ag-capacidades .dim, .ag-casos .dim, .ag-matriz .dim,
.ag-proceso .dim, .ag-responsabilidades .dim, .ag-precios .dim,
.ag-marca .dim, .ag-compromiso .dim, .ag-preventa .dim, .ag-editorial .dim,
.ag-formulario .dim { color: #86868b; }

.ag-lead {
  margin-top: 28px;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.62;
  color: #c9c9ce;
  max-width: 66ch;
}

.ag-cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ag-cta .btn { min-height: 56px; font-size: 1.01rem; }

.ag-microproof {
  list-style: none;
  padding: 0;
  margin: 46px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  font-size: .93rem;
  color: #f5f5f7;
}

.ag-microproof li {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.ag-microproof li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6fbf97;
  transform: translateY(-3px);
}

.ag-microproof li.dim { color: #86868b; }
.ag-microproof li.dim::before { background: #86868b; }

/* ===============================================================
   Tipografía compartida de las secciones
   =============================================================== */
.ag-modelo, .ag-capacidades, .ag-casos, .ag-matriz, .ag-proceso,
.ag-responsabilidades, .ag-precios, .ag-marca, .ag-compromiso,
.ag-preventa, .ag-formulario { padding: 112px 0; }

.ag-modelo h2, .ag-capacidades h2, .ag-casos h2, .ag-matriz h2, .ag-proceso h2,
.ag-responsabilidades h2, .ag-precios h2, .ag-marca h2, .ag-compromiso h2,
.ag-preventa h2, .ag-formulario h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.026em;
  margin-top: 22px;
}

.ag-parrafo {
  margin-top: 24px;
  font-size: 1.05rem;
  line-height: 1.68;
  color: #c9c9ce;
  max-width: 70ch;
}

.ag-nota {
  margin-top: 34px;
  font-size: .92rem;
  line-height: 1.6;
  color: #86868b;
  max-width: 76ch;
}

/* ===============================================================
   2. FLUJO DEL MODELO
   =============================================================== */
.ag-flujo {
  list-style: none;
  padding: 0;
  margin: 58px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 18px;
}

.ag-flujo li {
  border: 1px solid rgba(245, 245, 247, .14);
  border-radius: 18px;
  background: rgba(245, 245, 247, .028);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ag-flujo-rotulo {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #86868b;
}

.ag-flujo-detalle {
  font-size: 1.06rem;
  line-height: 1.45;
  color: #f5f5f7;
}

.ag-flujo li:last-child { border-color: rgba(245, 245, 247, .3); }

/* ===============================================================
   3. TABS DE CAPACIDADES
   =============================================================== */
.ag-tabs { margin-top: 56px; }

.ag-tabs-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.ag-tabs-lista button {
  font: inherit;
  font-size: .94rem;
  padding: 11px 20px;
  min-height: 46px;
  border: 1px solid rgba(245, 245, 247, .15);
  border-radius: 999px;
  background: transparent;
  color: #c9c9ce;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.ag-tabs-lista button:hover { border-color: rgba(245, 245, 247, .34); color: #f5f5f7; }

.ag-tabs-lista button[aria-selected="true"] {
  background: #f5f5f7;
  border-color: #f5f5f7;
  color: #000;
}

.ag-tabs-lista button:focus-visible {
  outline: 2px solid #f5f5f7;
  outline-offset: 3px;
}

.ag-tabs-panel {
  border: 1px solid rgba(245, 245, 247, .14);
  border-radius: 20px;
  background: rgba(245, 245, 247, .025);
  padding: 40px 42px;
}

.ag-tabs-panel:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 3px; }

.ag-puntos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 13px 44px;
}

.ag-puntos li {
  font-size: 1rem;
  line-height: 1.5;
  color: #c9c9ce;
  display: flex;
  gap: 13px;
  align-items: baseline;
}

.ag-puntos li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f5f5f7;
  transform: translateY(-3px);
}

.ag-cierre {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 245, 247, .12);
  font-size: .97rem;
  line-height: 1.6;
  color: #86868b;
  max-width: 74ch;
}

.ag-panel-medida { text-align: left; }
.ag-panel-medida h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -.02em; margin-bottom: 16px; }
.ag-panel-medida p { font-size: 1.04rem; line-height: 1.62; color: #c9c9ce; max-width: 62ch; margin-bottom: 30px; }

/* ===============================================================
   4. CASOS DE USO
   =============================================================== */
.ag-acordeon { margin-top: 50px; }

/* ===============================================================
   5. MATRIZ DE OPORTUNIDADES
   =============================================================== */
.ag-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
}

.ag-opciones button {
  font: inherit;
  font-size: .95rem;
  padding: 12px 22px;
  min-height: 48px;
  border: 1px solid rgba(245, 245, 247, .15);
  border-radius: 999px;
  background: transparent;
  color: #c9c9ce;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.ag-opciones button:hover { border-color: rgba(245, 245, 247, .34); color: #f5f5f7; }

.ag-opciones button[aria-pressed="true"] {
  background: rgba(245, 245, 247, .1);
  border-color: #f5f5f7;
  color: #f5f5f7;
}

.ag-opciones button:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 3px; }

.ag-resultado {
  margin-top: 30px;
  padding: 38px 40px;
  border: 1px solid rgba(245, 245, 247, .2);
  border-radius: 20px;
  background: rgba(245, 245, 247, .04);
}

.ag-resultado .rotulo {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 20px;
}

.ag-resultado ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 13px 40px;
}

.ag-resultado li {
  font-size: 1.02rem;
  line-height: 1.5;
  color: #f5f5f7;
  display: flex;
  gap: 13px;
  align-items: baseline;
}

.ag-resultado li::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6fbf97;
  transform: translateY(-3px);
}

.ag-pregunta { font-size: 1.02rem; color: #c9c9ce; margin-bottom: 24px; }

/* ===============================================================
   6. PASOS
   =============================================================== */
.ag-pasos {
  list-style: none;
  padding: 0;
  margin: 58px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.ag-pasos li {
  border-top: 1px solid rgba(245, 245, 247, .22);
  padding-top: 24px;
}

.ag-n {
  display: block;
  font-size: .82rem;
  letter-spacing: .18em;
  color: #86868b;
  margin-bottom: 18px;
}

.ag-pasos h3 { font-size: 1.16rem; font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.ag-pasos p { font-size: .98rem; line-height: 1.6; color: #86868b; margin: 0; }

/* ===============================================================
   7. RESPONSABILIDADES
   =============================================================== */
.ag-columnas {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.ag-columna {
  border: 1px solid rgba(245, 245, 247, .14);
  border-radius: 20px;
  background: rgba(245, 245, 247, .025);
  padding: 38px 36px;
}

.ag-columna.destacada {
  border-color: rgba(245, 245, 247, .3);
  background: rgba(245, 245, 247, .055);
}

.ag-columna h3 {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: #86868b;
  margin-bottom: 24px;
}

.ag-columna.destacada h3 { color: #f5f5f7; }

.ag-columna ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }

.ag-columna li {
  font-size: 1.01rem;
  line-height: 1.45;
  color: #c9c9ce;
  display: flex;
  gap: 13px;
  align-items: baseline;
}

.ag-columna li::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #86868b;
  transform: translateY(-3px);
}

.ag-columna.destacada li { color: #f5f5f7; }
.ag-columna.destacada li::before { background: #f5f5f7; }

.ag-cierre-fuerte {
  margin: 44px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.6;
  color: #f5f5f7;
  max-width: 74ch;
  padding-left: 24px;
  border-left: 2px solid rgba(245, 245, 247, .3);
}

/* ===============================================================
   8. PLANES
   =============================================================== */
.ag-planes {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.ag-plan {
  border: 1px solid rgba(245, 245, 247, .14);
  border-radius: 20px;
  background: rgba(245, 245, 247, .025);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.ag-plan.destacado {
  border-color: rgba(245, 245, 247, .32);
  background: rgba(245, 245, 247, .06);
}

.ag-cinta {
  position: absolute;
  top: -12px;
  left: 34px;
  background: #f5f5f7;
  color: #000;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.ag-plan-n {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #86868b;
  margin: 0;
}

.ag-plan h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

.ag-plan-precio {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(245, 245, 247, .12);
  border-bottom: 1px solid rgba(245, 245, 247, .12);
}

.ag-plan-precio .cifra {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.ag-plan-precio .nota { font-size: .86rem; color: #86868b; }
.ag-plan-precio .mensual { font-size: 1.02rem; color: #f5f5f7; margin-top: 6px; }

.ag-plan-para { font-size: .96rem; line-height: 1.6; color: #c9c9ce; margin: 0; }

.ag-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.ag-plan li {
  font-size: .97rem;
  line-height: 1.45;
  color: #c9c9ce;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ag-plan li::before {
  content: "";
  width: 5px; height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #86868b;
  transform: translateY(-3px);
}

.ag-plan .btn { margin-top: 6px; min-height: 50px; justify-content: center; }

.ag-condiciones {
  margin-top: 44px;
  padding: 32px 34px;
  border: 1px solid rgba(245, 245, 247, .12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ag-condiciones p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.65;
  color: #86868b;
  max-width: 82ch;
}

.ag-condiciones strong { color: #f5f5f7; font-weight: 500; }

/* ===============================================================
   9. TRES PUNTOS Y TARJETAS
   =============================================================== */
.ag-tres, .ag-tarjetas {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px 40px;
}

.ag-tres h3, .ag-tarjetas h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: 12px; }
.ag-tres p, .ag-tarjetas p { font-size: .98rem; line-height: 1.6; color: #86868b; margin: 0; }

/* ===============================================================
   10. COMPROMISO Y GARANTÍA
   =============================================================== */
.ag-cadena {
  list-style: none;
  padding: 0;
  margin: 50px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
}

.ag-cadena li {
  font-size: 1.02rem;
  color: #f5f5f7;
  padding: 11px 20px;
  border: 1px solid rgba(245, 245, 247, .16);
  border-radius: 999px;
}

.ag-cadena li:not(:last-child)::after {
  content: "→";
  display: inline-block;
  margin: 0 -10px 0 20px;
  color: #86868b;
  transform: translateX(20px);
}

.ag-garantia {
  margin-top: 52px;
  padding: 44px 46px;
  border: 1px solid rgba(245, 245, 247, .26);
  border-radius: 22px;
  background: rgba(245, 245, 247, .05);
}

.ag-garantia .rotulo {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 16px;
}

.ag-garantia h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.024em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.ag-garantia p {
  font-size: 1.04rem;
  line-height: 1.65;
  color: #c9c9ce;
  max-width: 74ch;
  margin-bottom: 18px;
}

.ag-letra-chica {
  font-size: .88rem !important;
  line-height: 1.6 !important;
  color: #86868b !important;
  margin-bottom: 0 !important;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 245, 247, .12);
}

/* ===============================================================
   11. EDITORIAL
   =============================================================== */
.ag-editorial {
  padding: 130px 0;
  border-top: 1px solid rgba(245, 245, 247, .08);
  border-bottom: 1px solid rgba(245, 245, 247, .08);
}

.ag-editorial h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 20ch;
}

.ag-editorial p {
  margin: 30px 0 40px;
  font-size: clamp(1.04rem, 2.1vw, 1.24rem);
  line-height: 1.65;
  color: #c9c9ce;
  max-width: 72ch;
}

.ag-editorial .btn { min-height: 54px; }

/* ===============================================================
   12. FORMULARIO
   =============================================================== */
.ag-form { margin-top: 50px; max-width: 860px; }

.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.ag-form .campo-form { margin-bottom: 22px; }

.ag-opcional {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #86868b;
  margin-left: 8px;
}

.ag-etiqueta-grupo {
  display: block;
  font-size: .9rem;
  color: #c9c9ce;
  margin-bottom: 14px;
}

.ag-opciones-radio { display: flex; flex-wrap: wrap; gap: 10px; }

.ag-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(245, 245, 247, .16);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.ag-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-radio span { font-size: .97rem; color: #c9c9ce; }
.ag-radio:hover { border-color: rgba(245, 245, 247, .34); }
.ag-radio:has(input:checked) { border-color: #f5f5f7; background: rgba(245, 245, 247, .1); }
.ag-radio:has(input:checked) span { color: #f5f5f7; }
.ag-radio:has(input:focus-visible) { outline: 2px solid #f5f5f7; outline-offset: 3px; }

/* Una vez mostrados los errores, las líneas conservan su hueco: corregir un
   campo no debe desplazar el contenido bajo el cursor. */
.ag-form[data-validado="si"] .campo-error,
.ag-form[data-validado="si"] .campo-error:empty {
  display: block;
  min-height: 1.3em;
}

.ag-form .campo-error.general { margin-top: 16px; }

#ag-enviar { min-height: 56px; font-size: 1.01rem; }
#ag-enviar[disabled] { opacity: .55; cursor: progress; }

.ag-confirmacion {
  margin-top: 50px;
  max-width: 860px;
  padding: 46px;
  border: 1px solid rgba(245, 245, 247, .2);
  border-radius: 22px;
  background: rgba(245, 245, 247, .04);
}

.ag-confirmacion .rotulo {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 14px;
}

.ag-confirmacion h2 { margin-top: 0 !important; margin-bottom: 20px; }

.ag-confirmacion p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: #c9c9ce;
  margin-bottom: 14px;
  max-width: 66ch;
}

.ag-confirmacion b { color: #f5f5f7; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ag-confirmacion .btn { margin-top: 16px; }

/* ===============================================================
   13. CTA FINAL
   =============================================================== */
.ag-final {
  padding: 130px 0 150px;
  text-align: center;
}

.ag-final .kicker { justify-content: center; }

.ag-final h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 22px auto 0;
  max-width: 18ch;
}

.ag-final > .wrap > p {
  margin: 26px auto 40px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #86868b;
  max-width: 62ch;
}

.ag-final .ag-cta { justify-content: center; margin-top: 0; }

.ag-garantias-linea {
  margin-top: 32px !important;
  font-size: .92rem !important;
  color: #86868b !important;
}

/* ===============================================================
   14. CTA FIJO EN MÓVIL
   =============================================================== */
.ag-sticky { display: none; }

@media (max-width: 860px) {
  .ag-sticky {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(245, 245, 247, .12);
    transform: translateY(105%);
    transition: transform .28s ease;
  }

  .ag-sticky[data-visible="si"] { transform: translateY(0); }
  .ag-sticky .btn { width: 100%; min-height: 52px; justify-content: center; }

  body { padding-bottom: 84px; }
}

/* ===============================================================
   15. RESPONSIVE
   =============================================================== */
@media (max-width: 900px) {
  .ag-flujo { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ag-hero { padding: 116px 0 78px; }

  .ag-modelo, .ag-capacidades, .ag-casos, .ag-matriz, .ag-proceso,
  .ag-responsabilidades, .ag-precios, .ag-marca, .ag-compromiso,
  .ag-preventa, .ag-formulario { padding: 80px 0; }

  .ag-editorial { padding: 92px 0; }
  .ag-final { padding: 96px 0 110px; }

  .ag-tabs-panel { padding: 30px 24px; }
  .ag-resultado { padding: 28px 24px; }
  .ag-columna { padding: 30px 26px; }
  .ag-plan { padding: 32px 26px; }
  .ag-condiciones { padding: 26px 24px; }
  .ag-garantia { padding: 32px 26px; }
  .ag-confirmacion { padding: 30px 26px; }

  .ag-cta .btn,
  .ag-editorial .btn,
  .ag-preventa > .wrap > .btn { width: 100%; justify-content: center; }

  /* Las flechas de la cadena estorban cuando los elementos se apilan. */
  .ag-cadena { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ag-cadena li:not(:last-child)::after { display: none; }
  .ag-cadena li { width: 100%; }

  .ag-cierre-fuerte { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-tabs-lista button,
  .ag-opciones button,
  .ag-radio,
  .ag-sticky { transition: none; }
}
