/* ---------- Tokens ----------
   Paleta de colores planos: marco azul periwinkle, crema, rosa, celeste,
   verde salvia, mostaza, durazno y lila (el del gato del logo). */
:root {
  --frame: #6f8fe0;
  --cream: #f8efe7;
  --white: #ffffff;
  --pink: #f9b3d9;
  --pink-soft: #fcd5ea;
  --sky: #bcd4ee;
  --sage: #c6cf8b;
  --mint: #c9ddd1;
  --yellow: #e9c23a;
  --butter: #f6e29a;
  --peach: #fbc3a6;
  --lilac: #cbbcf2;
  --purple: #7466c0;
  --ink: #2b2118;
  --muted: #6b5e53;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Courier New", monospace;

  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 56px; }

body {
  margin: 0;
  padding: clamp(8px, 3.5vw, 48px) clamp(8px, 3.5vw, 48px) 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page { max-width: 1180px; margin: 0 auto; background: var(--cream); overflow-x: clip; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 30; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 100;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1, h2 { text-transform: lowercase; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); }

.eyebrow, .mono, .top-bar, .nav-band a, .pill, .chip, .photo-note, .ticker, .profile-card dt, .field label, .field legend, .check, .studio address, .footer-grid li, .copy, .arc-label text {
  font-family: var(--font-mono);
}
.eyebrow { margin: 0 0 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Barra, cabecera y nav ---------- */
.top-bar {
  margin: 0; padding: 8px var(--gutter); background: var(--pink); text-align: center;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 26px var(--gutter); background: var(--white);
}
.masthead-side {
  justify-self: start; text-decoration: none; display: inline-flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.masthead-right { justify-self: end; }
.squiggle-line { width: 84px; height: 8px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.5rem, 4.6vw, 2.5rem); text-decoration: none; letter-spacing: -0.01em;
}
.brand span { color: var(--purple); }
.brand i { font-style: normal; font-size: 0.6em; vertical-align: super; }

.nav-band { position: sticky; top: 0; z-index: 20; background: var(--sky); }
.nav-band ul {
  list-style: none; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; gap: clamp(18px, 4vw, 52px); width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.nav-band ul::-webkit-scrollbar { display: none; }
.nav-band a {
  white-space: nowrap; text-decoration: none; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-band a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- Botones (pills) ---------- */
.pill {
  display: inline-block; padding: 14px 30px; border: 2px solid transparent; border-radius: 999px;
  background: var(--mint); color: var(--ink); cursor: pointer; text-decoration: none;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill:hover { background: var(--pink); transform: translateY(-2px); }
.pill-outline { background: transparent; border-color: var(--ink); }
.pill-outline:hover { background: var(--ink); color: var(--cream); }
.pill-pink { background: var(--pink); }
.pill-pink:hover { background: var(--white); }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink:hover { background: var(--frame); color: var(--ink); }
.pill-blue { background: var(--frame); color: var(--white); }
.pill-blue:hover { background: var(--white); color: var(--ink); }

/* ---------- Figuras decorativas ---------- */
.shape { position: absolute; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: clamp(40px, 7vw, 88px) 0; position: relative; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-visual { position: relative; width: 210px; margin: 0 auto; padding: 40px 0; }
.hero-card { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--pink); }
/* El gato es más grande que el círculo y queda centrado sobre él */
.hero-card img { position: absolute; left: 50%; top: 50%; width: 130%; max-width: none; height: auto; margin-left: -65%; margin-top: -86%; animation: float 5s ease-in-out infinite; }
.hero-text { text-align: center; position: relative; z-index: 1; }
.hero-text .lead { max-width: 440px; margin: 0 auto 28px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.asterisk { right: 8%; bottom: 2%; width: 92px; height: 92px; display: none; }

@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---------- Bandas ---------- */
.band { padding: clamp(56px, 9vw, 104px) 0; }
.band-white { background: var(--white); }
.band-butter { background: var(--butter); }
.band-peach { background: var(--peach); }
.band-cream { background: var(--cream); }

.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head h2 { margin-bottom: 6px; }
.section-sub { margin: 0; color: var(--muted); }
.arc-label { display: block; width: 190px; height: 56px; margin: 0 auto 4px; overflow: visible; }
.arc-label text { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; fill: var(--ink); }

/* ---------- Trabajos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.chip {
  padding: 8px 16px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); cursor: pointer;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.chip:hover { background: var(--pink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chip .count { opacity: 0.55; margin-left: 6px; }

.works-grid { display: grid; gap: 32px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .works-grid { gap: 40px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 639px) { .work-frame { padding: 6px; } }
.work { margin: 0; text-align: center; }
.work button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-frame { display: block; padding: 10px; background: var(--mint); transition: transform 0.25s ease; }
.work:nth-child(6n+2) .work-frame { background: var(--lilac); }
.work:nth-child(6n+3) .work-frame { background: var(--pink); }
.work:nth-child(6n+4) .work-frame { background: var(--sky); }
.work:nth-child(6n+5) .work-frame { background: var(--peach); }
.work:nth-child(6n+6) .work-frame { background: var(--sage); }
.work button:hover .work-frame { transform: rotate(-1.6deg) scale(1.02); }
.work:nth-child(even) button:hover .work-frame { transform: rotate(1.6deg) scale(1.02); }
.work img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream); }

.more-link { text-align: center; margin: 56px 0 0; }

/* ---------- Cinta ---------- */
.ticker { background: var(--pink); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker span { padding: 14px 0; white-space: pre; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Mascotas ---------- */
.pets { display: grid; grid-template-columns: 1fr; background: var(--cream); }
.pets-text { padding: clamp(56px, 9vw, 104px) var(--gutter); display: flex; align-items: center; }
.pets-inner { max-width: 470px; margin: 0 auto; }
.pets-inner > p { color: var(--muted); }
.pets-steps { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.pets-steps li { display: flex; gap: 12px; align-items: center; }
.pets-steps b, .steps b {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); font-family: var(--font-mono); font-size: 0.8rem;
}
.pets-art { position: relative; background: var(--mint); min-height: 420px; overflow: hidden; display: grid; place-items: center; padding: 40px var(--gutter); }
.pets-loops { position: absolute; inset: 0; width: 100%; height: 100%; }
.pets-gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 470px); }
.pet { margin: 0; padding: 7px; background: var(--white); }
.pet img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pet:nth-child(1) { transform: rotate(-4deg); }
.pet:nth-child(2) { transform: translateY(-16px) rotate(2deg); }
.pet:nth-child(3) { transform: rotate(5deg); }

/* ---------- Sobre mí ---------- */
.profile { display: grid; gap: 48px; align-items: start; }
.profile-photo { position: relative; max-width: 400px; width: 100%; margin: 0 auto; }
.frame { margin: 0; padding: 12px; background: var(--lilac); }
.frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.asterisk-sm { right: -22px; top: -26px; width: 78px; height: 78px; z-index: 1; }
.photo-note { margin: 14px 0 0; text-align: center; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; }
.profile-intro { font-size: 1.15rem; }
.profile-body p { max-width: 560px; }
.profile-card { margin: 28px 0 0; background: var(--cream); padding: 6px 22px; }
.profile-card div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px dashed rgba(43, 33, 24, 0.18); }
.profile-card div:last-child { border-bottom: 0; }
.profile-card dt { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.profile-card dd { margin: 0; }

/* ---------- Reserva ---------- */
.booking { display: grid; gap: 44px; align-items: start; }
.booking-intro { position: relative; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.note { color: var(--muted); font-size: 0.95rem; }

.booking-form { display: grid; gap: 22px; grid-template-columns: 1fr; padding: clamp(22px, 4vw, 40px); background: var(--pink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(43, 33, 24, 0.45); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--frame); box-shadow: 0 2px 0 var(--frame); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { margin-bottom: 10px; padding: 0; }

.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input label { position: relative; }
.chips-input input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips-input span {
  display: inline-block; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: var(--white);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.chips-input input:checked + span { background: var(--ink); color: var(--cream); }
.chips-input input:focus-visible + span { outline: 3px solid var(--frame); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { font-weight: 700; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form-actions .small { margin: 0; }

/* ---------- Estudio ---------- */
.studio { display: grid; gap: 40px; align-items: center; }
.studio p { max-width: 480px; }
.studio address { font-style: normal; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; margin: 20px 0 4px; }
.studio .pill { margin-top: 12px; }
.studio-card { position: relative; background: var(--cream); aspect-ratio: 5 / 4; overflow: hidden; display: grid; place-items: center; text-align: center; }
.studio-card p { position: relative; margin: 0; font-family: var(--font-display); font-weight: 800; font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1; text-transform: lowercase; }
.s-sun { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); left: -8%; top: -14%; }
.s-half { position: absolute; width: 34%; height: 68%; background: var(--pink); border-radius: 999px 0 0 999px; right: 0; bottom: 0; }
.s-star { position: absolute; width: 22%; right: 10%; top: 8%; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-wrap h2 { text-align: center; margin-bottom: 32px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--sky); padding: 18px 24px; }
.faq details:nth-child(4n+2) { background: var(--pink); }
.faq details:nth-child(4n+3) { background: var(--mint); }
.faq details:nth-child(4n+4) { background: var(--butter); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-size: 1.6rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage); padding: clamp(48px, 8vw, 80px) 0 28px; }
.footer-grid { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 76px; height: auto; }
.ribbon {
  display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--pink); transform: rotate(-4deg);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.site-footer h3 { font-size: 1.35rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.site-footer li { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { margin: 44px 0 0; text-align: center; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Visor ---------- */
.lightbox { padding: 12px; border: 0; background: var(--lilac); max-width: min(92vw, 620px); color: var(--ink); }
.lightbox::backdrop { background: rgba(43, 33, 24, 0.7); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--cream); }
.lightbox p { margin: 10px 4px 2px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .hero-text { text-align: left; }
  .hero-text .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .asterisk { display: block; }
  .pets { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .booking { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .booking-form { grid-template-columns: 1fr 1fr; }
  .full { grid-column: 1 / -1; }
  .studio { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .masthead { grid-template-columns: 1fr; justify-items: center; padding: 18px var(--gutter); }
  .masthead-side { display: none; }
  .profile-card div { grid-template-columns: 1fr; gap: 2px; }
}

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

/* Páginas legales */
.legal { max-width: 740px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; text-transform: none; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal-back { margin-top: 40px; }
