/* Central Veterinaria — colores del edificio y del letrero (café/ladrillo y crema) */
:root {
  --brick: #9c3f2b;
  --brick-deep: #7a2e1f;
  --brick-soft: #f5e1d8;
  --coffee: #33201a;
  --coffee-2: #4a2f26;
  --cream: #fbf6ef;
  --sand: #f3e8da;
  --sand-2: #e7d7c3;
  --teal: #1f6f66;
  --teal-soft: #dff0eb;
  --ink: #241a16;
  --ink-soft: #5e4e47;
  --white: #fff;
  --wa: #128049;
  --star: #e39a2d;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(51, 32, 26, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 1.06rem; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 99px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 26px; font-size: 1.06rem; }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 10px 22px -12px var(--wa); }
.btn--wa:hover { background: #0e6b3c; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--coffee); }
.btn--cream:hover { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow--brick { color: var(--brick); }
.eyebrow--light { color: #f0b9a6; }

/* Menú */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(251, 246, 239, .92); backdrop-filter: blur(10px); box-shadow: 0 8px 24px -18px rgba(51, 32, 26, .5); }
.nav__bar { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--brick); color: var(--cream); font: 800 1.15rem/1 var(--head); letter-spacing: -.04em;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}
.brand__name { display: grid; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brick); line-height: 1.2; }
.brand__name b { font: 800 1.22rem/1 var(--head); letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 99px; font-weight: 600; text-decoration: none; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--sand); color: var(--ink); }
.nav__links a[aria-current] { background: var(--ink); color: var(--cream); }
.nav__cta { padding: 11px 18px; }
.nav__toggle { display: none; }
.nav__panel { display: none; }

/* Portada */
.hero { position: relative; padding: 40px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 46%; z-index: -1;
  background:
    radial-gradient(circle at 70% 40%, rgba(156, 63, 43, .12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M29 22h6v7h7v6h-7v7h-6v-7h-7v-6h7z' fill='%23e7d7c3'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
          mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); margin: 18px 0 20px; }
.hl { position: relative; color: var(--brick); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C50 4 120 2 197 9' fill='none' stroke='%231f6f66' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.rating { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-soft); font-size: .98rem; }
.rating strong { color: var(--ink); font-size: 1.05rem; }
.rating:hover span:last-child { text-decoration: underline; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--star); }
.rating__stars .ico { width: 18px; height: 18px; }
.ico--half { -webkit-mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .25) 50%); mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .25) 50%); }

.hero__media { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.hero__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 30px 30px 180px 30px;
  background: var(--teal); transform: rotate(3deg);
}
.hero__photo { position: relative; border-radius: 30px 30px 180px 30px; overflow: hidden; border: 4px solid var(--ink); background: var(--sand); aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.today {
  position: absolute; left: -34px; bottom: 44px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow); border: 2px solid var(--ink);
  font-size: .9rem; line-height: 1.3; max-width: 290px;
}
.today strong { display: block; font-size: .98rem; }
.today span { color: var(--ink-soft); }
.today__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sand-2); flex: none; }
.today.is-open .today__dot { background: #22a35a; box-shadow: 0 0 0 5px rgba(34, 163, 90, .18); }
.today.is-closed .today__dot { background: var(--brick); box-shadow: 0 0 0 5px rgba(156, 63, 43, .15); }
.hero__plus { position: absolute; color: var(--brick); }
.hero__plus--a { width: 46px; height: 46px; top: -18px; right: -10px; transform: rotate(12deg); }
.hero__plus--b { width: 54px; height: 54px; left: -42px; top: 18%; color: var(--sand-2); transform: rotate(-18deg); }

/* Secciones */
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: 48px; }
.head--left { text-align: left; justify-items: start; margin-bottom: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--sand-2);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); margin-bottom: 8px; }
.service__icon .ico { width: 28px; height: 28px; }
.service p { color: var(--ink-soft); }
.service--star { background: var(--brick); border-color: var(--brick); color: var(--cream); }
.service--star p { color: #f6dcd2; }
.service--star .service__icon { background: rgba(255, 255, 255, .14); color: var(--cream); }
.service__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.service__more:hover { text-decoration: underline; }

/* Cirugía */
.surgery { position: relative; padding: 110px 0; background: var(--coffee); color: var(--cream); overflow: hidden; }
.surgery::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M37 30h6v7h7v6h-7v7h-6v-7h-7v-6h7z' fill='%234a2f26'/%3E%3C/svg%3E");
}
.surgery__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.surgery__photo { margin: 0; position: relative; }
.surgery__photo img { border-radius: 26px; border: 4px solid var(--cream); transform: rotate(-2.5deg); box-shadow: 0 30px 60px -30px #000; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.surgery__photo figcaption { margin-top: 22px; font-size: .95rem; color: #e9d9cd; }
.surgery__photo figcaption span { display: block; color: #b9a296; font-size: .85rem; }
.surgery__text { display: grid; gap: 22px; justify-items: start; }
.surgery__text h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.surgery__lead { font-size: 1.15rem; color: #eadbd0; max-width: 46ch; }
.quote { margin: 0; padding: 18px 22px; border-radius: 18px; border-left: 4px solid var(--brick); }
.quote--dark { background: var(--coffee-2); }
.quote p { font-size: 1.08rem; font-weight: 500; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .9rem; color: #c9b2a5; }

/* Opiniones */
.reviews__top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.score { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 16px; border-radius: 22px; background: var(--white); text-decoration: none; border: 1px solid var(--sand-2); transition: box-shadow .2s; }
.score:hover { box-shadow: var(--shadow); }
.score__num { font: 800 3rem/1 var(--head); color: var(--brick); }
.score__txt { display: grid; gap: 2px; font-size: .92rem; color: var(--ink-soft); }
.score__txt b { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--sand-2); }
.review__tag { align-self: start; padding: 6px 12px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .85rem; }
.review blockquote { margin: 0; display: grid; gap: 12px; }
.review blockquote p { font: 600 1.25rem/1.35 var(--head); letter-spacing: -.01em; }
.review cite { font-style: normal; color: var(--ink-soft); font-size: .92rem; }

/* Horario y ubicación */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px 56px; align-items: start; }
.visit__info { display: grid; gap: 18px; justify-items: start; }
.visit__addr { display: flex; gap: 10px; align-items: flex-start; font-size: 1.1rem; font-weight: 600; }
.visit__addr .ico { margin-top: .25em; color: var(--brick); }
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours th, .hours td { padding: 14px 16px; text-align: left; border-bottom: 1px dashed var(--sand-2); }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--brick-soft); }
.hours tr.is-today th::after { content: "Hoy"; margin-left: 10px; padding: 2px 9px; border-radius: 99px; background: var(--brick); color: var(--cream); font-size: .75rem; font-weight: 700; vertical-align: 2px; }
.hours tr.is-today td { color: var(--ink); font-weight: 600; }
.hours tr.is-today th, .hours tr.is-today td { border-bottom-color: transparent; }
.hours tr.is-today th { border-radius: 12px 0 0 12px; }
.hours tr.is-today td { border-radius: 0 12px 12px 0; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.visit__photo { margin: 0; position: relative; }
.visit__photo img { border-radius: 26px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.visit__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px;
  background: rgba(36, 26, 22, .82); color: var(--cream); font-size: .9rem; font-weight: 600;
}
.map {
  grid-column: 1 / -1; height: 340px; border-radius: 26px; overflow: hidden; display: grid; place-items: center;
  background:
    linear-gradient(rgba(243, 232, 218, .9), rgba(243, 232, 218, .9)),
    repeating-linear-gradient(0deg, transparent 0 38px, var(--sand-2) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--sand-2) 38px 40px);
  border: 1px solid var(--sand-2);
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px; border: 2px solid var(--ink); background: var(--white); font: 700 1rem var(--body); cursor: pointer; transition: transform .2s var(--ease); }
.map__btn:hover { transform: translateY(-2px); }

/* Pie */
.foot { position: relative; background: #24160f; color: #eadbd0; padding: 72px 0 96px; overflow: hidden; }
.foot__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 40px; }
.brand--light .brand__name b { color: var(--cream); }
.brand--light .brand__name { color: #f0b9a6; }
.foot__note { margin-top: 16px; max-width: 32ch; color: #bfa99c; }
.foot__nav { display: grid; gap: 8px; align-content: start; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot__contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot__contact .ico { margin-top: .25em; color: #f0b9a6; }
.foot__contact a { text-decoration: none; }
.foot__mark { font: 800 clamp(4.5rem, 18vw, 15rem)/.8 var(--head); letter-spacing: .01em; color: transparent; -webkit-text-stroke: 1px rgba(234, 219, 208, .14); text-align: center; margin: 48px 0 24px; user-select: none; }
.foot__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: #a8928a; }
.foot__bottom a { text-decoration: none; }
.foot__bottom a:hover { color: var(--cream); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 99px; background: var(--wa); color: var(--white); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(18, 128, 73, .7); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .ico { width: 24px; height: 24px; }

/* Aparición */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.services [data-reveal]:nth-child(2), .reviews [data-reveal]:nth-child(2) { transition-delay: .08s; }
.services [data-reveal]:nth-child(3), .reviews [data-reveal]:nth-child(3) { transition-delay: .16s; }
.services [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* Tableta */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center; gap: 6px; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid var(--ink); background: var(--white); cursor: pointer; padding: 0; align-content: center;
  }
  .nav__toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
  .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__panel { display: grid; grid-template-rows: 0fr; width: min(1200px, 100% - 32px); margin: 8px auto 0; transition: grid-template-rows .35s var(--ease); }
  .nav__panel.is-open { grid-template-rows: 1fr; }
  .nav__panel-inner { overflow: hidden; display: grid; gap: 2px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); padding: 0 12px; }
  .nav__panel.is-open .nav__panel-inner { padding: 12px; }
  .nav__panel a:not(.btn) { padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 1.08rem; text-decoration: none; }
  .nav__panel a:not(.btn):hover { background: var(--sand); }
  .nav__panel .btn { margin-top: 8px; }

  .hero { padding: 24px 0 80px; }
  .hero::before { inset: 40% 0 0 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__media { max-width: 420px; }
  .surgery { padding: 88px 0; }
  .surgery__grid { grid-template-columns: 1fr; gap: 48px; }
  .surgery__photo { max-width: 420px; justify-self: center; }
  .visit { grid-template-columns: 1fr; }
  .visit__photo { max-width: 520px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 72px 0; }
  .brand__mark { width: 42px; height: 42px; font-size: 1.05rem; }
  .brand__name b { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .lead { font-size: 1.1rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__media { max-width: 330px; }
  .hero__media::before { inset: 16px -14px -14px 16px; }
  .today { left: -12px; bottom: 26px; padding: 12px 14px; }
  .hero__plus--b { left: -18px; }
  .services, .reviews { grid-template-columns: 1fr; }
  .head { margin-bottom: 36px; }
  .reviews__top { align-items: start; }
  .visit__cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .visit__cta .btn:first-child { grid-column: 1 / -1; }
  .hours, .hours tbody, .hours tr { display: block; }
  .hours tr { padding: 12px 14px; border-bottom: 1px dashed var(--sand-2); border-radius: 12px; }
  .hours tr.is-today { border-bottom-color: transparent; }
  .hours th, .hours td { display: block; padding: 0; border: 0; text-align: left; }
  .hours td { margin-top: 2px; }
  .map { height: 280px; }
  .foot__grid { grid-template-columns: 1fr; }
  .wa-float { padding: 15px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
