/* DAS · Sistema visual v2
   Capa opt-in para pilotos N24. Cargar después de assets/das.css.
   No remapea la paleta ni altera componentes existentes. */
:root {
  --s2-radius: 8px;
  --s2-border: var(--line);
  --s2-panel: var(--ink-2);
  --s2-raised: var(--ink-3);
  --s2-space: clamp(16px, 2.6vw, 28px);
  --s2-motion: 200ms;
  --s2-ease: cubic-bezier(.2, .7, .2, 1);
}

.s2, .s2 * { box-sizing: border-box; }
.s2 { color: var(--paper); }
.s2 a { color: inherit; }
.s2 button, .s2 input, .s2 select { font: inherit; }
.s2 button { color: inherit; }
.s2 :focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.s2 [hidden] { display: none !important; }
.s2-wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }
.s2-topline { border-bottom: 1px solid var(--s2-border); }
.s2-topline-inner { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.s2-wordmark, .s2-index, .s2-eyebrow, .s2-step-count, .s2-kicker {
  font-family: var(--f-mono, ui-monospace, monospace);
  font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
}
.s2-wordmark { color: var(--paper); font-weight: 500; }
.s2-wordmark span { color: var(--mute); }
.s2-index { color: var(--mute); text-align: right; }
.s2-intro { padding-block: clamp(48px, 9vw, 104px) clamp(34px, 6vw, 64px); }
.s2-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.s2-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--c); }
.s2 h1, .s2 h2, .s2 h3 { font-family: var(--f-display, "Helvetica Neue", Arial, sans-serif); text-wrap: balance; }
.s2 h1 { max-width: 12ch; margin: 20px 0 16px; font-size: clamp(3rem, 8.5vw, 7.2rem); line-height: .91; letter-spacing: -.065em; font-weight: 750; }
.s2-intro-copy { max-width: 54ch; color: var(--mute); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.55; }
.s2-demo-note { margin-top: 24px; padding: 10px 12px; display: inline-flex; align-items: center; gap: 10px; border-left: 1px solid var(--c); color: var(--mute); font-size: .82rem; }
.s2-demo-note::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; background: var(--c); }
.s2-section { padding-block: clamp(26px, 4vw, 48px) clamp(40px, 7vw, 76px); border-top: 1px solid var(--s2-border); }
.s2-section-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 20px; }
.s2-step-count { padding-top: 7px; color: var(--mute); }
.s2-section-head h2 { margin: 0; font-size: clamp(1.55rem, 3.4vw, 2.5rem); line-height: 1.06; letter-spacing: -.04em; }
.s2-section-head p { max-width: 58ch; margin-top: 8px; color: var(--mute); font-size: .94rem; line-height: 1.5; }
.s2-card { min-width: 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--s2-border); border-radius: var(--s2-radius); background: var(--s2-panel); }
.s2-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--s2-border)); }
.s2-form-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); gap: 14px; align-items: stretch; }
.s2-card-title { margin: 9px 0 7px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.08; letter-spacing: -.035em; }
.s2-card-copy { max-width: 50ch; color: var(--mute); font-size: .9rem; line-height: 1.5; }
.s2-kicker { color: var(--c); }
.s2-progress { display: flex; align-items: center; gap: 7px; margin: 20px 0 16px; }
.s2-progress span { width: 24px; height: 2px; background: var(--s2-raised); }
.s2-progress span[aria-current="step"] { background: var(--c); }
.s2-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s2-field { min-width: 0; display: grid; gap: 6px; }
.s2-field label { color: var(--paper); font-size: .84rem; font-weight: 600; }
.s2-field small { min-height: 1.2em; color: var(--mute); font-size: .76rem; line-height: 1.4; }
.s2-control { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--s2-border); border-radius: 6px; background: var(--ink); color: var(--paper); }
.s2-control::placeholder { color: var(--mute); opacity: 1; }
.s2-control:hover { border-color: color-mix(in srgb, var(--paper) 38%, var(--s2-border)); }
.s2-error { min-height: 1.4em; margin-top: 8px; color: #ff9a9a; font-size: .8rem; }
.s2-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 14px; }
.s2-btn { min-height: 44px; padding: 10px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid var(--s2-border); border-radius: 6px; background: transparent; color: var(--paper); font-weight: 600; font-size: .86rem; text-decoration: none; cursor: pointer; transition: transform var(--s2-motion) var(--s2-ease), border-color var(--s2-motion) var(--s2-ease), background-color var(--s2-motion) var(--s2-ease); }
.s2-btn:hover { border-color: var(--c); transform: translateY(-1px); }
.s2-btn-primary { border-color: var(--c); background: var(--c); color: var(--ink); }
.s2-btn-primary:hover { background: color-mix(in srgb, var(--c) 84%, white); color: var(--ink); }
.s2-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.s2-privacy { min-height: 2.6em; margin-top: 10px; color: var(--mute); font-size: .75rem; line-height: 1.45; }
.s2-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.s2-newsletter { display: flex; flex-direction: column; }
.s2-newsletter-form { margin-top: auto; padding-top: 18px; }
.s2-inline { display: flex; gap: 8px; margin-top: 10px; }
.s2-inline .s2-control { min-width: 0; flex: 1; }
.s2-status { min-height: 2.6em; padding-top: 8px; color: var(--mute); font-size: .78rem; line-height: 1.4; }
.s2-status[data-state="error"] { color: #ff9a9a; }
.s2-status[data-state="success"] { color: var(--paper); }
.s2-sample { display: inline-block; margin-top: 16px; padding-top: 9px; border-top: 1px solid var(--s2-border); color: var(--mute); font-size: .76rem; }
.s2-choice-list { display: grid; gap: 7px; margin: 18px 0 12px; }
.s2-choice { width: 100%; min-height: 42px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--s2-border); border-radius: 6px; background: transparent; text-align: left; font-size: .84rem; cursor: pointer; transition: border-color var(--s2-motion) var(--s2-ease), background-color var(--s2-motion) var(--s2-ease); }
.s2-choice::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border: 1px solid var(--mute); border-radius: 50%; }
.s2-choice:hover, .s2-choice[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); }
.s2-choice[aria-pressed="true"]::before { border-color: var(--c); background: var(--c); }
.s2-result { min-height: 3.3em; margin-block: 10px 12px; color: var(--mute); font-size: .82rem; line-height: 1.45; }
.s2-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: end; }
.s2-offer h3 { max-width: 18ch; margin: 9px 0 8px; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.04; letter-spacing: -.045em; }
.s2-offer-copy { max-width: 54ch; color: var(--mute); font-size: .9rem; line-height: 1.5; }
.s2-offer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--mute); font-size: .78rem; }
.s2-offer-meta span { padding-top: 7px; border-top: 1px solid var(--s2-border); }
.s2-footer { padding-block: 20px 36px; border-top: 1px solid var(--s2-border); color: var(--mute); font-size: .78rem; }
.s2-noscript { margin: 14px 0; padding: 12px; border: 1px solid var(--s2-border); border-radius: var(--s2-radius); color: var(--paper); }

@supports (corner-shape: squircle) {
  .s2-card, .s2-control, .s2-btn, .s2-choice { corner-shape: squircle; }
}
@media (max-width: 720px) {
  .s2-wrap { width: min(100% - 32px, 560px); }
  .s2-form-layout { grid-template-columns: 1fr; }
  .s2-split { grid-template-columns: 1fr; }
  .s2-card { padding: 18px; }
  .s2-offer { grid-template-columns: 1fr; gap: 16px; }
  .s2-offer .s2-btn { justify-self: start; }
  .s2-section { padding-block: 24px 34px; }
}
@media (max-width: 420px) {
  .s2-wrap { width: min(100% - 28px, 380px); }
  .s2-topline-inner { min-height: 50px; }
  .s2-index { font-size: .64rem; }
  .s2-intro { padding-block: 40px 30px; }
  .s2 h1 { margin-block: 17px 12px; font-size: clamp(2.9rem, 14vw, 3.8rem); }
  .s2-demo-note { margin-top: 16px; }
  .s2-section-head { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
  .s2-fields { grid-template-columns: 1fr; gap: 10px; }
  .s2-inline { flex-direction: column; }
  .s2-inline .s2-btn { width: 100%; }
  .s2-choice-list { gap: 6px; margin-block: 13px 10px; }
  .s2-offer-meta { gap: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .s2 *, .s2 *::before, .s2 *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
