/* ═══════════════════════════════════════════════════════════════════
   QuitoWeb° · Páginas públicas de contratar.quitoweb.com con la piel de quitoweb.com (1-nov-2026)
   Capa sobre estilos.css, solo con body.ap: /comprar, /correo, /compra, /estado, /activar, /dominio, /pagos.
   El panel interno (/) no la carga.

   Igual que el sitio (assets/css/apple.css): fondo blanco y #F5F5F7, titulares sans del sistema en
   negrita con la palabra viva (<em>) en Instrument Serif bermellón, baldosas redondeadas en lugar de
   reglas de tinta, píldoras bermellón, cabecera translúcida. Se quedan la cresta de los Andes y el
   logo en la serif de la casa.
   ═══════════════════════════════════════════════════════════════════ */

body.ap {
  --ground: #FFFFFF;
  --field: #FFFFFF;
  --surface: #F5F5F7;
  --surface-2: #E8E8ED;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --rule: rgba(0, 0, 0, .1);
  --rule-strong: rgba(0, 0, 0, .2);
  --accent: #C8452B;
  --accent-text: #B23A22;
  --accent-hover: #B23A22;
  --f-sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: var(--f-sys);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --press: 120ms;
  --r-tile: 24px;
  --r-small: 14px;
  --margin: clamp(20px, 4vw, 44px);

  font-family: var(--f-body);
  font-size: 17px; line-height: 1.47; letter-spacing: -.022em;
  background: var(--ground); color: var(--text);
}
.ap ::selection { background: rgba(200, 69, 43, .18); color: inherit; }
.ap :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.ap .contenedor { max-width: calc(1120px + 2 * var(--margin)); }

/* ── Titulares: sans del sistema; la palabra viva en la serif de la casa ── */
.ap h1, .ap h2, .ap h3 { font-family: var(--f-sys); font-weight: 700; text-wrap: balance; }
.ap :is(h1, h2, h3) em {
  font-family: var(--f-serif); font-weight: 400; font-style: normal; color: var(--accent);
  font-size: 1.1em; letter-spacing: -.01em;
}
.ap em { color: var(--accent-text); }

/* ── Cabecera translúcida ───────────────────────────────────────── */
.ap .masthead {
  position: sticky; top: 0; z-index: 20;
  margin-inline: calc(-1 * var(--margin)); padding: 0 var(--margin); height: 56px; align-items: center;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.ap .masthead .palabra { font-family: var(--f-serif); font-size: 1.7rem; letter-spacing: -.01em; }
.ap .label, .ap .marca { letter-spacing: -.005em; text-transform: none; font-size: .85rem; font-weight: 500; color: var(--muted); }

/* ── Hero ───────────────────────────────────────────────────────── */
.ap .hero { padding-top: clamp(48px, 8vw, 104px); align-items: end; }
.ap .hero h1 { font-size: clamp(3rem, 1.6rem + 5.6vw, 5.6rem); line-height: 1.03; letter-spacing: -.045em; }
.ap .hero .lado p { color: var(--muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.38; letter-spacing: -.018em; }
.ap .hero .lado ol { margin-top: 28px; border: 0; background: var(--surface); border-radius: var(--r-small); padding: 4px 18px; }
.ap .hero .lado li { border-bottom: 1px solid var(--rule); font-size: .97rem; }
.ap .hero .lado li:last-child { border-bottom: 0; }
.ap .hero .lado li span { color: var(--accent-text); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ap .titulo-vista h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); line-height: 1.04; letter-spacing: -.04em; }
.ap .titulo-vista p { color: var(--muted); letter-spacing: -.016em; }

/* la cresta de los Andes se queda: más baja y con su rótulo */
.ap .cresta { margin-top: clamp(32px, 5vw, 64px); }
.ap .cresta .linea-andes { stroke-width: 1.8; }
.ap .cresta .rotulo { letter-spacing: .08em; color: #86868B; font-size: .68rem; }

/* ── Bloques del formulario: secciones con aire, sin regla de tinta ── */
.ap .seccion { padding-top: clamp(40px, 6vw, 72px); }
.ap .bloque { border-top: 1px solid var(--rule); padding: 36px 0 56px; }
.ap .bloque > header .num { color: var(--accent-text); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.ap .bloque > header h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.032em; margin-top: 6px; }
.ap .bloque > header p { color: var(--muted); font-size: .9rem; line-height: 1.45; letter-spacing: -.01em; }

/* ── Campos ─────────────────────────────────────────────────────── */
.ap .campo > span:first-child, .ap .campo .titulo-campo { font-size: .85rem; font-weight: 500; letter-spacing: -.005em; text-transform: none; color: var(--text); }
.ap .campo small { font-size: .82rem; letter-spacing: -.008em; }
.ap :is(input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='time'], input[type='url'], input[type='password'], select, textarea) {
  min-height: 50px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .16); background-color: #fff;
  font-size: 1.02rem; letter-spacing: -.015em;
  transition: border-color 200ms var(--spring), box-shadow 200ms var(--spring);
}
.ap select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E73' stroke-width='1.5'/%3E%3C/svg%3E"); }
.ap :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(200, 69, 43, .14); }
.ap input::placeholder, .ap textarea::placeholder { color: #8E8E93; }

/* ── Opciones: lista agrupada, como en Ajustes ──────────────────── */
.ap .opciones { border: 0; background: var(--surface); border-radius: var(--r-small); padding: 0 20px; }
.ap .opcion { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.ap .opciones .opcion:last-child { border-bottom: 0; }
.ap .opcion input { accent-color: var(--accent); }
.ap .opcion b { font-weight: 600; }
.ap .opcion .precio { font-family: var(--f-sys); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.ap label.opcion[style*='border-bottom:0'] { padding-inline: 0; }

/* control segmentado de iOS */
.ap .segmentado { border: 0; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.ap .segmentado span { border-radius: 9px; padding: 9px 16px; color: var(--text); font-weight: 500; transition: background-color 200ms var(--spring), box-shadow 200ms var(--spring); }
.ap .segmentado input:checked + span { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.ap .dias { border: 0; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.ap .dias span { border: 0; border-radius: 9px; color: var(--text); }
.ap .dias input:checked + span { background: var(--accent); color: #fff; }

/* ── Planes: baldosas redondeadas; la elegida con anillo bermellón ── */
.ap .planes { gap: 36px 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ap .plan .tarjeta {
  border-top: 0; background: var(--surface); border-radius: var(--r-tile); padding: 26px 24px 24px;
  transition: box-shadow 240ms var(--spring), transform 240ms var(--spring);
}
.ap .plan:active .tarjeta { transform: scale(.985); transition-duration: var(--press); }
.ap .plan input:checked + .tarjeta { border-top: 0; padding-top: 26px; background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -32px rgba(200, 69, 43, .5); }
.ap .plan input:focus-visible + .tarjeta { outline-offset: 4px; border-radius: var(--r-tile); }
.ap .plan .tarjeta .n { font-family: var(--f-sys); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.ap .plan .tarjeta .p { font-family: var(--f-sys); font-weight: 700; font-size: clamp(2.2rem, 3vw, 2.8rem); letter-spacing: -.045em; }
.ap .plan .tarjeta .p small { display: block; margin: 8px 0 0; font-family: var(--f-sys); letter-spacing: -.005em; text-transform: none; font-size: .8rem; font-weight: 500; line-height: 1.4; }
.ap .plan .tarjeta .s { font-size: .88rem; letter-spacing: -.01em; }
.ap .plan .tarjeta ul { border-top: 1px solid var(--rule); }
.ap .plan .tarjeta li { font-size: .86rem; letter-spacing: -.01em; }
.ap .plan .tarjeta li::before { content: '✓'; color: var(--accent); font-weight: 600; }
.ap .plan .etiqueta { top: -26px; left: 12px; padding: 3px 10px; border-radius: 980px; background: var(--accent); color: #fff; letter-spacing: 0; text-transform: none; font-size: .75rem; font-weight: 600; }
.ap .plan .etiqueta-promo { border-radius: 980px; font-family: var(--f-sys); letter-spacing: 0; }
.ap .plan .tarjeta .ahorro { font-weight: 600; }

/* ── Botones: píldoras con respuesta al presionar ───────────────── */
.ap .btn {
  min-height: 48px; padding: 12px 26px; border-radius: 980px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font-family: var(--f-body); font-weight: 500; letter-spacing: -.015em;
  transition: background-color 200ms var(--spring), color 200ms var(--spring), border-color 200ms var(--spring), transform 240ms var(--spring);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ap .btn:hover { background: var(--accent-hover); }
.ap .btn:active { transform: scale(.97); transition-duration: var(--press); }
.ap .btn.sec { background: transparent; color: var(--accent-text); border-color: currentColor; }
.ap .btn.sec:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap .btn.chico { border-radius: 980px; }
.ap .enlace { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.ap .enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap .boton-pago .btn { border-radius: 980px; }
.ap .boton-pago .tapa { border-radius: 980px; background: var(--accent); color: #fff; }

/* ── Total y pago: baldosas ─────────────────────────────────────── */
.ap .total { border-top: 0; background: var(--surface); border-radius: var(--r-tile); padding: 10px 24px 22px; max-width: 560px; }
.ap .total .fila-total { border-bottom: 1px solid var(--rule); font-size: .95rem; }
.ap .total .gran span:first-child { letter-spacing: -.005em; text-transform: none; font-size: .9rem; font-weight: 600; color: var(--text); }
.ap .total .gran span:last-child { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.05em; font-size: clamp(2.6rem, 5vw, 3.6rem); }
.ap .nota-fina { font-size: .84rem; letter-spacing: -.008em; }
.ap .pago { border-top: 0; gap: 16px; padding-top: 0; }
.ap .pago > * { background: var(--surface); border-radius: var(--r-tile); padding: clamp(22px, 3vw, 34px); }
.ap .pago > .revision { background: transparent; padding: 0 4px; margin: 0; border-top: 0; }
.ap .pago h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); letter-spacing: -.032em; }
.ap .pago .datos-banco { background: #fff; border: 0; border-radius: var(--r-small); padding: 14px 18px; }

/* ── Avisos, tablas, pasos ──────────────────────────────────────── */
.ap .aviso { border-left: 0; background: var(--surface); border-radius: var(--r-small); padding: 14px 18px; }
.ap .aviso.error, .ap .aviso.alerta { background: rgba(200, 69, 43, .08); }
.ap .tabla { border-top: 0; }
.ap .tabla th { letter-spacing: -.005em; text-transform: none; font-size: .82rem; font-weight: 600; }
.ap .pasos { border-top: 0; background: var(--surface); border-radius: var(--r-tile); padding: 6px 22px; }
.ap .pasos li:last-child { border-bottom: 0; }
.ap .pasos li[data-e='ok'] .ico { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap .dl { border-top: 0; }
.ap .dl dt { letter-spacing: -.005em; text-transform: none; font-size: .82rem; font-weight: 600; }
.ap .vacio { border-top: 0; background: var(--surface); border-radius: var(--r-tile); padding: 40px 28px; }
.ap .antes-app { border: 0; background: var(--surface); border-radius: var(--r-small); }
.ap .toast { border-radius: 980px; padding: 12px 22px; }
.ap .pie { border-top: 1px solid var(--rule); font-size: .8rem; letter-spacing: -.008em; }

/* ── /pagos (estilos en línea de pagos.html) ────────────────────── */
.ap .negocio { border-top: 1px solid var(--rule); }
.ap .negocio > h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); letter-spacing: -.032em; }
.ap .cifras div > span:last-child { font-family: var(--f-sys); font-weight: 700; letter-spacing: -.045em; }
.ap .cobros { border-top: 0; background: var(--surface); border-radius: var(--r-tile); padding: 4px 22px; }
.ap .cobros li:last-child { border-bottom: 0; }
.ap .cobros input[type='checkbox'] { accent-color: var(--accent); }
.ap .datos-banco { background: var(--surface); border: 0; border-radius: var(--r-small); padding: 14px 18px; }
.ap .salir { color: var(--accent-text); text-decoration: none; }
.ap .ingreso input[name='codigo'] { letter-spacing: .4em; }

@media (prefers-reduced-motion: reduce) {
  .ap .btn:active, .ap .plan:active .tarjeta { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .ap .masthead { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
