/* ============ Hoja de contenido ============ */
.sheet {
  position: relative; z-index: 3; background: var(--paper);
  margin-top: calc(var(--r-sheet) * -1);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -24px 60px -30px rgba(var(--shadow-tint), .45);
}
html.rm .sheet { margin-top: 0; border-radius: 0; box-shadow: none; }
.sec { padding-block: clamp(72px, 10vw, 136px); }
.sec + .sec { padding-top: 0; }
.sec--porque { padding-top: clamp(84px, 11vw, 152px); }

.sec__head h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.4rem); font-weight: 620; line-height: 1.1; letter-spacing: -0.028em; text-wrap: balance;
}
.lead { margin-top: 1rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.fine { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }

.wrap--split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .wrap--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
  .sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---- Por qué: filas ---- */
.rows li { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,101,238,.1); color: var(--blue-deep); }
.rows .badge .ico { width: 24px; height: 24px; }
.rows h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }
.rows p { margin-top: .5rem; color: var(--muted); max-width: 52ch; text-wrap: pretty; }

/* ---- Cómo funciona ---- */
.steps { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2.25rem; grid-template-columns: 1fr; counter-reset: paso; }
.steps li { position: relative; padding-top: 4.25rem; }
.steps li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 1.0625rem;
  background: var(--blue); color: #fff;
}
.steps li::after { content: ""; position: absolute; top: 24px; left: 64px; right: 16px; height: 1.5px; background: linear-gradient(90deg, var(--blue), rgba(1,101,238,0)); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.018em; }
.steps p { margin-top: .5rem; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
@media (max-width: 799px) {
  .steps li { padding: 0 0 0 4.25rem; }
  .steps li::after { top: 56px; bottom: -2rem; left: 23.25px; right: auto; width: 1.5px; height: auto; background: linear-gradient(var(--blue), rgba(1,101,238,0)); }
}

/* ---- Garantías (bento de 4) ---- */
.bento { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-surface); padding: clamp(1.5rem, 3vw, 2.25rem);
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  isolation: isolate;
}
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 620; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.tile p { font-size: 1rem; max-width: 34ch; }
.tile .ico { width: 30px; height: 30px; margin-bottom: auto; }
.tile--ink { background: linear-gradient(160deg, #0a1233 0%, var(--ink) 70%); color: #fff; }
.tile--ink p, .tile--blue p, .tile--img p { color: rgba(255,255,255,.88); }
.tile--ink .ico { color: var(--cyan); }
.tile--blue { background: linear-gradient(145deg, var(--blue), var(--blue-deep)); color: #fff; }
.tile--blue .ico { color: #fff; }
.tile--paper { background: #fff; color: var(--text); box-shadow: 0 0 0 1px rgba(var(--shadow-tint), .07); }
.tile--paper p { color: var(--muted); }
.tile--paper .ico { color: var(--blue); }
.tile--img { color: #fff; background: #1a2744 url("../img/edificio-dia.webp") 38% 78% / 230% auto no-repeat; }
.tile--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,3,8,.05) 20%, rgba(4,3,8,.82)); }
.tile--img .ico { color: #fff; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile { min-height: 280px; }
  .tile:nth-child(1) { grid-column: span 7; }
  .tile:nth-child(2) { grid-column: span 5; }
  .tile:nth-child(3) { grid-column: span 5; }
  .tile:nth-child(4) { grid-column: span 7; }
}

/* ---- Testimonios (oculto hasta que existan) ---- */
.quotes { margin-top: 2.5rem; display: grid; gap: 14px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border-radius: var(--r-surface); padding: 1.75rem; box-shadow: 0 0 0 1px rgba(var(--shadow-tint), .07); }
.quote blockquote { margin: 0; font-size: 1.0625rem; }
.quote figcaption { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; cursor: pointer; list-style: none;
  padding: 1.35rem 0; font-size: 1.125rem; font-weight: 560; letter-spacing: -0.01em; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--blue); transition: transform .35s var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .ans { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 56ch; animation: ans .4s var(--ease-out); }
@keyframes ans { from { opacity: 0; transform: translateY(-6px); } }
.faq summary:focus-visible { outline-offset: 2px; }

/* ---- Contacto + formulario ---- */
.sec--contacto { padding-bottom: clamp(88px, 11vw, 150px); }
.alt-contact { margin-top: 1.75rem; color: var(--muted); font-size: .9375rem; }
.alt-contact a { color: var(--blue-deep); font-weight: 560; }
.form {
  display: grid; gap: 1.25rem; background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-surface);
  box-shadow: 0 30px 70px -40px rgba(var(--shadow-tint), .5), 0 0 0 1px rgba(var(--shadow-tint), .07);
}
.field { display: grid; gap: .5rem; }
.field label { font-size: .9375rem; font-weight: 560; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 1rem; border-radius: var(--r-field);
  border: 1.5px solid var(--field-line); background: #fff; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: var(--ink); }
.field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1,101,238,.22); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .875rem; font-weight: 500; }
.field--check { grid-template-columns: 24px 1fr; column-gap: .75rem; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--blue); }
.field--check label { font-weight: 400; font-size: .9375rem; color: var(--muted); }
.field--check label a { color: var(--blue-deep); font-weight: 560; }
.field--check .err { grid-column: 2; }
.form__status { font-size: .9375rem; color: var(--muted); min-height: 1.4em; }
.form__status.is-ok { color: #0b6b3a; font-weight: 520; }
.form__status.is-err { color: var(--error); font-weight: 520; }

/* ---- Pie ---- */
.foot { background: var(--ink); color: #e8e9ef; padding-block: clamp(48px, 7vw, 88px) 28px; position: relative; z-index: 3; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot__brand { display: grid; gap: .75rem; align-content: start; }
.foot__brand img { border-radius: 50%; }
.foot__muted { color: #aab0c4; font-size: .9375rem; }
.foot__list { display: grid; gap: .6rem; align-content: start; font-size: .9375rem; }
.foot__title { font-weight: 600; color: #fff; margin-bottom: .25rem; }
.foot__list a { text-decoration: none; }
.foot__list a:hover { text-decoration: underline; }
.foot :focus-visible { outline-color: #fff; }

/* ---- Versión en texto ---- */
.plain { padding: calc(var(--header-h) + 3rem) 0 5rem; background: var(--paper); position: relative; z-index: 3; min-height: 100dvh; }
.plain .wrap { max-width: 800px; }
.plain h1 { font-size: 2rem; font-weight: 620; letter-spacing: -0.025em; line-height: 1.15; }
.plain h2 { margin-top: 2.5rem; font-size: 1.4rem; font-weight: 620; letter-spacing: -0.02em; }
.plain h3 { margin-top: 1.25rem; font-size: 1.0625rem; font-weight: 620; }
.plain p, .plain li { margin-top: .5rem; max-width: 68ch; }
.plain ul { list-style: disc; padding-left: 1.25rem; }
.plain .btn { margin-top: 1.5rem; }
body.is-text .descent, body.is-text .sheet { display: none; }

/* ---- Revelado suave ---- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
html.rm .rv, html:not(.js) .rv { opacity: 1; transform: none; transition: none; }

/* honeypot anti-spam: fuera de pantalla, invisible para personas */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
