@font-face {
  font-family: "Archivo Expanded";
  src: url("fonts/archivo-expanded-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-primary: #14213D;
  --color-on-primary: #FFFFFF;
  --color-secondary: #47506B;
  --color-accent: #A8762B;
  --color-accent-fuerte: #8E6421;
  --color-background: #FAF9F5;
  --color-foreground: #14213D;
  --color-muted: #6B7280;
  --color-muted-bg: #F1EEE6;
  --color-border: #E4E0D3;
  --color-destructive: #B42318;
  --paso-1: 1rem;
  --paso-2: 1.25rem;
  --paso-3: 1.5rem;
  --paso-4: 2.25rem;
  --paso-5: 3rem;
  --radio-sm: 0.3rem;
  --radio: 0.5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: "IBM Plex Sans", -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: "Archivo Expanded", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: var(--paso-3); }
p { margin: 0 0 1rem; }
a { color: var(--color-accent-fuerte); }
img { max-width: 100%; display: block; }

.envoltura { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.seccion { padding: clamp(3rem, 8vw, 5rem) 0; }
.seccion--muted { background: var(--color-muted-bg); }
.seccion--angosta .envoltura, .seccion--angosta { max-width: 46rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.seccion__lead { color: var(--color-muted); max-width: 42rem; font-size: 1.05rem; }
.seccion--muted .seccion__lead { color: var(--color-secondary); }

.dato { font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin: 0 0 0.5rem; }
.dato--accent { color: var(--color-accent-fuerte); }
.dato--critico { color: var(--color-destructive); }

/* ---- Barra superior ---- */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(248,250,252,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); }
.barra__contenido { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.marca { display: flex; align-items: center; }
.barra__nav { display: flex; align-items: center; gap: 1.5rem; }
.barra__nav a { color: var(--color-secondary); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.barra__nav a:hover { color: var(--color-primary); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radio-sm); padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 150ms ease;
  min-height: 44px;
}
.btn--cta { background: var(--color-accent-fuerte); color: #fff; }
.barra__nav .btn--cta { color: #fff; }
.btn--cta:hover { background: #7A561C; }
.btn--linea { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn--linea:hover { border-color: var(--color-primary); }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---- Hero ---- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 3rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--color-secondary); max-width: 34rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.hero__nota { font-size: 0.85rem; color: var(--color-muted); max-width: 30rem; }
.hero__panel {
  background: #fff; border-radius: 0.75rem;
  padding: 1.5rem; box-shadow: 0 20px 40px -20px rgba(20,33,61,0.25);
}
.hero__panel-fila { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.hero__panel-fila:last-of-type { border-bottom: none; }
.hero__panel-barra { height: 8px; background: var(--color-muted-bg); border-radius: 999px; margin-top: 0.75rem; overflow: hidden; }
.hero__panel-barra span { display: block; height: 100%; background: var(--color-accent); border-radius: 999px; }
.hero__panel-pie { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--color-muted); text-align: center; }

/* ---- Tarjetas ---- */
.tarjetas { display: grid; gap: 1.25rem; margin-top: 2rem; }
.tarjetas--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tarjeta { background: #fff; border-radius: var(--radio); padding: 1.5rem; box-shadow: 0 1px 2px rgba(20,33,61,0.05), 0 10px 24px -16px rgba(20,33,61,0.18); }
.seccion--muted .tarjeta { background: #fff; }
.tarjeta__etiqueta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--color-muted); margin-bottom: 0.5rem; }
/* Sin opacity: bajaba el texto a 3.05:1. */
.tarjeta--proximamente { box-shadow: none; border: 1px dashed var(--color-border); }

/* ---- Planes con pago (prueba/) ---- */
.plan { display: flex; flex-direction: column; }
.plan__nombre { font-size: var(--paso-3); }
.plan__precio { color: var(--color-secondary); }
.plan__precio strong { font-family: "Archivo Expanded", Arial, sans-serif; font-size: var(--paso-4); color: var(--color-primary); }
.plan__pagar { margin-top: auto; }
.pasos { padding-left: 1.25rem; display: grid; gap: 0.75rem; margin: 1.5rem 0; }

/* ---- Lista con check ---- */
.lista-check { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.lista-check li { position: relative; padding-left: 1.75rem; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5l-7 7-3-3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5l-7 7-3-3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---- Métricas de confianza ---- */
.seccion--confianza { padding-top: 2rem; padding-bottom: 2rem; }
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.metrica strong { display: block; font-family: "Archivo Expanded", Arial, sans-serif; font-size: 1.5rem; color: var(--color-accent); margin-bottom: 0.25rem; }
.metrica span { color: var(--color-muted); font-size: 0.9rem; }

/* ---- Preguntas frecuentes ---- */
.faq { margin-top: 2rem; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; min-height: 44px; }
.faq summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.faq details p { color: var(--color-secondary); margin: 0 0 1rem; }
.faq__nota { margin: 1.5rem 0 0; font-size: 0.85rem; color: var(--color-muted); }

/* ---- Formulario ---- */
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.formulario__campo { display: flex; flex-direction: column; gap: 0.4rem; }
.formulario__campo--ancho { grid-column: 1 / -1; }
.formulario label { font-weight: 600; font-size: 0.9rem; }
.formulario .opcional { font-weight: 400; color: var(--color-muted); }
.formulario input, .formulario textarea {
  border: 1px solid var(--color-border); border-radius: var(--radio-sm); padding: 0.7rem 0.85rem;
  font: inherit; background: #fff; min-height: 44px;
}
.formulario input:focus, .formulario textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.formulario textarea { min-height: 6rem; resize: vertical; }
.formulario__legal { grid-column: 1 / -1; font-size: 0.8rem; color: var(--color-muted); margin: 0; }
.formulario__enviar { grid-column: 1 / -1; justify-self: start; }
.formulario__nota { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; }
.formulario__nota[data-estado="ok"] { color: #15803D; }

/* ---- Footer ---- */
.pie { border-top: 1px solid var(--color-border); padding: 2rem 0; }
.pie__contenido { text-align: center; color: var(--color-muted); font-size: 0.85rem; }
.pie__legal { max-width: 40rem; margin: 0.5rem auto 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .barra__nav { gap: 1rem; }
  .barra__nav a:not(.btn) { display: none; }
  .formulario { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
