/* RayoIA · Guía, hoja blanca
   Papel de guía telefónica, tinta negra, un resaltador amarillo.
   El verde de WhatsApp vive solo dentro del teléfono y en los botones que lo abren. */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(assets/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2f3f0;
  --paper-tint: #e6e8e3;
  --sheet: #fbfbf9;
  --ink: #111111;
  --ink-soft: #3d403b;
  --ink-inv: #f2f3f0;
  --ink-inv-soft: #c6c9c2;
  --hl: #b4efa0;
  --wa: #075e54;
  --wa-deep: #04433c;
  --wa-bubble: #d9fdd3;
  --wa-wall: #efe7dc;
  --wa-send: #00a884;
  --error: #b3261e;

  --rule: 6px;
  --hair: 1.5px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 136px);
  --out: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0;
  font: 400 1.0625rem/1.5 var(--font);
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--wa);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--hl); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .09em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sec--dark :focus-visible, .flow :focus-visible, .foot :focus-visible { outline-color: var(--hl); }
[id] { scroll-margin-top: 88px; }

.wrap { max-width: calc(1328px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2 { font-weight: 900; font-stretch: 84%; letter-spacing: -.03em; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: .93; }
h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: .98; }
h3 { font-size: 1.375rem; line-height: 1.12; font-weight: 800; font-stretch: 88%; letter-spacing: -.015em; }

/* ── Resaltador ── */
.link, .nav a, .dir a, .foot a, .faq summary > span {
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 62% / 0% 74%;
  transition: background-size .32s var(--out);
}
.link:hover, .nav a:hover, .dir a:hover, .faq summary:hover > span,
.link:focus-visible, .nav a:focus-visible, .dir a:focus-visible, .faq summary:focus-visible > span,
.faq details[open] summary > span { background-size: 100% 74%; }
.foot a { background-image: linear-gradient(var(--hl), var(--hl)); }
.foot a:hover, .foot a:focus-visible { background-size: 100% 74%; color: var(--ink); }

h1 em {
  font-style: normal; padding: 0 .09em; margin: 0 -.03em 0 -.09em;
  background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 58% / 100% 76%;
}
.anim h1 em { animation: swipe .7s .35s var(--out) backwards; }
@keyframes swipe { from { background-size: 0% 76%; } }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 16px 28px; border: 0; border-radius: 0;
  font: 800 1.125rem/1.1 var(--font); font-stretch: 96%; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--out), color .18s var(--out);
}
.btn .ico { width: 24px; height: 24px; flex: none; }
.btn--sm { min-height: 44px; padding: 10px 13px; font-size: .9375rem; gap: 7px; }
.btn--sm .ico { width: 20px; height: 20px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-deep); }
.btn--wa:active { background: var(--ink); }
.btn--dark { background: var(--ink); color: var(--ink-inv); }
.btn--dark:hover { background: #2c2e2a; }
.btn--dark:active { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.link { font-weight: 800; font-size: 1.0625rem; padding: 2px 3px; }

/* ── Encabezado ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--rule) solid var(--ink); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.0625rem; line-height: 1; font-weight: 500; font-stretch: 80%; letter-spacing: .01em; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 379.98px) { .logo svg { display: none; } }
.logo b { font-weight: 900; }
.nav { display: none; gap: 26px; margin-left: auto; font-size: .875rem; font-weight: 800; font-stretch: 88%; text-transform: uppercase; letter-spacing: .05em; }
.nav a { text-decoration: none; padding: 3px 3px; }
.top .btn { margin-left: auto; }

/* ── Hero ── */
.hero { padding: clamp(28px, 4vw, 52px) 0 0; overflow-x: clip; }
.hero__in { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.lead { font-size: 1.125rem; line-height: 1.5; max-width: 34em; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
/* Phone: the sticky top bar already carries the WhatsApp button. */
@media (max-width: 619.98px) { .hero__cta .btn { display: none; } }
.folio { margin-top: 20px; padding: 14px 0 16px; border-top: var(--hair) solid var(--ink); font-size: .8125rem; font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: .06em; }

/* ── Guía de rubros + aviso ── */
.side { display: grid; gap: 28px; align-content: start; }
.side__title { font-size: .9375rem; line-height: 1.25; font-weight: 800; padding-bottom: 10px; border-bottom: var(--hair) solid var(--ink); }
.dir { margin-top: 6px; font-size: clamp(1.3rem, 1.75vw, 1.55rem); line-height: 1.15; font-weight: 900; font-stretch: 76%; text-transform: uppercase; }
.dir li { position: relative; overflow: hidden; padding: 7px 26px 5px 0; }
.dir li::after, .listing h3::after, .faq summary::after {
  content: ""; display: inline-block; width: 100%; margin: 0 calc(2.6em - 100%) 0 .4em; border-bottom: 3px dotted currentColor;
}
.dir li::before {
  content: ""; position: absolute; right: 0; bottom: .42em; width: 26px; height: .8em;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat right center / .8em;
}
.dir li > span, .dir li > a, .listing h3 > span { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 62% / 0% 74%; transition: background-size .32s var(--out); }
.dir li:hover > span, .listing:hover h3 > span { background-size: 100% 74%; }
.dir a { text-decoration: none; }
.dir .dir__more { font-size: 1.0625rem; font-weight: 500; font-stretch: 100%; text-transform: none; padding-top: 12px; }
.dir .dir__more::after, .dir .dir__more::before { content: none; }

/* Al llegar desde «Rubros», el resaltador marca la columna. */
#rubros:target .side__title { background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 30% / 100% 62%; }
.anim #rubros:target .side__title { animation: swipe .6s var(--out) backwards; }
.anim #rubros:target .dir li > span, .anim #rubros:target .dir li > a { animation: pass 1.5s var(--out) backwards; }
.anim #rubros:target .dir li:nth-child(2) > * { animation-delay: .08s; }
.anim #rubros:target .dir li:nth-child(3) > * { animation-delay: .16s; }
.anim #rubros:target .dir li:nth-child(4) > * { animation-delay: .24s; }
.anim #rubros:target .dir li:nth-child(5) > * { animation-delay: .32s; }
.anim #rubros:target .dir li:nth-child(6) > * { animation-delay: .4s; }
.anim #rubros:target .dir li:nth-child(7) > * { animation-delay: .48s; }
@keyframes pass {
  0% { background-size: 0% 74%; background-position: 0 62%; }
  35%, 60% { background-size: 100% 74%; background-position: 0 62%; }
  61% { background-size: 100% 74%; background-position: 100% 62%; }
  100% { background-size: 0% 74%; background-position: 100% 62%; }
}

.notice { background: var(--hl); border: 3px solid var(--ink); padding: 18px 18px 20px; }
.ticks { display: grid; gap: 7px; font-size: .9375rem; line-height: 1.3; font-weight: 500; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .22em; width: .72em; height: .4em; border-left: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(-45deg); }
.ticks li:first-child { padding-left: 0; margin-bottom: 6px; font-size: 1.6rem; line-height: 1; font-weight: 900; font-stretch: 78%; text-transform: uppercase; }
.ticks li:first-child::before { content: none; }

/* ── Teléfono con WhatsApp ── */
.phone { width: min(100%, 340px); margin-inline: auto; }
.phone__body { padding: 10px; border-radius: 46px; background: var(--ink); box-shadow: 0 28px 38px -22px rgba(17, 17, 17, .55); }
.phone__screen { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 37px; background: var(--wa-wall); font-stretch: 100%; }
.phone__screen::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 9px; width: 88px; height: 25px; margin-left: -44px; border-radius: 14px; background: var(--ink); }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 15px 26px 14px; background: var(--wa); color: #fff; font-size: .8125rem; line-height: 1; font-weight: 700; }
.phone__status svg { width: 46px; height: 12px; }
.phone__bar { display: flex; align-items: center; gap: 9px; padding: 8px 12px 11px 8px; background: var(--wa); color: #fff; }
.phone__back { width: 22px; height: 22px; flex: none; }
.phone__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #dfe5e7; color: var(--wa); font-weight: 800; }
.phone__who { min-width: 0; margin-right: auto; }
.phone__who strong { display: block; font-size: 1rem; line-height: 1.15; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__who small { display: block; font-size: .75rem; line-height: 1.2; color: #d6ebe7; }
.phone__acts { width: 34px; height: 24px; flex: none; }
.phone__chat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  min-height: var(--chat-h, 462px); padding: 10px 10px 10px;
  background: var(--wa-wall) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%23dfd4c4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14h12v8h-7l-5 4z'/%3E%3Ccircle cx='60' cy='16' r='6'/%3E%3Cpath d='M57 16l2 2 4-4M14 58l5-9 5 9zM52 52h14v11H52zM52 56h14M36 34c3-4 9 0 6 4l-6 5-6-5c-3-4 3-8 6-4zM76 38l4 4m0-4l-4 4M30 76h10M35 71v10'/%3E%3C/g%3E%3C/svg%3E");
}
.phone--cabin .phone__chat { --chat-h: 512px; }
.msg {
  position: relative; max-width: 86%; padding: 7px 10px 7px; border-radius: 10px;
  font-size: .875rem; line-height: 1.36; color: #111b21; overflow-wrap: anywhere;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .14);
}
.msg[hidden] { display: none; }
.msg.is-wait { opacity: 0; }
.msg b { font-weight: 700; white-space: nowrap; }
.msg u { color: #02639a; white-space: nowrap; }
.msg time { float: right; margin: 7px 0 -2px 10px; font-size: .6875rem; line-height: 1; color: #55656e; font-variant-numeric: tabular-nums; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 0; transform-origin: 0 0; }
.msg--out { align-self: flex-end; background: var(--wa-bubble); border-top-right-radius: 0; transform-origin: 100% 0; }
.msg--out time::after { content: ""; display: inline-block; width: 15px; height: 9px; margin-left: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 9'%3E%3Cpath d='M1 5l2.6 2.6L9.4 1M6.2 7.2l.5.4L12.5 1' fill='none' stroke='%2353bdeb' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.msg--sys { align-self: center; display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 4px; padding: 7px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .75rem; line-height: 1.2; font-weight: 600; box-shadow: none; }
.msg--sys svg { width: 13px; height: 13px; flex: none; color: var(--hl); }
.msg--typing { position: absolute; right: 10px; display: flex; gap: 4px; padding: 11px 12px; }
.msg--typing i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #5d7a6c; animation: dot 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { top: 0; } 30% { top: -3px; } }
.is-live .msg:not(.is-wait):not(.msg--typing) { top: 0; animation: arrive .34s var(--out) backwards; }
@keyframes arrive { from { top: 10px; } }
.anim [data-chat]:not(.is-live) .msg ~ .msg { visibility: hidden; animation: late 0s 3s forwards; }
@keyframes late { to { visibility: visible; } }
.phone__input { display: flex; align-items: center; gap: 7px; padding: 6px 8px 14px; }
.phone__input span { flex: 1; padding: 11px 16px; border-radius: 22px; background: #fff; color: #667781; font-size: .875rem; line-height: 1.2; }
.phone__input svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--wa-send); color: #fff; }
.phone__note {
  align-self: center; margin-bottom: auto; padding: 5px 11px 6px; border-radius: 8px; background: #fff; color: #3b4a54;
  font-size: .75rem; line-height: 1; font-weight: 600; white-space: nowrap; box-shadow: 0 1px .5px rgba(11, 20, 26, .14);
}

/* ── Secciones ── */
.sec { padding: var(--sec) 0; }
.hero + .sec { padding-top: clamp(56px, 7vw, 104px); }
.sec--tint { background: var(--paper-tint); }
.sec--dark { background: var(--ink); color: var(--ink-inv); }
.sec__head { position: relative; display: grid; gap: 18px; padding-top: clamp(46px, 5vw, 68px); border-top: var(--rule) solid var(--ink); margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec__head > p:not(.tab) { font-size: 1.125rem; color: var(--ink-soft); max-width: 34em; }
.sec--dark .sec__head { border-color: var(--ink-inv); }
.tab {
  position: absolute; top: 0; right: 0; padding: 7px 12px 8px;
  background: var(--ink); color: var(--ink-inv);
  font-size: .8125rem; line-height: 1; font-weight: 800; font-stretch: 88%; text-transform: uppercase; letter-spacing: .07em;
}
.sec--dark .tab, .flow .tab { background: var(--ink-inv); color: var(--ink); }

/* ── Venta de punta a punta ── */
.flow { position: relative; display: grid; gap: 36px; padding: clamp(46px, 4vw, 56px) clamp(20px, 3vw, 44px) clamp(28px, 3.5vw, 48px); background: var(--ink); color: var(--ink-inv); }
.flow h3 { font-size: clamp(1.6rem, 2.9vw, 2.375rem); line-height: 1; font-weight: 900; font-stretch: 84%; letter-spacing: -.025em; }
.flow__text h3 + p { margin-top: 16px; color: var(--ink-inv-soft); max-width: 38em; }
.flow__steps { display: grid; counter-reset: f; }
.flow__steps li { counter-increment: f; position: relative; padding: 0 0 22px 52px; }
.flow__steps li:last-child { padding-bottom: 0; }
.flow__steps li::before {
  content: counter(f); position: absolute; z-index: 1; left: 0; top: -3px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--ink-inv); font-size: 1rem; line-height: 1; font-weight: 800;
}
.flow__steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 31px; bottom: -3px; border-left: 2px solid var(--ink-inv); }
.flow__steps b { display: block; font-size: 1.375rem; line-height: 1.1; font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.flow__steps span { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.4; color: var(--ink-inv-soft); }

/* ── Listados ── */
.listings { display: grid; margin-top: clamp(40px, 5vw, 72px); border-bottom: var(--hair) solid var(--ink); }
.listing { padding: 22px 0 30px; border-top: var(--hair) solid var(--ink); }
.listing h3 { position: relative; overflow: hidden; padding-right: 40px; text-wrap: wrap; }
.listing h3 svg { position: absolute; right: 0; bottom: 0; width: 38px; height: 30px; padding-left: 8px; background: var(--paper); }
.listing > p { margin-top: 12px; color: var(--ink-soft); max-width: 34em; }
.listing ul { margin-top: 16px; display: grid; gap: 8px; font-size: .9375rem; line-height: 1.4; font-weight: 500; }
.listing li { position: relative; padding-left: 18px; }
.listing li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--ink); }
.ask { position: relative; display: grid; gap: 14px; align-content: start; justify-items: start; margin-top: 8px; padding: 22px 22px 26px; }
.ask h3 { font-size: 1.6rem; line-height: 1.08; font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; }
.ask .btn { margin-top: 6px; }

/* ── Casos ── */
.cases { display: grid; border-bottom: var(--hair) solid var(--ink); }
.case { padding: 20px 0 28px; border-top: var(--hair) solid var(--ink); }
.case h3 { font-size: 1.6rem; line-height: 1.02; font-weight: 900; font-stretch: 78%; text-transform: uppercase; letter-spacing: 0; }
.case p { margin-top: 12px; font-size: 1.0625rem; max-width: 30em; }

/* ── Cabañas ── */
.cabin { display: grid; gap: 56px; }
.cabin .listings { margin-top: 0; }
.cabin__cta { margin-top: 32px; }

/* ── Pasos ── */
.steps { display: grid; counter-reset: paso; border-bottom: var(--hair) solid var(--ink-inv); }
.steps li { counter-increment: paso; padding: 22px 0 30px; border-top: var(--hair) solid var(--ink-inv); }
.steps li::before {
  content: counter(paso); display: block; width: fit-content; margin-bottom: 18px; padding: .06em .32em .08em;
  background: var(--hl); color: var(--ink);
  font-size: 2.25rem; line-height: 1; font-weight: 900; font-stretch: 84%;
}
.steps h3 { font-size: 1.6rem; line-height: 1.02; font-weight: 900; font-stretch: 80%; text-transform: uppercase; letter-spacing: 0; }
.steps p { margin-top: 12px; color: var(--ink-inv-soft); max-width: 28em; }

/* ── Preguntas ── */
.faqwrap { display: grid; }
.faq details { border-top: var(--hair) solid var(--ink); }
.faq details:last-child { border-bottom: var(--hair) solid var(--ink); }
.faq summary { position: relative; display: block; overflow: hidden; padding: 20px 36px 20px 0; cursor: pointer; list-style: none; font-size: 1.25rem; line-height: 1.2; font-weight: 800; font-stretch: 90%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { padding: 1px 3px; margin-left: -3px; }
.faq summary::before {
  content: ""; position: absolute; right: 0; bottom: 20px; width: 36px; height: 24px;
  background: linear-gradient(var(--ink), var(--ink)) right 0 center / 22px 4px no-repeat, linear-gradient(var(--ink), var(--ink)) right 9px center / 4px 22px no-repeat, var(--paper);
  transition: background-size .3s var(--out);
}
.faq details[open] summary::before { background-size: 22px 4px, 4px 0, auto; }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* ── Contacto: cupón ── */
.contact__in { display: grid; gap: 12px; }
.contact .sec__head { margin-bottom: 28px; }
.form { position: relative; display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); background: var(--sheet); border: 2.5px dashed var(--ink); }
.form__cut { position: absolute; left: 22px; top: -16px; width: 38px; height: 30px; padding: 0 5px; background: var(--paper-tint); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.form label { display: block; font-size: .9375rem; line-height: 1.2; font-weight: 800; }
.form small { font-weight: 500; font-size: inherit; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0;
  background: #fff; color: var(--ink); font: 500 1.0625rem/1.4 var(--font);
  transition: box-shadow .18s var(--out);
}
.form ::placeholder { color: #5b5f58; opacity: 1; }
.form select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23111' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hl), 0 0 0 6px var(--ink); }
.form [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 2px var(--error); }
.form__error { margin-top: -10px; font-size: .9375rem; font-weight: 700; color: var(--error); }
.form textarea { resize: vertical; }
.form .btn { margin-top: 6px; width: 100%; }

/* ── Pie ── */
.foot { padding: 28px 0; background: var(--ink); color: var(--ink-inv-soft); font-size: .9375rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: baseline; }
.foot b { color: var(--ink-inv); font-weight: 800; }
.foot a { font-weight: 800; color: var(--ink-inv); padding: 2px 3px; }

/* ── Desde 620px ── */
@media (min-width: 620px) {
  .top__in { gap: 28px; min-height: 64px; }
  .logo { font-size: 1.3rem; gap: 10px; }
  .btn--sm { padding: 10px 16px; }
  .side { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .listings, .cases, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings > *, .cases > *, .steps > li { padding-inline: 26px; border-left: var(--hair) solid var(--ink); }
  .steps > li { border-left-color: var(--ink-inv); }
  .listings > .ask { padding: 22px 26px 26px; border: 3px solid var(--ink); }
  .listings > .ask::before { content: ""; position: absolute; top: -25px; left: -29px; right: -3px; border-top: var(--hair) solid var(--ink); }
  .listings > .ask::after { content: ""; position: absolute; top: -25px; bottom: -33px; left: -29px; border-left: var(--hair) solid var(--ink); }
  .form { grid-template-columns: 1fr 1fr; }
  .form > label:nth-of-type(1), .form > label:nth-of-type(4), .form > .btn, .form__error { grid-column: 1 / -1; }
}
@media (min-width: 620px) and (max-width: 999.98px) {
  .listings > :nth-child(odd), .cases > :nth-child(odd), .steps > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .listings > :nth-child(even):not(.ask), .cases > :nth-child(even), .steps > li:nth-child(even) { padding-right: 0; }
  .listings > .ask { margin: 22px 0 30px 26px; }
}

/* ── Desde 800px: texto + teléfono ── */
@media (min-width: 800px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 4vw, 56px); row-gap: 26px;
    grid-template-areas: "h phone" "lead phone" "cta phone" "notice phone" "dir dir" "folio folio";
    grid-template-rows: auto auto auto 1fr auto auto;
  }
  .hero h1 { grid-area: h; align-self: end; }
  .hero .lead { grid-area: lead; }
  .hero__cta { grid-area: cta; align-self: start; }
  .phone--hero { grid-area: phone; width: clamp(320px, 36vw, 340px); transform: rotate(-2deg); margin-top: 6px; }
  .phone--hero .phone__chat { --chat-h: 500px; }
  .side { display: contents; }
  .side__dir { grid-area: dir; margin-top: 34px; }
  .hero .notice { grid-area: notice; align-self: start; justify-self: start; margin-top: 14px; }
  .folio { grid-area: folio; margin-top: 30px; }
  .dir { columns: 3; column-gap: 36px; }
  .dir li { break-inside: avoid; }
  .sec__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end; }
  .sec__head--solo, .sec__head--stack { grid-template-columns: minmax(0, 1fr); }
  .sec__head--solo h2 { max-width: 16em; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20px; }
  .flow__steps li { padding: 50px 0 0; }
  .flow__steps li::before { top: 0; }
  .flow__steps li:not(:last-child)::after { left: 34px; right: -20px; top: 16px; bottom: auto; border-left: 0; border-top: 2px solid var(--ink-inv); }
}

/* ── Desde 1000px ── */
@media (min-width: 1000px) {
  .nav { display: flex; }
  .top .btn { margin-left: 0; }
  .top__in { min-height: 72px; }
  .logo { font-size: 1.5rem; }
  .listings:not(.listings--two) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listings:not(.listings--two) > :nth-child(3n + 1), .listings--two > :nth-child(odd) { padding-left: 0; border-left: 0; }
  .listings:not(.listings--two) > :nth-child(3n):not(.ask), .listings--two > :nth-child(even) { padding-right: 0; }
  .listings > .ask { margin: 22px 0 30px 26px; }
  .cases, .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cases > :first-child, .steps > li:first-child { padding-left: 0; border-left: 0; }
  .cases > :last-child, .steps > li:last-child { padding-right: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .flow__text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 48px; align-items: end; }
  .flow__text h3 + p { margin-top: 0; }
  .cabin { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .phone--cabin { width: 340px; transform: rotate(2deg); position: sticky; top: 112px; margin-top: 40px; }
  .faqwrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .faqwrap .sec__head { position: sticky; top: 112px; margin-bottom: 0; }
  .contact__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .contact .sec__head { margin-bottom: 0; }
}

/* ── Desde 1240px: hoja completa, tres columnas ── */
@media (min-width: 1240px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr) auto clamp(244px, 20.5vw, 296px); column-gap: clamp(32px, 3.2vw, 56px);
    grid-template-areas: "h phone side" "lead phone side" "cta phone side" "folio folio folio";
    grid-template-rows: auto 1fr auto auto;
  }
  .phone--hero { width: clamp(320px, 25vw, 340px); }
  .hero h1 { align-self: start; margin-top: 18px; }
  .hero .lead { align-self: end; }
  .hero__cta { margin-bottom: 44px; }
  .dir { font-size: 1.375rem; }
  .phone--hero .phone__chat { --chat-h: 462px; }
  .side { display: grid; grid-area: side; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 20px; padding-left: 22px; border-left: var(--hair) solid var(--ink); }
  .side__dir { grid-area: auto; margin-top: 0; }
  .hero .notice { grid-area: auto; justify-self: stretch; margin-top: 0; }
  .dir { columns: 1; }
  .folio { margin-top: 44px; }
}

/* Pantallas bajas: el botón sube junto al texto para quedar a la vista. */
@media (min-width: 1240px) and (max-height: 840px) {
  .hero__in { grid-template-rows: auto auto 1fr auto; }
  .hero .lead { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
