/* Páginas de cuenta: /ingresar, /registro, /recuperar, /auth/callback, /cuenta.
   Mismos tokens que style.css (claro). Una tarjeta centrada, tipografía Geist, acento azul de marca. */
:root {
  --brand-ocean: #1652F0; --brand-lime: #A3E635; --navy: #0D2137; --primary: #1652F0;
  --success: #16A34A; --success-bg: #DCFCE7; --success-dark: #15803D; --success-border: #BBF7D0;
  --mp: #009EE3; --mp-hover: #008ACB;   /* celeste de la marca Mercado Pago (botón y opción de pago) */ --warning: #D97706; --warning-bg: #FEF3C7;
  --danger: #DC2626; --danger-bg: #FEE2E2; --info-bg: #EEF2FF;
  --bg: #F1F5F9; --surface: #FFFFFF; --border: #E2E8F0; --border-dark: #CBD5E1;
  --text: #1E293B; --text-muted: #5B6B80; --text-light: #627187;   /* mismos que style.css: 4,5:1 (QA UX/UI 13/11) */
  /* Mismos valores que --info-border, --surface-2 y --danger-border de style.css, armados con los tokens de acá */
  --info-border: color-mix(in srgb, var(--primary) 22%, #fff); --surface-2: color-mix(in srgb, var(--bg) 50%, #fff);
  --danger-border: color-mix(in srgb, var(--danger) 25%, #fff);
  /* Mismos valores que --seg-pista y --seg-elegido de style.css (opciones juntas: la elegida con contorno azul) */
  --seg-pista: inset 0 0 0 1px var(--border); --seg-elegido: 0 0 0 1px var(--primary), 0 1px 2px rgba(13,33,55,.12);
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 3px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* Fondo: degradé suave de marca arriba */
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 46vh; height: 46svh; z-index: -1;
  background: radial-gradient(900px 420px at 50% -120px, rgba(22,82,240,.14), transparent 70%);
}

/* Pantallas grandes: todo crece con la pantalla, con la misma escala que la landing (ancho/1440, tope 1,75),
   pero también según el alto, para que el paso del plan entre entero sin scrollear */
:root { --ct-z: 1; }
@media (min-width: 1600px) and (min-height: 900px)  { :root { --ct-z: 1.12; } }
@media (min-width: 1800px) and (min-height: 1000px) { :root { --ct-z: 1.25; } }
@media (min-width: 2000px) and (min-height: 1100px) { :root { --ct-z: 1.38; } }
@media (min-width: 2300px) and (min-height: 1250px) { :root { --ct-z: 1.55; } }
@media (min-width: 2520px) and (min-height: 1380px) { :root { --ct-z: 1.75; } }
.ct-top, .ct-wrap > * { zoom: var(--ct-z); }

.ct-top { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 4vw, 40px); }
/* Logo igual que el de la landing (nav: ícono 32, texto 17, -.015em) */
.ct-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.015em; font-size: 17px; color: var(--navy); }
.ct-brand svg { width: 32px; height: 32px; }
.ct-top { gap: 16px; }
.ct-brand { flex-shrink: 0; }
.ct-top a.ct-link { font-size: 14px; font-weight: 500; color: var(--text-muted); min-width: 0; text-align: right; }
.ct-top a.ct-link:hover { color: var(--text); }
.ct-top a.ct-link--ayuda { margin-left: auto; }
/* Ingresar / registro / recuperar (benchmark Vercel, Notion, Ramp): a la izquierda el logo y la vuelta al
   inicio, donde se busca el "atrás"; a la derecha la pregunta en gris y una sola acción en botón */
.ct-top-izq { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-brand { border-radius: 10px; transition: opacity .15s; }
.ct-brand:hover { opacity: .85; }
.ct-top a.ct-volver {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: background .15s, color .15s;
}
.ct-top a.ct-volver svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .15s; }
.ct-top a.ct-volver:hover { background: rgba(15,23,42,.06); color: var(--text); }
.ct-top a.ct-volver:hover svg { transform: translateX(-2px); }
.ct-top-der { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.ct-top a.ct-cta {
  display: inline-block; height: 38px; line-height: 36px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-dark); color: var(--navy); font-size: 14px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: border-color .15s, color .15s, box-shadow .15s;
}
.ct-top a.ct-cta:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 8px rgba(22,82,240,.14); }
.ct-top a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Celular: solo la acción en botón chico (sin la pregunta ni el mail) y la vuelta como flechita */
@media (max-width: 520px) {
  .ct-top { padding: 14px 16px; }
  .ct-link-pre { display: none; }
  .ct-top-izq { gap: 2px; }
  .ct-top a.ct-volver { order: -1; width: 32px; height: 36px; padding: 0; justify-content: center; margin-left: -8px; }
  .ct-top-der { gap: 8px; }
  .ct-brand { gap: 8px; font-size: 16px; }
  .ct-brand svg { width: 30px; height: 30px; }
  .ct-top a.ct-volver span { display: none; }
  .ct-top a.ct-volver svg { width: 18px; height: 18px; }
  .ct-top a.ct-cta { padding: 0 13px; font-size: 13.5px; }
  .ct-top a.ct-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13.5px; white-space: nowrap;
  }
  /* Texto largo de la barra: en el celular queda la flecha (aria-label con el texto). Con «← Volver a la plataforma» y
     «Ayuda» la barra medía 407 px a 375 (QA 13/11 R3-1). tests/mapa/barra-cuenta-celular.test.mjs */
  .ct-top a.ct-link .ct-link-txt { display: none; }
  .ct-top a.ct-link--volver { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: 16px; }
}
@media (max-width: 374px) { .ct-link-opc { display: none; } }   /* celular chico: "Probá gratis" */
/* Celular sin acción arriba (registro con sesión, paso del plan): el logo a la izquierda (Manu 09/10) y la
   tarjeta más cerca, sin el hueco que dejaba el botón */
@media (max-width: 520px) {
  .ct-top:not(:has(.ct-top-der)) { padding-bottom: 6px; }
  .ct-top:not(:has(.ct-top-der)) + .ct-wrap { padding-top: 8px; }
}

.ct-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(12px, 4vh, 40px) 16px 48px; }
.ct-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 36px);
}
.ct-card--ancha { max-width: 720px; }
.ct-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.ct-h1 { font-size: clamp(22px, 3vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 6px; }
.ct-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }
.ct-sub strong { color: var(--text); font-weight: 600; }

/* Pasos del registro */
.ct-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.ct-pasos[hidden] { display: none; }
.ct-paso { font-size: 12.5px; font-weight: 500; color: var(--text-light); padding-top: 10px; border-top: 3px solid var(--border); }
.ct-paso[aria-current="step"] { color: var(--primary); border-top-color: var(--primary); }
.ct-paso.hecho { color: var(--text-muted); border-top-color: var(--success); }

/* Botones */
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.ct-btn:active { transform: translateY(1px); }
.ct-btn:disabled { opacity: .6; cursor: default; }
.ct-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(22,82,240,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.ct-btn--primary:hover:not(:disabled) { background: #1247D6; }
.ct-btn--outline { background: var(--surface); color: var(--text); border-color: var(--border-dark); }
.ct-btn--outline:hover:not(:disabled) { background: var(--bg); border-color: var(--text-light); }
.ct-btn--outline svg { width: 18px; height: 18px; }
.ct-btn--link { width: auto; min-height: 0; padding: 0; color: var(--primary); font-weight: 500; font-size: 14px; }
.ct-btn--link:hover { text-decoration: underline; }
.ct-btn[hidden] { display: none; }

.ct-o { display: flex; align-items: center; gap: 12px; color: var(--text-light); font-size: 12.5px; margin: 16px 0; }
.ct-o::before, .ct-o::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Campos */
.ct-field { margin-bottom: 14px; }
.ct-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ct-field input, .ct-field select {
  width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-dark); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.ct-field input:focus, .ct-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,82,240,.15); }
/* "¿A qué te dedicás?": botones de un toque en vez de desplegable (como Notion o Figma) */
.ct-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-dark); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--text); transition: border-color .15s, background .15s, color .15s;
}
.ct-chips button:hover { border-color: var(--text-light); }
.ct-chips button[aria-checked="true"] { border-color: var(--primary); background: var(--info-bg); color: var(--primary); font-weight: 600; }
.ct-chips button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ct-field .ct-ayuda { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.ct-field--pass { position: relative; }
.ct-field--pass input { padding-right: 44px; }
.ct-ojo { position: absolute; right: 10px; top: 32px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-muted); border-radius: 6px; }
.ct-ojo:hover { background: var(--bg); color: var(--text); }
.ct-entre { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 18px; font-size: 13.5px; }

.ct-msg { display: none; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; }
.ct-msg--error { display: block; background: var(--danger-bg); color: #991B1B; border: 1px solid #FECACA; }
.ct-msg--ok { display: block; background: var(--success-bg); color: var(--success-dark); border: 1px solid var(--success-border); }
.ct-msg--info { display: block; background: var(--info-bg); color: #1E3A8A; border: 1px solid #C7D2FE; }
/* «Ya usaste la prueba gratis… ¿Querés suscribirte cobrando desde hoy?» (web/pago.js → confirmarSinPrueba) */
.ct-confirmar { padding: 14px; font-size: 14.5px; }
.ct-confirmar__texto { display: block; margin: 0 0 12px; font-weight: 500; }
.ct-confirmar__botones { display: flex; flex-direction: column; gap: 8px; }
.ct-confirmar .ct-btn { min-height: 44px; }
/* Sin prueba: justo arriba del botón que cobra (web/pago.js y registro, «Ya usaste tu prueba gratis: el primer cobro es hoy») */
.ct-aviso-cobro { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--text-muted); text-align: center; }

.ct-pie { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.ct-pie a, .ct-legal a { color: var(--primary); font-weight: 500; }
.ct-legal { margin-top: 14px; font-size: 12px; color: var(--text-light); line-height: 1.45; text-align: center; }

/* Estado "listo" */
.ct-ok { text-align: center; padding: 8px 0; }
.ct-ok__icono { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--success-bg); color: var(--success); font-size: 26px; font-weight: 700; }

/* Planes (paso 2) */
.ct-periodo { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.ct-periodo button { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
/* Mensual/Anual: su blanco de toque de 44 px está en el bloque de celular de abajo (una sola lista) */
.ct-periodo button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--seg-elegido); }
.ct-periodo button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (forced-colors: active) { .ct-periodo button[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }
.ct-periodo .ct-ahorro { font-size: 11.5px; font-weight: 600; color: var(--success); margin-left: 6px; }
.ct-planes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ct-plan {
  text-align: left; border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px; position: relative; transition: border-color .15s, box-shadow .15s;
}
.ct-plan:hover { border-color: var(--border-dark); }
.ct-plan[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,82,240,.14); }
/* Elegido: un círculo con ✓ junto al nombre (no solo el borde) */
.ct-field--despues { margin-top: 16px; }
.ct-plan__nombre { display: flex; align-items: center; gap: 8px; }
.ct-plan__nombre::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-dark); background: var(--surface); box-sizing: border-box; }
.ct-plan[aria-pressed="true"] .ct-plan__nombre::before { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ct-plan__tag { position: absolute; top: -10px; right: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.ct-plan__nombre { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.ct-plan__para { font-size: 12.5px; color: var(--text-muted); }
.ct-plan__precio { font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ct-plan__precio small { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.ct-plan__ars { font-size: 12.5px; color: var(--text-muted); }
.ct-plan ul { list-style: none; font-size: 13px; color: var(--text); display: grid; gap: 4px; margin-top: 4px; }
.ct-plan li::before { content: '✓'; color: var(--success); font-weight: 700; margin-right: 6px; }
.ct-firma { font-size: 13.5px; color: var(--text-muted); text-align: center; margin-top: 4px; }
/* "Incluye" con el chip de cada producto (como Microsoft 365 o Adobe): el plan manda, el producto va abajo del precio */
.ct-plan__incluye { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ct-plan__incluye-lbl { font-size: 12px; color: var(--text-muted); margin-right: 2px; }
.ct-chip-prod { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-family: 'Geist', 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.ct-chip-prod svg { width: 15px; height: 15px; flex: none; }
.ct-chip-prod--muni svg { width: 16px; height: 16px; margin: -1px -1px -1px 0; }
.ct-plan__cab { display: flex; flex-direction: column; gap: 6px; }
/* Gratis va primero (antes del más barato): en compu, primera de tres columnas; en tablet, a lo ancho arriba */
@media (min-width: 900px) {
  .ct-card--ancha { max-width: 960px; }
  .ct-planes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-plan__incluye { gap: 4px; }
  .ct-plan__incluye-lbl { display: none; }   /* en tres columnas los dos chips entran en una línea sin la palabra */
}
@media (min-width: 521px) and (max-width: 899px) {
  .ct-plan--gratis { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .ct-plan--gratis ul { margin-top: 0; }
}

/* Prueba de 14 días (paso 2): franja con línea de tiempo, no un plan aparte */
.ct-prueba { border: 1px solid #BBF7D0; background: #F0FDF4; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.ct-prueba[hidden] { display: none; }
.ct-prueba__cab { font-size: 14.5px; color: #14532D; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-prueba__cab b { font-weight: 700; }
.ct-prueba__ico { width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ct-linea { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; position: relative; }
.ct-linea::before { content: ''; position: absolute; top: 5px; left: 6px; right: 33%; height: 2px; background: linear-gradient(90deg, var(--success), #86EFAC); }
.ct-linea li { position: relative; padding: 18px 10px 0 0; display: grid; gap: 2px; font-size: 12.5px; color: var(--success-dark); }
.ct-linea li::before { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #F0FDF4; }
.ct-linea li:last-child::before { background: #fff; border: 2px solid var(--success); box-sizing: border-box; }
.ct-linea b { font-size: 13px; font-weight: 700; color: #14532D; }
.ct-linea small { font-size: 12.5px; font-weight: 600; color: #14532D; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .ct-linea li { font-size: 12px; padding-right: 6px; } }

.ct-roi { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: -4px 0 14px; padding-left: 12px; border-left: 3px solid var(--primary); }
.ct-roi b { color: var(--text); font-weight: 600; }
.ct-roi[hidden] { display: none; }

/* Resumen de cobro (paso 3) */
.ct-resumen { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); margin-bottom: 18px; font-size: 14px; }
.ct-resumen__fila { display: flex; justify-content: space-between; gap: 12px; }
.ct-resumen__fila strong { font-weight: 600; }
.ct-resumen__hoy { color: var(--success); font-weight: 600; }

/* Tarjeta (Mercado Pago: campos seguros en iframes) */
.mp-campo { min-height: 44px; padding: 0 14px; border: 1px solid var(--border-dark); border-radius: 10px; background: var(--surface); display: flex; align-items: center; }
.mp-campo iframe { width: 100%; height: 42px; border: 0; }
.mp-campo:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,82,240,.15); }
.mp-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Mi cuenta (web/cuenta.html), benchmark Stripe Billing / Linear: una columna de secciones en tarjetas
   (Plan, Cobros, Dispositivos, Avisos, Tu marca, Contraseña) con el saludo arriba y Cerrar sesión al pie ── */
.cu { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.cu-cab { display: flex; align-items: center; gap: 16px; padding: 4px 4px 8px; }
.cu-cab__txt { min-width: 0; }
.cu-cab .ct-kicker { margin-bottom: 4px; }
.cu-cab .ct-h1 { margin-bottom: 2px; }
.cu-cab .ct-sub { margin: 0; overflow-wrap: anywhere; }
.cu-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  box-shadow: 0 0 0 4px var(--surface), 0 2px 8px rgba(22,82,240,.25); }
.cu-avatar:empty { background: var(--border); box-shadow: 0 0 0 4px var(--surface); }
.cu-avatar[hidden] { display: none; }
.cu-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; min-width: 0; }
.cu-sec[hidden] { display: none; }
.ct-h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; line-height: 1.3; }
.cu-h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.cu-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0 0 16px; }
.cu-desc:empty { display: none; }
.cu-sec > .ct-h2 + :not(.cu-desc):not(.ct-marca-nota) { margin-top: 12px; }

/* Plan: datos en un recuadro gris (como el resumen de Stripe) */
.cu-datos { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 0 16px; }
.ct-dato { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ct-dato:last-child { border-bottom: 0; }
.ct-dato > span:first-child { color: var(--text-muted); flex: none; }
.ct-dato strong { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* La primera fila (el plan) manda: el nombre más grande */
.ct-dato:first-child { flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 0; }
.ct-dato:first-child > span:first-child { font-size: 12.5px; font-weight: 500; }
.ct-dato:first-child strong { font-size: 17px; font-weight: 700; letter-spacing: -.015em; text-align: left; line-height: 1.35; }
.cu-skel { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); }
.cu-skel:last-child { border-bottom: 0; }
.cu-skel span { display: block; height: 12px; width: 72px; border-radius: 6px; background: linear-gradient(90deg, var(--border), var(--bg), var(--border)); background-size: 200% 100%; animation: cu-brillo 1.2s linear infinite; }
.cu-skel span + span { width: 140px; }
@keyframes cu-brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cu-skel span { animation: none; } }
.ct-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.cu .ct-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.ct-chip--ok { background: var(--success-bg); color: var(--success-dark); }
.ct-chip--warn { background: var(--warning-bg); color: #92400E; }
.ct-chip--off { background: var(--danger-bg); color: #991B1B; }
.ct-chip--info { background: var(--info-bg); color: #1E3A8A; }
/* Botones del plan: en compu del ancho del texto, en fila (primario, secundarios y «Cancelar» al final);
   en celular uno abajo del otro a todo el ancho */
.ct-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ct-acciones:empty { display: none; }
.ct-acciones .ct-btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.ct-btn--peligro { background: var(--surface); color: var(--danger); border-color: #FECACA; }
.ct-acciones .ct-btn--peligro { margin-left: auto; }   /* compu: la acción que corta queda aparte, a la derecha */
.ct-btn--peligro:hover:not(:disabled) { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, #fff); }
.ct-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ct-btn--peligro:focus-visible { outline-color: var(--danger); }
.cu-btn-auto { width: auto; min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.cu .ct-btn { line-height: 1.25; padding-top: 8px; padding-bottom: 8px; text-align: center; }   /* si el texto baja a 2 líneas, respira */
.cu-tarjeta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.cu-tarjeta[hidden] { display: none; }
.cu-tarjeta .cu-desc { margin-bottom: 12px; }

/* Cobros: tabla con importes alineados a la derecha; vacío y error con su texto */
.ct-tabla { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ct-tabla th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 12px; letter-spacing: .02em; padding: 0 8px 8px 0; border-bottom: 1px solid var(--border); }
.ct-tabla td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ct-tabla tr:last-child td { border-bottom: 0; }
.ct-tabla th:last-child, .ct-tabla td:last-child { padding-right: 0; text-align: right; }
.ct-tabla .ct-tabla__num { text-align: right; padding-right: 16px; }
.ct-tabla td small { font-size: 12px; color: var(--text-muted); }
.cu-vacio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--border-dark); border-radius: 12px; font-size: 14px; color: var(--text-muted); }
.cu-vacio p { flex: 1 1 220px; margin: 0; }
.cu-vacio--error { border-style: solid; border-color: var(--danger-border); background: color-mix(in srgb, var(--danger-bg) 45%, #fff); color: color-mix(in srgb, var(--danger) 70%, #000); }

/* Mensajes de las acciones: un aviso abajo, encima de todo (se ve aunque la acción esté al final de la página) */
.cu-aviso { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 32px), 480px); z-index: 50; border-radius: 12px; box-shadow: var(--shadow-lg); animation: cu-toast .15s ease-out; }
.cu-aviso[hidden] { display: none; }
.cu-aviso .ct-msg { margin: 0; padding: 12px 52px 12px 14px; min-height: 44px; font-size: 14px; border-radius: 12px; }
.cu-aviso__cerrar { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  color: var(--text-muted); transition: background .15s, color .15s; }
.cu-aviso__cerrar:hover { background: rgba(15,23,42,.06); color: var(--text); }
.cu-aviso__cerrar:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.cu-con-aviso .ct-wrap { padding-bottom: 140px; }   /* lugar para el aviso: no tapa «Cerrar sesión» al final */
@keyframes cu-toast { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .cu-aviso { animation: none; } }

/* Pie: Cerrar sesión */
.cu-pie { display: flex; justify-content: center; padding: 4px 0 8px; }
.cu-pie[hidden] { display: none; }
.cu-salir { color: var(--text-muted); gap: 8px; }
.cu-salir:hover:not(:disabled) { color: var(--text); }

@media (max-width: 520px) {
  .cu { gap: 12px; }
  .cu-cab { gap: 14px; padding: 0 2px 4px; }
  .cu-avatar { width: 48px; height: 48px; font-size: 19px; }
  .cu-sec { padding: 20px 16px; border-radius: 14px; }
  .cu-datos { padding: 0 14px; }
  .ct-acciones { flex-direction: column; }
  .ct-acciones .ct-btn--peligro { margin-left: 0; }
  .ct-acciones .ct-btn, .cu-sec .cu-btn-auto { width: 100%; }
  .ct-tabla { font-size: 13.5px; }
  .ct-tabla .ct-tabla__num { padding-right: 10px; }
}

@media (max-width: 520px) {
  .ct-planes { grid-template-columns: 1fr; }
  .ct-card { padding: 22px 18px; border-radius: 14px; }
}

/* Mi cuenta → Avisos por mail: interruptor de los avisos de Dueño directo (api/_alerta_dueno.js) */
.ct-avisos[hidden] { display: none; }
.ct-avisos { border-radius: 10px; transition: box-shadow .15s, background .15s; }
.ct-avisos--foco { box-shadow: 0 0 0 3px rgba(22,82,240,.3), var(--shadow); }
.ct-switch-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0 4px; }
.ct-switch-fila--sep { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.ct-switch-txt strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.ct-switch-txt p { font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.ct-switch {
  position: relative; flex-shrink: 0; width: 46px; height: 28px; margin-top: 2px; border-radius: 999px;
  background: var(--border-dark); transition: background .15s;
}
.ct-switch::before { content: ''; position: absolute; inset: -8px; }   /* zona de toque de 44 px */
.ct-switch-bola { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.ct-switch[aria-checked="true"] { background: var(--primary); }
.ct-switch[aria-checked="true"] .ct-switch-bola { transform: translateX(18px); }
.ct-switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ct-switch:disabled { opacity: .6; cursor: default; }

/* Frecuencia de los avisos (Inmediato / Una vez por día / Una vez por semana): solo con los avisos prendidos */
.ct-frec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.ct-frec button { min-height: 44px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); line-height: 1.2; }
.ct-frec button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ct-frec button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.ct-frec--off { opacity: .55; }
.ct-frec button.ct-frec--pro { color: var(--text-light); }
.ct-frec-tag { display: inline-block; margin-left: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); background: var(--info-bg); border: 1px solid var(--info-border); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.ct-frec-tag[hidden] { display: none; }
.ct-frec--off button { cursor: default; }
.ct-frec-nota { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.ct-avisos-busq { font-size: 13px; color: var(--text); margin-top: 10px; line-height: 1.45; }
.ct-avisos-busq a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-block; min-height: 44px; padding: 10px 0; margin: -10px 0; }   /* 44 con el padding (border-box) */

/* Notebook de 768 de alto: el paso del plan entra con su botón sin scrollear (registro paso 2) */
@media (max-height: 820px) and (min-width: 700px) {
  .ct-wrap { padding-top: 12px !important; }
  .ct-card { padding-top: 22px !important; padding-bottom: 22px !important; }
  .ct-pasos { margin-bottom: 12px; }
  [data-vista="plan"] .ct-sub { margin-bottom: 10px; }
  .ct-prueba { padding-top: 10px !important; padding-bottom: 10px !important; margin-bottom: 12px !important; }
  .ct-roi { margin: -8px 0 10px; }
  .ct-plan { padding: 12px 14px; }
  .ct-plan ul { gap: 2px; }
  .ct-planes { gap: 10px; }
  .ct-plan__cab { gap: 4px; }
  .ct-plan { gap: 4px; }
  .ct-planes { margin-bottom: 12px; }
}
.cu-sec > .ct-avisos-busq--arriba { margin: 0 0 8px; font-size: 13.5px; color: var(--text-muted); }
.ct-frec-nota--pro { margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--info-bg); color: var(--text); }
.ct-frec-nota--pro[hidden] { display: none; }
.ct-frec-nota a { color: var(--primary); font-weight: 600; }
.ct-switch-fila--cartera { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Tu marca (cuenta.html → marcaPintar; la misma marca del ACM) */
.ct-marca[hidden] { display: none; }
.ct-marca .ct-switch-fila:first-of-type { padding-top: 4px; }
.ct-marca .ct-switch-fila { align-items: center; }
.ct-marca .ct-switch-txt { flex: 1; min-width: 0; }
.ct-marca-acc { display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex-shrink: 0; }
.ct-marca-acc .ct-btn { width: auto; min-height: 40px; margin: 0; padding: 0 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ct-link-btn { font-size: 13px; color: var(--text-muted); text-decoration: underline; padding: 4px; }
.ct-link-btn:hover { color: var(--danger); }
@media (max-width: 480px) { .ct-marca .ct-switch-fila { flex-wrap: wrap; } .ct-marca-acc { flex-direction: row; align-items: center; width: 100%; gap: 8px; } .ct-marca-acc .ct-btn { flex: 1; } }
/* Tu marca: tu foto (redonda) y el logo; en Gratis, con candado (cuenta.html → marcaPintar) */
.ct-marca .ct-switch-fila + .ct-switch-fila { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.ct-marca-img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--text-light); overflow: hidden; }
.ct-marca-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ct-marca-img--foto { border-radius: 50%; }
.ct-marca-img--foto img { object-fit: cover; padding: 0; }
.ct-marca-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--info-bg); color: var(--primary); font-size: 11.5px; font-weight: 600; }
.ct-marca-nota { font-size: 13px; color: var(--text-muted); margin: 2px 0 6px; line-height: 1.45; }
.ct-marca-nota a { color: var(--primary); font-weight: 600; }
.ct-marca--bloq .ct-marca-img, .ct-marca--bloq .ct-switch-txt { opacity: .55; }
.ct-marca-acc .ct-btn.is-disabled { color: var(--text-muted); background: var(--bg); }
.ct-marca-acc .ct-btn.is-disabled::before { content: ''; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.2'/%3E%3Cpath d='M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.2'/%3E%3Cpath d='M8.5 10.5V7.5a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.ct-marca-acc .ct-btn.is-disabled { gap: 6px; }
.ct-marca-tag[hidden] { display: none; }
/* Celular: campos con letra de 16 px o más, así el iPhone no agranda la página al tocarlos (R3-1, QA 09/10).
   Va al final y con !important porque hay reglas más específicas de 12-15 px en buscador, filtros y cuentas */
@media (max-width: 899px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
}

/* Celular: botones de cuenta de 44 px al dedo (R3-4): mostrar contraseña, «¿A qué te dedicás?» y el link de arriba */
@media (pointer: coarse) {
  .ct-ojo { width: 44px; height: 44px; right: 3px; top: 25px; }
  .ct-chips button, .ct-top a.ct-link, .ct-periodo button { min-height: 44px; }
  .ct-marca-acc .ct-btn, .ct-marca-acc .ct-link-btn { min-height: 44px; }   /* Tu marca (llegó de main 10/10) */
  /* Encabezado nuevo (volver y botón de la derecha): la zona que se toca llega a 44 px sin cambiar cómo se ve */
  .ct-top a.ct-volver, .ct-top a.ct-cta, .ct-brand, .ct-btn--link { position: relative; }
  /* «¿No te llegó? Reenviar», «Cambiar de plan», «Reintentar» (links de texto): la misma zona (R3a-6) */
  .ct-top a.ct-volver::after, .ct-top a.ct-cta::after, .ct-brand::after, .ct-btn--link::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}

/* ── Elegir cómo pagar (registro, paso 3) ── */
.ct-metodos { display: grid; gap: 10px; margin: 4px 0 16px; }
.ct-metodo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ct-metodo:hover { border-color: var(--border-dark); }
.ct-metodo[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,82,240,.12); }
.ct-metodo:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ct-metodo__ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--text-muted); }
.ct-metodo__ico--mp { background: rgba(0,158,227,.1); color: var(--mp); }
.ct-metodo__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-metodo__txt strong { font-size: 15px; font-weight: 600; }
.ct-metodo__txt small { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.ct-metodo__tag { font-size: 11.5px; font-weight: 600; color: var(--success-dark); background: var(--success-bg); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.ct-btn--mp { background: var(--mp); color: #fff; box-shadow: 0 1px 2px rgba(0,158,227,.35), inset 0 1px 0 rgba(255,255,255,.15); }
.ct-btn--mp:hover:not(:disabled) { background: var(--mp-hover); }
/* Pantalla angosta: «Más rápido» baja a un renglón debajo del nombre en vez de esconderse (R3a-5) */
@media (max-width: 420px) { .ct-metodo { flex-wrap: wrap; } .ct-metodo__txt { flex: 1 1 calc(100% - 54px); } .ct-metodo__tag { margin-left: 54px; } }

/* Dispositivos abiertos (límite de 2, web/cuenta.html → dispositivos; la lista usa web/dispositivos.css) */
.ct-disp[hidden] { display: none; }
.ct-disp-cargando { font-size: 14px; color: var(--text-muted); padding: 10px 0; }
.ct-disp-cargando[hidden], .ct-disp-solo[hidden] { display: none; }
.ct-disp-solo { margin-top: 10px; font-size: 13.5px; color: var(--text-muted); }
.ct-disp-otros { margin-top: 16px; min-height: 44px; }
.ct-disp-reintentar { min-height: 44px; }
/* «Subir foto/logo» de Tu marca: el archivo queda oculto a la vista pero entra con Tab (antes, hidden: no se podía usar
   con teclado; R4e-3 QA 20/10). El foco se ve en el botón */
[data-marca-subir] { position: relative; }
.ct-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
[data-marca-subir]:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
