/* ============ Fuentes ============ */
@font-face { font-family: "Bricolage Grotesque"; src: url("bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("hanken.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ============ Mundo: mapa del barrio ============ */
:root {
  --street: #0b3f33;      /* calzada: el suelo del mapa */
  --block: #135a47;       /* manzana */
  --block-2: #18694f;
  --park: #2f9468;        /* parque */
  --deep: #083228;
  --marigold: #ffc93c;    /* la ruta de vuelta */
  --marigold-d: #d99a1f;
  --coral: #ff6a55;       /* la clínica */
  --coral-d: #d9432f;
  --sky: #9fdcec;         /* mar */
  --chalk: #f4f7f0;       /* placas de calle */
  --mint: #dcf1e3;
  --ink: #0b2e26;
  --ink-soft: #2f5a4e;

  --display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1180px, 100% - clamp(2.5rem, 7vw, 6rem));
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; scrollbar-color: var(--marigold) var(--deep); scrollbar-width: thin; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--street); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--marigold); color: var(--ink); }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: var(--deep); } ::-webkit-scrollbar-thumb { background: var(--marigold); border-radius: 8px; border: 3px solid var(--deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; font-stretch: 92%; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .09em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible, .cal :focus-visible, .nav :focus-visible, .gap :focus-visible, .calc :focus-visible, .faq :focus-visible { outline-color: var(--ink); }
input, textarea, button { font: inherit; color: inherit; caret-color: var(--coral); }
.wrap { width: var(--wrap); margin-inline: auto; }
.note { font-size: .9rem; color: var(--ink-soft); max-width: 54ch; }
.note--dark { color: rgba(244, 247, 240, .78); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--marigold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ============ Placas y botones ============ */
.plaque { display: inline-flex; align-items: center; gap: .55rem; background: var(--chalk); color: var(--ink); font-weight: 650; text-decoration: none; padding: .62rem 1rem; border-radius: 10px; box-shadow: 0 2px 0 rgba(8, 50, 40, .22), 0 10px 22px -12px rgba(8, 50, 40, .55); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s; }
.plaque svg { width: 1.05em; height: 1.05em; flex: none; }
.plaque:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 4px 0 rgba(8, 50, 40, .2), 0 18px 28px -14px rgba(8, 50, 40, .6); }
.plaque:active { transform: translateY(1px); }
.btn { display: inline-flex; align-items: center; gap: .65rem; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; padding: .95rem 1.45rem; border-radius: 12px; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .2s; }
.btn svg { width: 1.3em; height: 1.3em; }
.btn--coral { background: var(--coral); color: var(--deep); box-shadow: 0 3px 0 var(--coral-d), 0 16px 30px -14px rgba(0, 0, 0, .6); }
.btn--coral:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--coral-d), 0 24px 36px -16px rgba(0, 0, 0, .65); }
.btn--coral:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-d); }
.btn--coral[disabled] { background: #d98a79; color: var(--deep); box-shadow: 0 3px 0 #a66555; cursor: progress; transform: none; }
.btn--marigold { background: var(--marigold); color: var(--ink); box-shadow: 0 3px 0 var(--marigold-d), 0 16px 30px -16px rgba(0, 0, 0, .6); }
.btn--marigold:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--marigold-d), 0 22px 34px -16px rgba(0, 0, 0, .6); }
.btn--ink { background: var(--ink); color: var(--chalk); box-shadow: 0 3px 0 #041a15, 0 16px 28px -16px rgba(0, 0, 0, .5); }
.btn--ink:hover { transform: translateY(-3px); box-shadow: 0 6px 0 #041a15, 0 22px 32px -16px rgba(0, 0, 0, .55); }
.btn:active { transform: translateY(2px); }
.link-arrow { color: var(--chalk); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .2rem; background: linear-gradient(var(--marigold), var(--marigold)) 0 100% / 100% 2px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.link-arrow::after { content: ""; width: .55em; height: .55em; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: 100% 100%; color: var(--ink); }
.link-arrow:hover::after { transform: rotate(45deg) translate(1px, 1px); }

/* ============ Navegación ============ */
.nav { position: fixed; z-index: 50; top: clamp(.6rem, 1.6vw, 1.1rem); left: 50%; translate: -50% 0; width: var(--wrap); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .5rem .45rem 1.1rem; background: rgba(244, 247, 240, .96); border-radius: 16px; box-shadow: 0 2px 0 rgba(8, 50, 40, .18), 0 18px 40px -22px rgba(4, 26, 21, .8); transition: transform .5s var(--ease); }
.nav--hidden { transform: translateY(-140%); }
.nav__name { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; text-decoration: none; }
.nav__mark { width: 1.5rem; height: 1.5rem; color: var(--coral); transition: transform .5s var(--ease); }
.nav__name:hover .nav__mark { transform: rotate(-12deg) scale(1.12); }
.nav__links { display: flex; gap: clamp(.9rem, 2.2vw, 1.9rem); font-weight: 600; font-size: .98rem; }
.nav__links a { text-decoration: none; padding: .4rem 0; background: linear-gradient(var(--coral), var(--coral)) 0 100% / 0 2.5px no-repeat; transition: background-size .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="true"] { background-size: 100% 2.5px; }
.plaque--call { background: var(--street); color: var(--chalk); box-shadow: none; font-variant-numeric: tabular-nums; }
.plaque--call svg { color: var(--marigold); }
.plaque--call:hover { background: var(--deep); box-shadow: none; }

/* ============ Hero ============ */
.hero { position: relative; min-height: clamp(620px, 100svh, 1040px); display: grid; align-items: center; background: var(--street); color: var(--chalk); overflow: hidden; isolation: isolate; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.hero__copy { position: relative; z-index: 1; width: var(--wrap); margin-inline: auto; padding-block: 7.5rem 5rem; pointer-events: none; }
.hero__copy > * { pointer-events: auto; width: fit-content; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.9rem); max-width: 9.5ch; font-weight: 800; font-stretch: 88%; }
.hero__sub { font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.5; max-width: 34ch; margin: 1.5rem 0 2.1rem; color: #d7e9de; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; }
.hero__count { margin: 1.6rem 0 0; font-size: .98rem; color: #bcd6c8; font-variant-numeric: tabular-nums; }
.hero__count strong { display: inline-block; min-width: 1.4ch; text-align: center; transform-origin: 50% 70%; font-family: var(--display); font-size: 1.7rem; color: var(--marigold); vertical-align: -.12em; margin-right: .45rem; }
.hero__count strong.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-6deg); } 100% { transform: scale(1); } }
.hero__hint { position: absolute; z-index: 1; right: clamp(1.2rem, 4vw, 3.5rem); bottom: clamp(1.2rem, 3.5vw, 2.4rem); margin: 0; background: var(--chalk); color: var(--ink); font-weight: 600; font-size: .92rem; padding: .5rem .9rem; border-radius: 9px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); transition: opacity .6s, transform .6s var(--ease); animation: nudge 2.6s var(--ease) infinite; }
.hero__hint.gone { opacity: 0; transform: translateY(10px); pointer-events: none; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 75% { translate: 0 -6px; } 88% { translate: 0 0; } }

/* Entrada del hero: el titular llega por palabras */
.hero h1 .w { display: inline-block; clip-path: inset(0 0 100% 0); transform: translateY(.35em) rotate(3deg); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { to { clip-path: inset(-10% -5% -15% -5%); transform: none; } }
.hero__sub, .hero__actions, .hero__count { animation: fadeUp .9s var(--ease) both; }
.hero__sub { animation-delay: .65s; } .hero__actions { animation-delay: .8s; } .hero__count { animation-delay: .95s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ============ Banda de calles ============ */
.band { background: var(--marigold); color: var(--ink); overflow: hidden; padding: .85rem 0; rotate: -1.2deg; margin: -1.2rem -2% -1.2rem; width: 104%; position: relative; z-index: 3; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.band__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: slide 38s linear infinite; font-family: var(--display); font-weight: 750; font-size: clamp(1.1rem, 1.9vw, 1.5rem); letter-spacing: -0.01em; text-transform: uppercase; font-stretch: 80%; }
.band:hover .band__track { animation-play-state: paused; }
.band__track i { width: .7em; height: .7em; background: var(--coral); border-radius: 50%; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ El hueco ============ */
.gap { background: var(--mint); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 10vw, 8rem); }
.gap__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.gap h2 { margin-bottom: 1.8rem; max-width: 14ch; }
.gap strong { background: linear-gradient(var(--marigold), var(--marigold)) 0 88% / 100% .42em no-repeat; font-weight: 700; }
.dots { display: grid; grid-template-columns: repeat(13, 1fr); gap: clamp(.35rem, .9vw, .7rem); }
.dot { aspect-ratio: 1; position: relative; scale: 0; transition: scale .6s var(--ease), translate .4s var(--ease); transition-delay: calc(var(--i) * 9ms); }
.in .dot { scale: 1; }
.dot svg { width: 100%; height: 100%; display: block; }
.dot--off { color: #5f9a7d; } .dot--on { color: var(--coral-d); }
.dot:hover { translate: 0 -4px; transition-delay: 0s; }
.dot--on { animation: wiggle 2.8s var(--ease) infinite; animation-delay: calc(var(--i) * 40ms); }
@keyframes wiggle { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -14deg; } 88% { rotate: 12deg; } }
.legend { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .98rem; }
.legend li { display: flex; align-items: center; gap: .5rem; }
.legend__sw { width: .95rem; height: .95rem; border-radius: 50%; }
.legend__sw--off { background: #5f9a7d; } .legend__sw--on { background: var(--coral-d); }

/* ============ Cómo funciona ============ */
.how { background: var(--street); color: var(--chalk); padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(5rem, 10vw, 9rem); position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M30 12h80l18 18v80l-18 18H30l-18-18V30z' fill='%23135a47'/%3E%3C/svg%3E") 0 0 / 140px 140px; opacity: .5; rotate: -18deg; scale: 1.9; pointer-events: none; mask-image: linear-gradient(90deg, transparent 0 46%, #000 86%); -webkit-mask-image: linear-gradient(90deg, transparent 0 46%, #000 86%); }
.how .wrap { position: relative; }
.how h2 { max-width: 13ch; }
.how__lead { color: #cfe5d9; font-size: 1.2rem; margin: 1.2rem 0 clamp(2.5rem, 6vw, 4.5rem); }
.route { position: relative; }
.route__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route__base { fill: none; stroke: #1c7257; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.route__line { fill: none; stroke: var(--marigold); stroke-width: 5; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 13 10; }
.route__notch { fill: var(--marigold); }
.route__walker { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); will-change: transform; }
.route__walker svg { width: 100%; height: 100%; animation: trot .5s ease-in-out infinite alternate; transition: scale .5s var(--ease), opacity .4s; }
.route__walker.arrived svg { scale: .2; opacity: 0; }
.stop.on .stop__pin.stop__pin--home { scale: 1.9; }
@keyframes trot { to { transform: translateY(-4px) rotate(4deg); } }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.stop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative; }
.stop__card { background: var(--chalk); color: var(--ink); padding: clamp(1.3rem, 2.4vw, 2rem) clamp(1.3rem, 2.6vw, 2.2rem); border-radius: var(--r); max-width: 27rem; box-shadow: 0 3px 0 rgba(4, 26, 21, .35), 0 30px 50px -30px rgba(0, 0, 0, .75); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js .stop:not(.on) .stop__card { opacity: .35; transform: translateY(26px) scale(.96); }
.stop__card h3 { margin-bottom: .55rem; }
.stop__card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.stop:nth-child(odd) .stop__card { grid-column: 1; justify-self: end; margin-right: clamp(2.5rem, 6vw, 5rem); transform-origin: right center; }
.stop:nth-child(even) .stop__card { grid-column: 2; margin-left: clamp(2.5rem, 6vw, 5rem); transform-origin: left center; }
.stop.on .stop__card { opacity: 1; transform: none; }
.stop:nth-child(odd).on .stop__card { rotate: -1.2deg; } .stop:nth-child(even).on .stop__card { rotate: 1deg; }
.stop__pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: var(--street); box-shadow: inset 0 0 0 6px #1c7257; transition: background-color .4s, box-shadow .4s, scale .6s var(--ease); z-index: 1; }
.stop.on .stop__pin { background: var(--marigold); box-shadow: 0 6px 10px -4px rgba(4, 26, 21, .6); scale: 1.3; }
.stop.on .stop__pin--home { background: var(--coral); box-shadow: 0 6px 10px -4px rgba(4, 26, 21, .6); border-radius: 8px; rotate: 45deg; }

/* ============ Calendario ============ */
.cal { background: var(--marigold); color: var(--ink); padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.cal__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.cal h2 { max-width: 15ch; }
.petname { display: grid; gap: .4rem; font-weight: 650; }
.petname input { background: var(--chalk); border: 0; border-radius: 10px; padding: .7rem 1rem; width: 14rem; font-family: var(--display); font-size: 1.25rem; font-weight: 700; box-shadow: 0 2px 0 rgba(11, 46, 38, .16), 0 12px 22px -16px rgba(11, 46, 38, .7); }
.petname input:focus-visible { outline-offset: 2px; }
.cal__body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.month { border: 0; cursor: pointer; background: rgba(11, 46, 38, .09); color: var(--ink); border-radius: 10px; padding: .85rem .6rem .8rem; text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; transition: background-color .25s, color .25s, transform .4s var(--ease), box-shadow .4s var(--ease); display: grid; gap: .25rem; }
.month small { font-family: var(--body); font-weight: 500; font-size: .8rem; line-height: 1.25; }
.month:hover { background: rgba(11, 46, 38, .17); transform: translateY(-2px); }
.month[aria-selected="true"] { background: var(--ink); color: var(--chalk); transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 14px 22px -14px rgba(11, 46, 38, .9); }
.mail { background: var(--chalk); border-radius: 18px; padding: clamp(1.3rem, 2.8vw, 2.3rem); box-shadow: 0 4px 0 rgba(11, 46, 38, .16), 0 40px 60px -36px rgba(11, 46, 38, .8); position: relative; rotate: .8deg; transition: rotate .6s var(--ease); }
.mail.swap { animation: deal .65s var(--ease); }
@keyframes deal { 0% { opacity: 0; transform: translateY(26px) rotate(-3deg) scale(.97); filter: blur(5px); } 100% { opacity: 1; transform: none; filter: none; } }
.mail__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; color: var(--ink-soft); padding-bottom: 1rem; margin-bottom: 1.2rem; box-shadow: 0 1px 0 rgba(11, 46, 38, .12); }
.mail__from { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.mail__avatar { width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--coral) linear-gradient(var(--chalk), var(--chalk)) center / 55% 18% no-repeat; position: relative; }
.mail__avatar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--chalk), var(--chalk)) center / 18% 55% no-repeat; }
.mail__tag { background: var(--mint); color: var(--ink); font-weight: 650; padding: .2rem .65rem; border-radius: 20px; white-space: nowrap; }
.mail__subject { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.025em; }
.mail__subject mark, .mail__text mark { background: linear-gradient(var(--marigold), var(--marigold)) 0 85% / 100% .45em no-repeat; color: inherit; }
.mail__text { color: var(--ink-soft); max-width: 52ch; }
.mail__cta { display: inline-block; background: var(--coral); color: var(--deep); font-family: var(--display); font-weight: 700; padding: .65rem 1.2rem; border-radius: 10px; margin: .4rem 0 1.4rem; }
.mail__foot { font-size: .84rem; color: var(--ink-soft); margin: 0; }

/* ============ Tus números ============ */
.calc { background: var(--mint); padding: clamp(5rem, 10vw, 8.5rem) 0; }
.calc__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.calc h2 { margin-bottom: 1.2rem; }
.field { margin-top: 1.6rem; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; margin-bottom: .5rem; }
.field output { font-family: var(--display); font-weight: 750; font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2.2rem; background: transparent; cursor: grab; --p: 50%; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: .7rem; border-radius: 1rem; background: linear-gradient(90deg, var(--street) var(--p), #6a9c83 var(--p)); }
input[type="range"]::-moz-range-track { height: .7rem; border-radius: 1rem; background: #6a9c83; }
input[type="range"]::-moz-range-progress { height: .7rem; border-radius: 1rem; background: var(--street); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.9rem; height: 1.9rem; margin-top: -.6rem; border-radius: 50%; background: var(--coral); border: 5px solid var(--chalk); box-shadow: 0 3px 0 rgba(11, 46, 38, .25), 0 8px 14px -6px rgba(11, 46, 38, .6); transition: scale .3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--coral); border: 5px solid var(--chalk); box-shadow: 0 3px 0 rgba(11, 46, 38, .25); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { scale: 1.18; }
.calc__street { background: var(--street); color: var(--chalk); border-radius: 22px; padding: clamp(1.6rem, 3.5vw, 3rem); box-shadow: 0 5px 0 var(--deep), 0 40px 60px -36px rgba(8, 50, 40, .9); position: relative; overflow: hidden; }
.calc__line { font-family: var(--display); font-weight: 650; font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin: 0; max-width: none; line-height: 1.15; }
.calc__line span { font-weight: 800; font-size: 1.9em; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; margin-right: .2em; }
.calc__line--big span { color: var(--marigold); font-size: 2.9em; }
.calc__pets { display: flex; flex-wrap: wrap; gap: 5px; margin: 1.3rem 0 1.5rem; min-height: 4.4rem; align-content: flex-start; }
.calc__pets i { width: 15px; height: 15px; border-radius: 50%; background: #2a7a5f; transition: background-color .5s, scale .5s var(--ease); }
.calc__pets i.back { background: var(--marigold); scale: 1.25; }
.calc__money { font-size: 1.2rem; margin: .9rem 0 .5rem; color: #d7e9de; }
.calc__money strong { font-family: var(--display); color: var(--chalk); font-size: 1.5em; font-variant-numeric: tabular-nums; }

/* ============ Quién soy ============ */
.about { background: var(--street); color: var(--chalk); padding: clamp(5rem, 10vw, 8.5rem) 0 0; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.about__text { padding-bottom: clamp(4rem, 8vw, 7rem); }
.about h2 { margin-bottom: 1.5rem; max-width: 13ch; }
.about__text > p { color: #d7e9de; font-size: 1.14rem; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 2.4rem; display: grid; gap: .7rem; }
.facts li { position: relative; padding-left: 2.1rem; color: #e4f0e8; max-width: 52ch; }
.facts li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--marigold); }
.facts li::after { content: ""; position: absolute; left: .34rem; top: .56em; width: .5rem; height: .28rem; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); rotate: -45deg; }
.pilot { background: var(--block); border-radius: 18px; padding: clamp(1.4rem, 2.8vw, 2.2rem); box-shadow: 0 3px 0 var(--deep), 0 30px 44px -30px rgba(0, 0, 0, .7); rotate: -.6deg; }
.pilot h3 { color: var(--marigold); margin-bottom: .6rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.pilot p { color: #e4f0e8; margin-bottom: 1.3rem; }
.dog { width: min(100%, 30rem); display: block; margin-inline: auto; overflow: visible; }
.dog__head { transform-origin: 260px 400px; transition: transform .5s var(--ease); }
.dog__ear { transition: transform .5s var(--ease); transform-box: fill-box; }
.dog__ear--l { transform-origin: 90% 5%; } .dog__ear--r { transform-origin: 10% 5%; }
.about__art:hover .dog__ear--l { transform: rotate(16deg); } .about__art:hover .dog__ear--r { transform: rotate(-16deg); }
.dog__pupil { transition: transform .18s ease-out; }
.dog__tag { transform-origin: 260px 432px; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

/* ============ Dudas ============ */
.faq { background: var(--sky); padding: clamp(5rem, 10vw, 8.5rem) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq h2 { position: sticky; top: 7rem; max-width: 10ch; }
.faq__list { display: grid; gap: .7rem; }
details { background: var(--chalk); border-radius: var(--r); box-shadow: 0 3px 0 rgba(11, 46, 38, .14); transition: box-shadow .4s var(--ease), translate .4s var(--ease); }
details:hover { translate: 0 -2px; box-shadow: 0 5px 0 rgba(11, 46, 38, .14), 0 22px 30px -24px rgba(11, 46, 38, .7); }
summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; letter-spacing: -0.015em; padding: 1.15rem 3.6rem 1.15rem 1.4rem; position: relative; border-radius: var(--r); }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 1.4rem; top: 50%; width: 1.05rem; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--coral-d); transition: rotate .45s var(--ease); }
summary::after { rotate: 90deg; }
details[open] summary::after { rotate: 0deg; }
details[open] summary::before { rotate: 180deg; }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }
.faq__a p { margin: 0; }
details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ============ Contacto ============ */
.contact { background: var(--coral); color: var(--deep); padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(7rem, 12vw, 10rem); position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; position: relative; z-index: 1; }
.contact h2 { max-width: 11ch; }
.contact__lead { font-size: 1.2rem; margin: 1.3rem 0 1.6rem; max-width: 36ch; }
.contact__phone { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1; letter-spacing: -0.035em; font-stretch: 85%; text-decoration: none; font-variant-numeric: tabular-nums; background: linear-gradient(var(--deep), var(--deep)) 0 100% / 0 .09em no-repeat; transition: background-size .6s var(--ease), translate .4s var(--ease); padding-bottom: .08em; }
.contact__phone:hover { background-size: 100% .09em; translate: 4px 0; }
.contact__ways { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.note-form { background: var(--chalk); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.3rem); box-shadow: 0 5px 0 var(--coral-d), 0 40px 60px -36px rgba(8, 50, 40, .85); rotate: 1.2deg; color: var(--ink); }
.note-form h3 { margin-bottom: 1.2rem; font-size: 1.6rem; }
.note-form__row { margin-bottom: 1.1rem; }
.note-form label { display: block; font-weight: 650; margin-bottom: .35rem; }
.note-form input, .note-form textarea { width: 100%; background: var(--mint); border: 0; border-radius: 10px; padding: .75rem .95rem; resize: vertical; box-shadow: inset 0 0 0 2px rgba(11, 46, 38, .1); transition: box-shadow .25s, background-color .25s; }
.note-form input:hover, .note-form textarea:hover { background: #cfeada; }
.note-form input:focus-visible, .note-form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: #fff; }
.note-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px var(--coral-d); }
.note-form__err { color: #a52a17; font-size: .92rem; font-weight: 600; margin: .4rem 0 0; }
.note-form__hint { font-size: .86rem; color: var(--ink-soft); margin: .9rem 0 0; }
.cat { position: absolute; right: clamp(1rem, 6vw, 7rem); bottom: -6px; width: clamp(9rem, 17vw, 15rem); transition: transform .7s var(--ease); transform: translateY(38%); }
.contact.in .cat { transform: translateY(0); }
.cat__pupil { transition: transform .18s ease-out; }

/* ============ Pie ============ */
.foot { background: var(--deep); color: #bcd6c8; padding: 1.6rem 0; font-size: .95rem; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; max-width: none; }
.foot a { text-decoration: none; background: linear-gradient(var(--marigold), var(--marigold)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.foot a:hover { background-size: 100% 2px; color: var(--chalk); }

/* ============ Revelados al hacer scroll (cada sección, el suyo) ============ */
.gap__text > *, .calc__controls > *, .about__text > *, .cal__head > *, .contact__grid > * { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .gap:not(.in) .gap__text > * { opacity: 0; transform: translateX(-26px); }
.js .calc:not(.in) .calc__controls > * { opacity: 0; transform: translateY(22px); }
.js .calc:not(.in) .calc__street { clip-path: inset(0 0 100% 0 round 22px); }
.calc__street { clip-path: inset(-90px -90px -110px -90px round 22px); transition: clip-path 1.1s var(--ease); }
.js .about:not(.in) .about__text > * { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js .about:not(.in) .dog { transform: translateY(40%); }
.dog { transition: transform 1.1s var(--ease); }
.js .cal:not(.in) .cal__head > * { opacity: 0; transform: translateY(20px); }
.js .cal:not(.in) .month { opacity: 0; transform: scale(.8) rotate(-6deg); }
.cal .month { transition-delay: calc(var(--i) * 35ms); }
.cal.in .month { transition-delay: 0s; }
.js .cal:not(.in) .mail { opacity: 0; transform: translateX(40px) rotate(5deg); }
.mail { transition: rotate .6s var(--ease), opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s; }
.js .contact:not(.in) .contact__grid > * { opacity: 0; transform: translateY(28px); }
.js .faq:not(.in) details { opacity: 0; transform: translateX(34px); }
.faq details { transition: box-shadow .4s var(--ease), translate .4s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); transition-delay: 0s, 0s, calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .gap__grid, .calc__grid, .about__grid, .faq__grid, .contact__grid, .cal__body { grid-template-columns: 1fr; }
  .faq h2 { position: static; max-width: none; }
  .hero { align-items: start; }
  .hero__copy { padding-block: 6.2rem clamp(420px, 52svh, 480px); }
  .hero { min-height: 0; }
  .hero h1 { max-width: 11ch; }
  .hero__sub { max-width: 30ch; }
  .hero__hint { left: 50%; right: auto; translate: -50% 0; white-space: nowrap; animation: none; }
  .months { grid-template-columns: repeat(4, 1fr); }
  .month small { display: none; }
  .month { text-align: center; padding: .75rem .3rem; font-size: .98rem; }
  .route__svg, .route__walker { display: block; }
  .stop { grid-template-columns: 1fr; padding-left: 3.2rem; }
  .stop:nth-child(odd) .stop__card, .stop:nth-child(even) .stop__card { grid-column: 1; justify-self: start; margin: 0; transform-origin: left center; max-width: none; }
  .stop__pin { left: 1rem; }
  .about__art { order: 2; }
  .about__text { padding-bottom: 1rem; }
  .dog { width: min(70%, 20rem); }
  .cat { right: 1rem; width: 8rem; }
  .petname input { width: 100%; }
  .petname { width: 100%; }
}
@media (max-width: 520px) {
  .plaque--call span { display: none; }
  .plaque--call { padding: .7rem; }
  .dots { grid-template-columns: repeat(7, 1fr); gap: .55rem; }
  .months { grid-template-columns: repeat(3, 1fr); }
  .contact__phone { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .band { rotate: -2deg; }
}

/* ============ Menos movimiento ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .band__track { animation: none; }
  .hero h1 .w { clip-path: none; transform: none; animation: none; }
  .hero__sub, .hero__actions, .hero__count, .hero__hint { animation: none; }
  .stop__pin, .stop__card { transition: none; }
}
