/* ===== Paleta de marca Pet Shop ===== */
:root {
  --primary: #2E7D6B;       /* verde salvia: confianza, salud */
  --primary-dark: #22604F;
  --primary-soft: #E4F1EC;
  --accent: #F4A261;        /* durazno: calidez, cercanía */
  --accent-soft: #FDEEDF;
  --bg: #FFFBF6;            /* crema */
  --surface: #FFFFFF;
  --ink: #1E2B2F;
  --muted: #5B6A6E;
  --line: #ECE4D9;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(30, 43, 47, .18);
  --shadow-sm: 0 2px 10px -4px rgba(30, 43, 47, .12);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --accent-ink: #C46F2A;    /* durazno legible sobre fondo claro */
  --glass: rgba(255, 251, 246, .85);
  --map-bg: #DCEBE4;
  --map-road: #fff;
  --hover-line: #CFE3DB;
  color-scheme: light;
}

/* ===== Modo oscuro ===== */
:root[data-theme="dark"] {
  --primary: #3A9A82;
  --primary-dark: #2E7D6B;
  --primary-soft: #1D3A33;
  --accent-soft: #3A2A1D;
  --bg: #11181A;
  --surface: #1A2427;
  --ink: #E7EEEC;
  --muted: #9EB0B3;
  --line: #2A383B;

  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  --accent-ink: #F4A261;
  --glass: rgba(17, 24, 26, .85);
  --map-bg: #1D3A33;
  --map-road: #2A4A42;
  --hover-line: #2F5A4F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; margin-top: 40px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 2px solid transparent; border-radius: 999px;
  padding: .75em 1.4em; font-weight: 800; font-size: 1rem;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(46, 125, 107, .6); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { background: var(--accent-soft); }
.btn--sm { padding: .55em 1.1em; font-size: .95rem; }
.btn--lg { padding: .9em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.2rem; font-weight: 800; }
.brand__text small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; }
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }

/* ===== Hero ===== */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks .ico { color: var(--primary); stroke-width: 3; width: 1em; height: 1em; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.blob {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary-soft) 50%, var(--bg)), var(--primary-soft) 60%);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  display: grid; place-items: center;
  animation: morph 12s ease-in-out infinite;
}
.blob::after { content: ""; position: absolute; width: 26%; aspect-ratio: 1; right: -2%; top: 4%; border-radius: 50%; background: var(--accent-soft); z-index: -1; }
.blob__paw { width: 52%; height: 52%; fill: var(--primary); opacity: .9; }
@keyframes morph {
  50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; }
}
.float {
  position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700;
}
.float--slot { left: 0; bottom: 14%; }
.float--slot small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.float--slot strong { font-size: 1rem; }
.float__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.float--love { right: 0; top: 18%; color: var(--ink); font-size: .95rem; }
.float--love .ico { color: var(--accent); fill: var(--accent); }

/* ===== Secciones ===== */
.section { padding: 88px 0; }
.section--soft { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2, .visit h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section__sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Tarjetas de servicio */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 10px; }
.card__icon .ico { width: 26px; height: 26px; }
.card:nth-child(even) .card__icon { background: var(--accent-soft); color: var(--accent-ink); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__link { align-self: flex-start; background: none; border: 0; padding: 6px 0 0; color: var(--primary); font-weight: 800; }
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { text-align: center; padding: 8px 16px; position: relative; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800;
  background: var(--primary); color: #fff; position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--primary-soft);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: calc(50% + 44px); right: calc(-50% + 44px);
  border-top: 2px dashed var(--line);
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* Equipo */
.member { text-align: center; padding: 12px; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff;
  background: var(--c); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent);
}
.member img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; }
.member h3 { font-size: 1.15rem; }
.member p { color: var(--muted); font-size: .95rem; }

/* Ubicación */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info strong { display: block; font-size: .95rem; }
.info li > span:last-child { color: var(--muted); }
.info li > span:last-child strong { color: var(--ink); }
.info__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.map {
  aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 14px; text-decoration: none;
  background:
    linear-gradient(90deg, transparent 48%, var(--map-road) 48%, var(--map-road) 52%, transparent 52%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 48%, var(--map-road) 48%, var(--map-road) 52%, transparent 52%) 0 0 / 120px 120px,
    var(--map-bg);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { width: 56px; height: 56px; fill: var(--accent); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.map .btn { box-shadow: var(--shadow-sm); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 600; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* CTA final */
.cta { padding: 0 0 88px; }
.cta__inner {
  background: var(--primary); color: #fff; border-radius: 32px; text-align: center;
  padding: 64px 24px; position: relative; overflow: hidden;
}
.cta__inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta__inner p { opacity: .9; margin: 12px 0 28px; font-size: 1.1rem; }
.cta__paw { position: absolute; width: 220px; height: 220px; right: -40px; bottom: -50px; fill: #fff; opacity: .08; transform: rotate(-20deg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.brand--small .brand__text strong { font-size: 1rem; color: var(--ink); }

.mobile-cta { display: none; }

/* ===== Agendador ===== */
.booking {
  border: 0; padding: 0; border-radius: 24px; width: min(520px, 100% - 24px);
  max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(30, 43, 47, .45);
}
.booking::backdrop { background: rgba(30, 43, 47, .45); backdrop-filter: blur(3px); }
.booking[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.booking__form { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.booking__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.booking__kicker { font-size: .8rem; font-weight: 800; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; }
.booking h2 { font-size: 1.45rem; margin-top: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--line); }
.progress { height: 6px; background: var(--primary-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--primary); border-radius: inherit; transition: width .3s; }

.options { display: grid; gap: 10px; }
.option { position: relative; }
.option input, .slot input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, background .15s;
}
.option label:hover { border-color: var(--hover-line); }
.option .card__icon { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.option .card__icon .ico { width: 20px; height: 20px; }
.option strong { display: block; font-size: 1rem; }
.option small { color: var(--muted); font-size: .85rem; }
.option input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.option input:focus-visible + label, .slot input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; }
.field em { font-style: normal; font-weight: 600; color: var(--muted); }
.field__label { font-weight: 700; font-size: .92rem; margin-bottom: -8px; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; padding: 2px; }
.slot label {
  display: block; text-align: center; padding: 10px 4px; border: 2px solid var(--line); border-radius: 10px;
  font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.slot label:hover { border-color: var(--hover-line); }
.slot input:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
.hint { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; background: var(--bg); padding: 14px; border-radius: 10px; text-align: center; }

.summary { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 4px; font-size: .95rem; }
.summary div { display: flex; gap: 8px; align-items: center; }
.summary .ico { color: var(--primary); }

.error { color: #B4432B; font-weight: 700; font-size: .92rem; min-height: 0; }
.error:empty { display: none; }
.booking__nav { display: flex; justify-content: space-between; gap: 12px; }
.booking__nav .btn--primary { flex: 1; }
.booking__nav[hidden], .progress[hidden] { display: none; }
.booking__nav.is-first #backBtn { visibility: hidden; position: absolute; }

.pane--done { text-align: center; padding: 12px 0 4px; display: grid; justify-items: center; gap: 10px; }
.pane--done[hidden] { display: none; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 6px; }
.done__icon .ico { width: 36px; height: 36px; stroke-width: 3; }
.pane--done h3 { font-size: 1.4rem; }
.pane--done p { color: var(--muted); margin-bottom: 12px; max-width: 36ch; }
.pane { display: grid; gap: 16px; }
.pane[hidden] { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
  .theme-toggle { margin-left: auto; }
  .hero { padding: 32px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .ticks { justify-content: center; }
  .hero__art { max-width: 340px; order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .header .btn { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .grid--3 { grid-template-columns: 1fr; }
  .card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 20px; }
  .card__icon { margin: 0; }
  .card h3 { flex: 1; }
  .card p, .card__link { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
  .hero__actions .btn { flex: 1; }
  .hero__art { max-width: 270px; }
  .float { padding: 9px 12px; }
  .team { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .avatar, .member img { width: 84px; height: 84px; font-size: 1.4rem; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
  .member h3 { font-size: .95rem; }
  .member p { font-size: .8rem; }
  .cta { padding-bottom: 48px; }
  .cta__inner { border-radius: 24px; padding: 48px 20px; }
  .footer__inner { justify-content: center; text-align: center; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.is-visible { transform: none; }
  .booking { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .booking__form { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .row { grid-template-columns: 1fr; }
}

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