/* Veterinaria de la Costa — el low-poly del logo: violeta, magenta, azul, naranja y teal */
:root {
  --bg: #f3f5fc;
  --ink: #1b1550;
  --ink-2: #3b3670;
  --mag: #d31d6c;
  --mag-d: #a81456;
  --blue: #2459d6;
  --orange: #ff7a30;
  --teal: #12897d;
  --teal-l: #2fc0b0;
  --violet: #5b2aa6;
  --card: #ffffff;
  --line: rgba(27, 21, 80, .12);
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --wrap: min(1220px, 100% - 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.08rem/1.6 var(--font); font-optical-sizing: auto; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.js .reveal { opacity: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 800; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mag); }
.eyebrow::before { content: ""; width: 14px; height: 14px; background: linear-gradient(135deg, var(--violet) 50%, var(--orange) 50%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.title { margin: 0; font-weight: 800; font-size: clamp(2.6rem, 5.8vw, 5.2rem); line-height: .98; letter-spacing: -.035em; }
.title em { font-style: normal; font-weight: 400; color: var(--violet); }
.head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.head > p:last-child:not(.eyebrow) { margin: 18px 0 0; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 16px; text-decoration: none; font-weight: 800; font-size: 1rem; line-height: 1.1; transition: background-color .2s, color .2s, translate .2s, box-shadow .2s; }
.btn:hover { translate: 0 -2px; box-shadow: 0 8px 18px rgba(27, 21, 80, .18); }
.btn--mag { background: var(--mag); color: #fff; }
.btn--mag:hover { background: var(--mag-d); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border: 2px solid var(--ink); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; border-radius: 12px; }

/* Header */
.top { position: fixed; inset: 10px 10px auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 8px 10px 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(27, 21, 80, .08); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .9rem; line-height: 1.05; }
.top__brand b { font-weight: 800; font-size: 1.05rem; color: var(--mag); }
.top__brand img { width: 46px; height: 46px; border-radius: 50%; }
.top__nav { margin-left: auto; display: flex; gap: 4px; }
.top__nav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.top__nav a:hover { background: var(--bg); color: var(--mag); }

/* HERO collage */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px 16px 60px; overflow: hidden; isolation: isolate; }
.poly { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__center { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; max-width: 780px; }
.hero__logo { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 10px 30px rgba(27, 21, 80, .16); margin-bottom: 18px; }
.hero__kicker { margin: 0 0 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .86rem; color: var(--blue); }
.hero__kicker span { color: var(--mag); }
.hero__title { margin: 0; font-weight: 800; font-size: clamp(3.4rem, 8.6vw, 8.4rem); line-height: .9; letter-spacing: -.05em; }
.hero__title span { display: block; background: linear-gradient(90deg, var(--violet), var(--mag) 45%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero__lead { margin: 18px 0 26px; font-size: 1.2rem; color: var(--ink-2); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.st { position: absolute; margin: 0; z-index: 1; overflow: hidden; box-shadow: 0 24px 50px rgba(27, 21, 80, .2); border: 6px solid #fff; }
.st img { width: 100%; height: 100%; object-fit: cover; }
.st--1 { width: clamp(150px, 17vw, 260px); aspect-ratio: 1; border-radius: 50%; left: 4%; top: 15%; rotate: -8deg; }
.st--2 { width: clamp(140px, 15vw, 230px); aspect-ratio: 1; border-radius: 34px; right: 5%; top: 19%; rotate: 7deg; }
.st--3 { width: clamp(170px, 19vw, 290px); aspect-ratio: 16 / 10; border-radius: 999px; left: 6%; bottom: 10%; rotate: 5deg; }
.st--4 { width: clamp(150px, 16vw, 240px); aspect-ratio: 1; right: 7%; bottom: 9%; border: 0; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); box-shadow: none; rotate: -6deg; }
.badge { position: absolute; z-index: 3; margin: 0; display: grid; place-items: center; text-align: center; border-radius: 50%; font-weight: 800; line-height: 1; }
.badge--rate { width: 96px; height: 96px; left: 19%; top: 50%; background: var(--orange); color: var(--ink); rotate: -12deg; }
.badge--rate b { font-size: 2rem; display: block; }
.badge--rate span { font-size: .78rem; }
.badge--km { width: 104px; height: 104px; right: 18%; top: 47%; background: var(--teal); color: #fff; rotate: 10deg; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.badge--km b { display: block; font-size: 1.3rem; letter-spacing: 0; text-transform: none; }

/* CLÍNICA */
.clinica { padding: clamp(90px, 11vw, 150px) 0; background: #fff; }
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.sv { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: 28px; overflow: hidden; display: grid; align-content: start; gap: 10px; min-height: 260px; }
.sv h3 { margin: 6px 0 0; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.02; letter-spacing: -.02em; }
.sv p { margin: 0; max-width: 40ch; }
.sv__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .22); }
.sv__ico svg { width: 32px; height: 32px; }
.sv::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: rgba(255, 255, 255, .12); clip-path: polygon(50% 0, 100% 100%, 0 100%); rotate: 20deg; }
.sv--a { grid-column: span 5; background: var(--violet); color: #fff; }
.sv--b { grid-column: span 7; background: var(--mag); color: #fff; }
.sv--c { grid-column: span 7; background: var(--blue); color: #fff; }
.sv--d { grid-column: span 5; background: var(--orange); color: var(--ink); }
.sv--d .sv__ico { background: rgba(27, 21, 80, .1); }
.sv__link { font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; justify-self: start; margin-top: 6px; }

/* TIPS */
.tips { padding: clamp(90px, 11vw, 140px) 0; background: var(--bg); overflow: hidden; }
.tips__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.tips__head p { margin: 0; color: var(--ink-2); }
.tips__head a { color: var(--mag); font-weight: 600; }
.tips__rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(24px, (100% - 1220px) / 2) 26px; scrollbar-width: thin; }
.tip { flex: none; width: clamp(260px, 26vw, 340px); scroll-snap-align: start; background: #fff; border-radius: 24px; padding: 12px 12px 22px; box-shadow: 0 14px 30px rgba(27, 21, 80, .08); }
.tip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.tip h3 { margin: 16px 10px 6px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.tip p { margin: 0 10px; font-size: .98rem; color: var(--ink-2); }

/* PET STORE (firma) */
.store { padding: clamp(90px, 11vw, 150px) 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.store::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -140px; background: var(--violet); opacity: .5; clip-path: polygon(50% 0, 100% 60%, 30% 100%); }
.head--light .title em { color: var(--teal-l); }
.head--light .eyebrow { color: #ff8fbd; }
.head--light > p:last-child:not(.eyebrow) { color: #d6d3f0; }
.store__grid { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.picker { display: grid; gap: 28px; }
.picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.picker legend { padding: 0; margin-bottom: 14px; font-weight: 800; font-size: 1.3rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .08); justify-self: start; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: #fff; font: 700 1rem var(--font); cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #d6d3f0; }
.field input { min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: 400 1rem var(--font); }
.field input::placeholder { color: #a9a5cc; }
.field input:focus { outline: none; border-color: var(--teal-l); }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14); cursor: pointer; transition: border-color .2s, background-color .2s; }
.prod:hover { border-color: rgba(255, 255, 255, .4); }
.prod input { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; accent-color: var(--mag); margin: 0; }
.prod b { display: block; font-weight: 800; font-size: 1.08rem; line-height: 1.15; padding-right: 30px; }
.prod small { display: block; margin-top: 4px; color: #c9c5ea; font-size: .88rem; line-height: 1.35; }
.prod img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.prod--img:nth-of-type(2) img { object-position: 50% 52%; }
.prod--img:nth-of-type(3) img { object-position: 50% 55%; }
.prod:has(input:checked) { border-color: var(--mag); background: rgba(211, 29, 108, .18); }
.prod:has(input:focus-visible) { outline: 3px solid var(--teal-l); outline-offset: 2px; }
.ticket { position: sticky; top: 100px; background: #fff; color: var(--ink); border-radius: 22px 22px 6px 6px; padding: 24px 24px 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  -webkit-mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 26px 100%; mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 26px 100%; }
.ticket__head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); font-size: .9rem; line-height: 1.2; }
.ticket__head img { width: 40px; height: 40px; border-radius: 50%; }
.ticket__head b { color: var(--mag); font-size: 1.05rem; }
.ticket__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-height: 90px; }
.ticket__list li { display: flex; gap: 10px; font-weight: 600; line-height: 1.3; }
.ticket__list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--teal); color: #fff; font-size: .8rem; }
.ticket__list .ticket__empty { color: #6d6994; font-weight: 400; }
.ticket__list .ticket__empty::before { content: none; }
.ticket__for { margin: 18px 0; padding-top: 14px; border-top: 2px dashed var(--line); font-weight: 600; color: var(--ink-2); }
.ticket__go { width: 100%; }
.ticket__go[aria-disabled="true"] { opacity: .5; }
.ticket__note { margin: 12px 0 0; font-size: .88rem; color: #5d5987; }

/* TURNOS */
.agenda { padding: clamp(90px, 11vw, 150px) 0; background: #fff; color: var(--ink);
  --tn-accent: var(--mag); --tn-on-accent: #fff; --tn-radius: 14px; --tn-font: var(--font); --tn-line: rgba(27, 21, 80, .18); --tn-card: var(--bg); }
.agenda__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.agenda__pic { margin: 30px 0 0; width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 0 0 3px var(--mag); }
.agenda__pic img { width: 100%; height: 100%; object-fit: cover; }
.agenda__box { padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--bg); }
.agenda .tn-step legend, .agenda .tn-name { color: var(--violet); }

/* FRASE */
.quote { position: relative; padding: clamp(90px, 12vw, 160px) 0; background: var(--teal); color: #fff; overflow: hidden; text-align: center; }
.pulse { position: absolute; left: 0; top: 50%; width: 100%; height: 120px; translate: 0 -50%; opacity: .25; }
.pulse path { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 0; }
.quote blockquote { position: relative; margin: 0 auto; max-width: 980px; }
.quote p { margin: 0 0 20px; font-weight: 800; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.03em; }
.quote footer { font-weight: 600; opacity: .9; }

/* DÓNDE */
.donde { padding: clamp(90px, 11vw, 150px) 0; background: var(--bg); }
.donde__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.donde__addr { margin: 20px 0 28px; font-size: 1.2rem; color: var(--ink-2); }
.donde__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cards-info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ci { padding: 22px; border-radius: 22px; min-height: 130px; display: grid; align-content: space-between; }
.ci dt { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.ci dd { margin: 0; font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.01em; }
.ci a { text-decoration: none; }
.ci--wa { background: var(--mag); color: #fff; }
.ci--tel { background: var(--violet); color: #fff; }
.ci--hr { background: #fff; color: var(--ink); }
.ci--hr dd { font-size: 1.1rem; }
.ci--gg { background: var(--orange); color: var(--ink); }

.foot { padding: 36px 0 110px; background: var(--ink); color: #d6d3f0; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot__in img { width: 56px; height: 56px; border-radius: 50%; }
.foot__in p { margin: 0; }
.foot__in strong { color: #fff; }
.foot__up { margin-left: auto; text-decoration: none; }
.dock { display: none; }

@media (max-width: 1100px) {
  .badge--rate { left: 8%; top: auto; bottom: 34%; }
  .badge--km { right: 6%; top: auto; bottom: 36%; }
}
@media (max-width: 900px) {
  .top__nav { display: none; }
  .top { justify-content: space-between; }
  .store__grid, .agenda__grid, .donde__grid { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .sv--a, .sv--b, .sv--c, .sv--d { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); }
  .top { inset: 8px 8px auto; }
  .top .btn { display: none; }
  .hero { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 12px 8px; padding: 92px 16px 48px; }
  .hero__center { flex: 1 1 100%; margin-bottom: 16px; }
  .hero__logo { width: 84px; height: 84px; }
  .hero__title { font-size: 15vw; }
  .hero__lead { font-size: 1.05rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .st { position: relative; inset: auto; width: 20vw !important; aspect-ratio: 1 !important; border-width: 4px; }
  .st--3 { border-radius: 50%; }
  .badge { display: none; }
  .prods { grid-template-columns: 1fr; }
  .tip { width: 78vw; }
  .agenda__pic { display: none; }
  .agenda__box { padding: 16px; }
  .cards-info { grid-template-columns: 1fr 1fr; }
  .ci { min-height: 110px; padding: 18px; }
  .ci dd { font-size: 1.15rem; }
  .foot__up { margin-left: 0; }
  .dock { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(27, 21, 80, .25); }
  .dock a { display: grid; place-items: center; min-height: 48px; border-radius: 13px; text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--ink); }
  .dock .dock__main { background: var(--mag); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
}
