/* Pompón, peluquería canina en Valencia.
   Harmony: TRIADIC (primary triad) taken straight from Karsten Winegeart's studio backdrops: sunflower yellow,
   cobalt blue and tomato red. Playful and warm like a toy box, with cobalt adding the trust a pet owner needs.
   Avoids the usual pastel paw-print look.
   60-30-10: milk #FFFBF2 (backgrounds) / cobalt #2A5CC8 + sunflower #FFC93C (sections, surfaces) / tomato #D1301F (badges, key marks)
   --milk   #FFFBF2  dominant
   --sun    #FFC93C  secondary surface
   --butter #FFE7A3  soft surface
   --cobalt #2A5CC8  secondary, buttons
   --tomato #D1301F  accent
   --ink    #1B2330  text
   --grey   #55606E  secondary text
   Contrast (WCAG): ink on milk 15.29:1, grey on milk 6.19:1, milk on cobalt 5.87:1 (buttons), ink on sun 10.28:1,
   white on tomato 5.06:1, ink on butter 12.94:1, milk on ink 15.29:1. */
:root {
  --milk: #FFFBF2;
  --sun: #FFC93C;
  --butter: #FFE7A3;
  --cobalt: #2A5CC8;
  --cobalt-2: #2250B3;
  --tomato: #D1301F;
  --pink: #F4A6C0;
  --green: #7CC47A;
  --ink: #1B2330;
  --grey: #55606E;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 1.075rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1rem; }
.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 99px; background: var(--cobalt); color: var(--milk); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 10px; }
.book :focus-visible { outline-color: var(--sun); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 1rem 1.7rem; border: 0; border-radius: 99px; background: var(--cobalt); color: var(--milk); font: 700 1.05rem/1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--bounce), box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--cobalt-2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--line { background: var(--milk); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.btn--line:hover { background: var(--butter); box-shadow: inset 0 0 0 2px var(--ink), 0 6px 0 var(--ink); }
.btn--full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem var(--gutter); background: rgba(255, 251, 242, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-scrolled { box-shadow: 0 2px 0 var(--ink); }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand__paw { width: 36px; height: 36px; fill: var(--tomato); transform: rotate(-14deg); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; }
.nav__links a { text-decoration: none; }
.nav__links a:not(.nav__cta):hover { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--sun); }
.nav__cta { padding: .7rem 1.2rem; border-radius: 99px; background: var(--sun); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.nav__cta:hover { background: #FFD45F; }
.nav__toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1320px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.hero__tag { display: inline-block; margin-bottom: 1.4rem; padding: .45rem .95rem; border-radius: 99px; background: var(--butter); font-weight: 500; font-size: .95rem; }
.hero h1 { font-size: clamp(3.3rem, 7.4vw, 6.8rem); line-height: .9; letter-spacing: -.05em; }
.hero__lede { max-width: 44ch; margin: 1.6rem 0 2rem; color: var(--grey); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tile { margin: 0; overflow: hidden; border-radius: var(--r); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--yellow { grid-row: 1 / 3; border-radius: 50% 50% var(--r) var(--r) / 150px 150px var(--r) var(--r); background: var(--sun); }
.tile--yellow img { aspect-ratio: 3 / 4.9; }
.tile--blue { background: var(--cobalt); border-radius: var(--r) var(--r) var(--r) 999px; }
.tile--blue img { aspect-ratio: 1 / 1; object-position: 50% 30%; }
.tile--red { position: relative; background: var(--tomato); }
.tile--red img { aspect-ratio: 1 / 1; }
.tile--note { position: absolute; }
.hero__tiles { position: relative; }
.tile--note { right: -12px; top: 42%; display: grid; place-content: center; width: 140px; height: 140px; margin: 0; padding: 1rem; border-radius: 50%; background: var(--tomato); color: #fff; text-align: center; font-size: .82rem; line-height: 1.2; transform: rotate(10deg); box-shadow: 0 4px 0 var(--ink); }
.tile--note strong { font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; }

@media (prefers-reduced-motion: no-preference) {
  .tile { animation: drop .8s var(--bounce) both; }
  .tile--blue { animation-delay: .12s; }
  .tile--red { animation-delay: .22s; }
  .tile--note { animation: stamp .6s .75s var(--bounce) both; }
  .hero__copy > * { animation: up .7s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; }
  .hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .hero__copy > *:nth-child(4) { animation-delay: .18s; }
}
@keyframes drop { from { opacity: 0; transform: translateY(40px) scale(.92); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-20deg) scale(.4); } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* Ribbon */
.ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.2rem; margin: 0; padding: 1.1rem var(--gutter); list-style: none; background: var(--ink); color: var(--milk); font-weight: 700; font-size: 1.05rem; }
.ribbon li { display: flex; align-items: center; gap: .6rem; }
.ribbon li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); }
.ribbon li:nth-child(3n+2)::before { background: var(--pink); }
.ribbon li:nth-child(3n)::before { background: #7FA5F0; }

/* Prices by size */
.prices { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.prices__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2.4rem; }
.prices__head p { max-width: 36ch; margin: 0; color: var(--grey); font-size: 1.1rem; }
.sizer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 36px; overflow: hidden; border: 2px solid var(--ink); }
.sizer__stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 480px; padding: 2rem 2rem 0; background: var(--sun); }
.sizer__label { display: grid; margin: 0; }
.sizer__label span { font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.sizer__label small { margin-top: .5rem; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.sizer__photo { flex: 1; min-height: 0; width: 100%; max-height: 300px; margin: 1.2rem 0; object-fit: cover; border-radius: 24px; }
.lineup { display: flex; align-items: flex-end; justify-content: space-between; gap: 3%; height: 190px; padding: 0 .5rem; border-bottom: 3px solid var(--ink); }
.pup { flex: 0 1 auto; min-width: 0; height: var(--h); aspect-ratio: 140 / 110; width: auto; fill: var(--milk); overflow: visible; transition: fill .35s, transform .5s var(--bounce); transform-origin: 50% 100%; }
.pup.is-on { fill: var(--cobalt); transform: translateY(-6px) scale(1.06); }
.sizer__panel { padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--milk); border-left: 2px solid var(--ink); }
.sizes { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin: 0 0 1.6rem; padding: 0; border: 0; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: grid; gap: .1rem; height: 100%; padding: .7rem .5rem; border-radius: 16px; background: var(--butter); text-align: center; font-size: .8rem; color: var(--grey); cursor: pointer; transition: background-color .2s, transform .2s var(--bounce); }
.sizes b { font-size: 1.02rem; color: var(--ink); }
.sizes span:hover { transform: translateY(-2px); }
.sizes input:checked + span { background: var(--cobalt); color: #DCE6FB; }
.sizes input:checked + span b { color: var(--milk); }
.sizes input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.menu { width: 100%; border-collapse: collapse; }
.menu th, .menu td { padding: .85rem 0; border-bottom: 2px dotted rgba(27, 35, 48, .25); vertical-align: top; }
.menu th { text-align: left; font-weight: 700; font-size: 1.12rem; }
.menu small { display: block; margin-top: .15rem; font-weight: 400; font-size: .9rem; color: var(--grey); }
.menu td { text-align: right; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.menu td.is-bump { animation: bump .4s var(--bounce); }
@keyframes bump { 40% { transform: scale(1.18); color: var(--tomato); } }
.menu__note { margin: 1.2rem 0 0; padding: .8rem 1rem; border-radius: 14px; background: #FDE2DE; font-size: .95rem; }

/* Visit */
.visit { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--cobalt); color: var(--milk); }
.visit__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.visit__photo { margin: 0; overflow: hidden; border-radius: 50% 50% 36px 36px / 190px 190px 36px 36px; background: var(--green); }
.visit__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.visit__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem 0 0; padding: 0; list-style: none; counter-reset: v; }
.visit__steps li { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.4rem; border-radius: 24px; background: rgba(255, 251, 242, .1); counter-increment: v; }
.visit__steps li::before { content: counter(v); position: absolute; left: 1.2rem; top: 1.25rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; }
.visit__steps h3 { margin-bottom: .3rem; }
.visit__steps p { margin: 0; color: #DCE6FB; }

/* Clients */
.clients { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.clients h2 { margin-bottom: 2.4rem; }
.clients__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pet { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 2px var(--ink); }
.pet:nth-child(odd) { transform: rotate(-1.5deg); }
.pet:nth-child(even) { transform: rotate(1.5deg) translateY(12px); }
.pet img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; }
.pet figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; padding: .8rem 1rem; font-size: .92rem; color: var(--grey); }
.pet b { color: var(--ink); font-size: 1.1rem; }
.pet--pink { background: #FBD3E0; }
.pet--yellow { background: var(--butter); }
.pet--blue { background: #D6E1F8; }
.pet--green { background: #D5EDD3; }

/* Booking */
.book { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--ink); color: var(--milk); }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.book__info > p { max-width: 36ch; margin: 1.2rem 0 2rem; color: #C9D0DA; font-size: 1.1rem; }
.info { display: grid; gap: 1rem; margin: 0; }
.info div { padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 251, 242, .07); }
.info dt { color: var(--sun); font-weight: 700; font-size: .95rem; }
.info dd { margin: .2rem 0 0; }
.form { display: grid; gap: 1.4rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 32px; background: var(--milk); color: var(--ink); }
.form__group { display: grid; gap: 1rem; margin: 0; padding: 0; border: 0; }
.form__group legend { margin-bottom: .8rem; padding: .3rem .8rem; border-radius: 99px; background: var(--sun); font-weight: 800; font-size: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input:not([type="checkbox"]):not([type="hidden"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: .55rem .95rem; border-radius: 99px; border: 2px solid var(--ink); font-size: .92rem; cursor: pointer; transition: background-color .2s; }
.chips input:checked + span { background: var(--butter); }
.chips input:checked + span::before { content: "✓ "; font-weight: 800; }
.chips input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.check { display: flex !important; align-items: flex-start; gap: .6rem !important; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--cobalt); }
.form__status { margin: 0; font-weight: 700; color: var(--cobalt); }

/* Footer */
.foot { padding: 2.6rem 0; background: var(--sun); font-size: .95rem; }
.foot__row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.foot__row p { margin: 0; }
.foot__brand { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; }

/* Responsive */
@media (max-width: 980px) {
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); cursor: pointer; }
  .nav__toggle span:not(.sr) { width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.5rem; background: var(--milk); box-shadow: 0 2px 0 var(--ink); transform: translateY(-130%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: .95rem 0; border-bottom: 2px dotted rgba(27, 35, 48, .2); font-size: 1.35rem; font-weight: 700; }
  .nav__links .nav__cta { margin-top: 1rem; text-align: center; border: 0; }
  .hero, .visit__grid, .book__grid { grid-template-columns: 1fr; }
  .sizer { grid-template-columns: minmax(0, 1fr); }
  .sizer__stage { min-height: 0; gap: 1.5rem; padding: 1.4rem 1.2rem 0; }
  .lineup { height: 120px; }
  .sizer__photo { display: none; }
  .sizer__panel { border-left: 0; border-top: 2px solid var(--ink); }
  .clients__row { grid-template-columns: 1fr 1fr; }
  .visit__photo { max-width: 380px; }
  .foot__row { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: 3.3rem; }
  .tile--note { width: 112px; height: 112px; right: -4px; font-size: .72rem; }
  .tile--note strong { font-size: 1.9rem; }
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sizes label:nth-child(n+4) { grid-column: span 1; }
  .visit__steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .menu td { font-size: 1.35rem; padding-left: .6rem; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
