@import url('/fonts/figtree/figtree.css');

/* Patitas Veterinaria — veterinaria de una página. Fondo blanco, verde bosque y un toque cálido. Todo en Figtree (redondeada, amable).
   Las fotos llevan el efecto de agua de barberia-onda (script.js dibuja un <canvas> sobre ellas). Los efectos solo corren fuera del editor
   (html.is-ed = editor: todo plano y editable). */

:root {
  --bg: #ffffff;
  --soft: #f1f6f3;
  --ink: #0f2a27;
  --mute: rgba(15, 42, 39, .66);
  --line: rgba(15, 42, 39, .13);
  --green: #0f8a68;
  --green-d: #0b6b51;
  --warm: #ff9a5c;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, button, input, select, textarea { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Alineación que elige el dueño (align-editor.ts) */
.tm-al-left { text-align: left; } .tm-al-center { text-align: center; } .tm-al-right { text-align: right; }

/* Titulares */
.h-xl, .h-lg, .hero-name { font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.h-xl { font-size: clamp(40px, 6vw, 84px); overflow-wrap: anywhere; }
.h-lg { font-size: clamp(36px, 5vw, 68px); overflow-wrap: anywhere; }
.label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--green); margin-bottom: 16px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--mute); max-width: 520px; margin-top: 18px; }
.note { font-size: 16px; color: var(--mute); margin-top: 16px; max-width: 460px; }
.hint { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }

/* Botones */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 2px solid currentColor; border-radius: 999px; font-size: 16px; font-weight: 700; overflow: hidden;
  transition: color .3s ease, transform .3s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--ink)); transform: translateY(101%); transition: transform .35s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--hover-ink, #fff); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-solid { color: #fff; background: var(--green); border-color: var(--green); --fill: var(--ink); }
.btn-solid:hover, .btn-solid:focus-visible { border-color: var(--ink); }
.btn-line { color: var(--ink); --fill: var(--ink); --hover-ink: #fff; }
.btn-glass { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); --fill: #fff; --hover-ink: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-white { color: var(--ink); background: #fff; border-color: #fff; --fill: var(--ink); }
.btn-white:hover, .btn-white:focus-visible { border-color: var(--ink); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-t { display: block; }

/* ─── Cabecera: píldora de vidrio claro ─── */
.pill { position: fixed; z-index: 50; top: 22px; --tm-nav-gap: 22px; left: 50%; transform: translateX(-50%); width: min(340px, calc(100% - 32px)); color: var(--ink); border-radius: 30px; overflow: hidden;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 30px rgba(15, 42, 39, .16), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.pill-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 24px; }
.pill-logo { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.pill-toggle { width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; place-content: center; }
.pill-toggle i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; transition: transform .35s var(--ease); }
.pill.is-open .pill-toggle i:nth-child(1) { transform: translate(2px, 2px); }
.pill.is-open .pill-toggle i:nth-child(2) { transform: translate(-2px, 2px); }
.pill.is-open .pill-toggle i:nth-child(3) { transform: translate(2px, -2px); }
.pill.is-open .pill-toggle i:nth-child(4) { transform: translate(-2px, -2px); }
.pill-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.pill.is-open .pill-menu { grid-template-rows: 1fr; }
.pill-menu > * { min-height: 0; overflow: hidden; }
.pill-menu nav { display: flex; flex-direction: column; padding: 4px 24px 0; }
.pill-menu nav a { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; min-height: 52px; display: flex; align-items: center; }
.pill-menu nav a:hover { color: var(--green); }
.pill-foot { display: flex; flex-direction: column; gap: 14px; padding: 18px 24px 22px; }
.pill-foot .btn { align-self: flex-start; }
.pill-status { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--mute); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #25c17a; flex: none; box-shadow: 0 0 0 0 rgba(37, 193, 122, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(37, 193, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 193, 122, 0); } }

/* Escritorio: barra centrada — dos enlaces, el logo al medio y dos enlaces (☰ por debajo de 1180 px) */
@media (min-width: 1180px) {
  .pill { display: flex; align-items: center; justify-content: center; width: auto; max-width: calc(100% - 40px); height: 60px; padding: 0 12px; }
  .pill-bar, .pill-menu, .pill-menu > *, .pill-menu nav { display: contents; }
  .pill-toggle, .pill-foot, .pill-menu nav a:first-child { display: none; }
  .pill-logo { order: 3; padding: 0 36px; font-size: 18px; }
  .pill-menu nav a { font-size: 16px; font-weight: 600; letter-spacing: 0; min-height: 44px; padding: 0 18px; color: var(--mute); }
  .pill-menu nav a:hover { color: var(--ink); }
  .pill-menu nav a:nth-child(2) { order: 1; } .pill-menu nav a:nth-child(3) { order: 2; }
  .pill-menu nav a:nth-child(4) { order: 4; } .pill-menu nav a:nth-child(5) { order: 5; }
}

/* ─── Foto con efecto de agua ─── */
.rp-in { position: absolute; inset: 0; overflow: hidden; }
.rp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rp-live { position: absolute; inset: 0; pointer-events: none; }
.rp-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.rp-cv.is-on { opacity: 1; }
.fx [data-rp] { cursor: crosshair; }

/* ─── Hero ─── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: clip; display: flex; align-items: flex-end; background: #cfdad6; color: #fff; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 31, 27, .18) 0%, rgba(8, 31, 27, 0) 26%, rgba(8, 31, 27, .22) 50%, rgba(8, 31, 27, .88) 100%); }
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px 36px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.kicker { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #bff0dc; margin-bottom: 10px; }
.hero-h { font-size: 0; line-height: 0; }
.hero-name { display: block; font-size: clamp(46px, 9vw, 132px); line-height: .96; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 22px; }
.hero-side { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.hero-lead { font-size: 21px; color: rgba(255, 255, 255, .92); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .hint { color: rgba(255, 255, 255, .78); }

/* ─── Secciones ─── */
.sec { padding: 110px 20px; max-width: 1440px; margin: 0 auto; }
.sec-soft { max-width: none; background: var(--soft); }
.sec-soft > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.sec-head { margin-bottom: 52px; }

.sv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.sv-head { position: sticky; top: 100px; }
.sv-ph { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 28px; margin-top: 36px; background: var(--soft); }
.svcs { border-top: 1px solid var(--line); }
.svc { padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc-top { display: flex; align-items: baseline; gap: 14px; }
.svc-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.svc-dots { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(15, 42, 39, .26); transform: translateY(-6px); }
.svc-price { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--green); white-space: nowrap; }
.svc-desc { margin-top: 6px; color: var(--mute); max-width: 460px; }

.prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.prod { display: flex; flex-direction: column; gap: 16px; }
.prod-ph, .mate-ph, .cita-ph { position: relative; overflow: hidden; background: #dfe9e5; border-radius: 24px; }
.prod-ph { aspect-ratio: .86; }
.prod-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.prod-name { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.prod-price { font-size: 19px; font-weight: 800; color: var(--green); margin-bottom: 12px; }

.mates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.mate { display: flex; flex-direction: column; gap: 18px; }
.mate-ph { aspect-ratio: .8; }
.mate-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mate-name { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.mate-spec { font-size: 18px; color: var(--mute); margin-bottom: 14px; }

/* Cita: franja verde con una foto y un botón */
.cita { background: var(--green); color: #fff; padding: 0 20px; }
.cita-in { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 60px; align-items: center; padding: 90px 0; }
.cita .lead { color: rgba(255, 255, 255, .88); }
.cita .btn { margin-top: 30px; }
.cita-ph { aspect-ratio: .86; max-width: 440px; width: 100%; justify-self: end; border-radius: 28px; background: #0b6b51; }

.pl-where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: stretch; }
.pl-map { min-height: 340px; }
.tm-map-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--soft); border-radius: 24px; }
.tm-map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.tm-map-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-map-trigger { position: absolute; inset: 0; z-index: 5; }
.pl-side { display: flex; }
.pl-find { flex: 1; }
.pl-hours { width: 100%; margin: 6px 0 4px; }
.card-sub { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin-bottom: 10px; }
.pl-card { border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-t { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin-bottom: 6px; }
.pl-phones { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pl-phones li { display: flex; flex-direction: column; }
.ph-area { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-top: 6px; }
.hours { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.hrow { display: flex; align-items: baseline; gap: 12px; }
.hr-dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(15, 42, 39, .26); transform: translateY(-5px); }
.hr-h { font-weight: 800; }
.find-a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 600; }
.find-a:hover { color: var(--green); }
.find-addr:hover { color: inherit; }
.fcol-txt { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; }
.pl-card .btn { margin-top: 10px; }

.foot { padding: 0 20px 28px; }
.foot-in { max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 34px 60px; }
.fcol { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.fcol-t { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin-bottom: 8px; }
.fcol-links { display: flex; flex-flow: row wrap; align-items: center; gap: 0 28px; }
.fcol a { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; font-weight: 500; }
.fcol a:hover { color: var(--green); }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 50px; font-size: 14px; color: var(--mute); }

/* Aparecer al desplazarte (solo fuera del editor) */
.fx [data-rv] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fx [data-rv].rv-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-grid, .cita-in { grid-template-columns: 1fr; gap: 40px; }
  .sv-head { position: static; }
  .sv-ph { aspect-ratio: 1.4; }
  .cita-ph { justify-self: start; aspect-ratio: 1.2; max-width: none; }
  .pl-where { grid-template-columns: 1fr; }
  .pl-map { min-height: 280px; }
}
@media (max-width: 680px) {
  .sec { padding: 76px 20px; }
  .sec-head { margin-bottom: 36px; }
  /* Una sola columna: tarjetas horizontales (foto a la izquierda, texto a la derecha) */
  .prods { grid-template-columns: 1fr; gap: 22px; }
  .prod { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; align-items: center; }
  .prod-ph { aspect-ratio: .9; border-radius: 18px; }
  .prod-price { margin-bottom: 10px; }
  .mates { grid-template-columns: 1fr; gap: 38px; }
  .mate-ph { aspect-ratio: .95; }
  .cita-in { padding: 64px 0; }
  .pl-card { padding: 24px; }
  .svc-name, .svc-price { font-size: 21px; }
}
@media (hover: none) { .hero .hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fx [data-rv] { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}
