/* Veterinaria Campestre · demo Innovame Digital */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #1957a4;
  --cobalt-deep: #123e78;
  --navy: #0b1d4a;
  --saffron: #f9b71a;
  --vermilion: #e34128;
  --vermilion-ink: #b82f19;
  --paper: #f2efde;

  --display: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --banner-h: 3.5rem;
  --bar-h: 4.5rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--saffron) var(--navy);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  padding-bottom: var(--bar-h);
}

::selection {
  background: var(--saffron);
  color: var(--navy);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--saffron);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip:focus {
  top: calc(var(--banner-h) + 0.5rem);
}

/* ---------- Banner de demo ---------- */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 3px solid var(--saffron);
  padding: 0.5rem var(--gutter);
  font-size: 0.8125rem;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
  justify-content: center;
  text-align: center;
}
.demo-banner strong {
  color: var(--saffron);
}
.demo-banner a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Botones ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border: 3px solid var(--navy);
  border-radius: 0.35rem;
  background: var(--saffron);
  color: var(--navy);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--paper);
}
.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--ghost:hover {
  background: var(--paper);
  color: var(--navy);
}

.btn--ink {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn--ink:hover {
  background: var(--cobalt);
  color: var(--paper);
  border-color: var(--cobalt);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cobalt);
  color: var(--paper);
  padding: clamp(2.75rem, 6vw, 5rem) clamp(2.6rem, 6vw, 4.25rem) clamp(2rem, 3vw, 2.75rem);
  isolation: isolate;
}
/* doble filete de etiqueta */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.hero::before {
  inset: 0.75rem;
  border: 4px solid var(--saffron);
}
.hero::after {
  inset: 1.35rem;
  border: 1px solid var(--saffron);
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 40rem;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}
.h1-top {
  display: block;
  font-size: clamp(1.4rem, 4.2vw, 2.6rem);
  letter-spacing: 0.06em;
  color: var(--saffron);
  margin-bottom: 0.35rem;
}
.h1-main {
  display: block;
  font-size: clamp(2.2rem, 10.4vw, 6rem);
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.5rem 0 2rem;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.hero__art {
  position: relative;
  z-index: 1;
  margin: 1.5rem auto 0;
  width: min(100%, 26rem);
}
.hero__art img {
  width: 100%;
  aspect-ratio: 1;
}

.seal {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 6%;
  width: 7.25rem;
  height: 7.25rem;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--paper);
  color: var(--navy);
  border-radius: 50%;
  border: 3px solid var(--navy);
  outline: 3px solid var(--paper);
  outline-offset: 0;
  transform: rotate(-9deg);
  animation: stamp 0.9s var(--ease) 0.35s both;
}
.seal b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
}
.seal span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
}

@keyframes stamp {
  from {
    transform: rotate(-24deg) scale(1.55);
    filter: blur(2px);
  }
  to {
    transform: rotate(-9deg) scale(1);
    filter: blur(0);
  }
}

@media (min-width: 72rem) {
  .h1-main {
    font-size: min(6vw, 5.25rem);
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    min-height: min(46rem, calc(100svh - var(--banner-h)));
    padding-block: 4.5rem;
  }
  .hero__art {
    width: min(52vw, 46rem);
    margin: 0;
    justify-self: end;
    margin-right: -7vw;
  }
  .seal {
    left: 7%;
    bottom: 10%;
    width: 8.5rem;
    height: 8.5rem;
  }
  .seal b {
    font-size: 2.9rem;
  }
}

/* ---------- Secciones ---------- */
.band {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.band__inner {
  max-width: 72rem;
  margin: 0 auto;
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

/* panel de etiqueta: papel con doble filete */
.panel {
  position: relative;
  background: var(--paper);
  color: var(--navy);
  border: 3px solid var(--navy);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  outline: 1px solid var(--navy);
  outline-offset: -0.7rem;
}
.panel > *:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--flip {
    grid-template-columns: 0.75fr 1.25fr;
  }
}

.print {
  margin: 0;
  justify-self: center;
  width: min(100%, 17rem);
}
@media (min-width: 52rem) {
  .print {
    width: min(100%, 22rem);
  }
}
.print img {
  width: 100%;
  border: 3px solid var(--navy);
  background: var(--paper);
}

/* Horario */
.band--hours {
  background: var(--saffron);
}
.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.hours th,
.hours td {
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--navy);
  text-align: left;
  font-weight: 400;
}
.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}
.hours th {
  font-weight: 700;
  padding-right: 1rem;
}
.hours td {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.hours .closed td {
  font-weight: 700;
  color: var(--vermilion-ink);
}
.fine {
  font-size: 0.9375rem;
}

/* Servicios */
.band--services {
  background: var(--navy);
  color: var(--paper);
}
.services {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services li {
  padding: 1.1rem 0;
  border-top: 2px solid var(--saffron);
}
.services li:last-child {
  border-bottom: 2px solid var(--saffron);
}
.services strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}
.services p {
  margin: 0.4rem 0 0;
}
.services .pending strong {
  color: var(--saffron);
}

/* Ubicación */
.band--where {
  background: var(--vermilion);
}
address {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

/* Cierre */
.band--close {
  background: var(--cobalt);
  color: var(--paper);
  text-align: left;
}
.stars {
  display: inline-flex;
  gap: 0.2rem;
  margin: 0 0 1rem;
}
.stars svg {
  width: 2rem;
  height: 2rem;
}

/* Pie */
.foot {
  background: var(--navy);
  color: var(--paper);
  padding: 2.25rem var(--gutter) 2.5rem;
  font-size: 0.9375rem;
  border-top: 3px solid var(--saffron);
}
.foot p {
  max-width: 70ch;
}
.foot a {
  color: var(--saffron);
}

/* Barra móvil fija */
.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 3px solid var(--saffron);
}
.bar .btn {
  min-height: 3.25rem;
  padding-inline: 0.75rem;
  font-size: 1.1rem;
}
@media (min-width: 62rem) {
  .bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 40rem) {
  .actions .btn {
    flex: 1 1 100%;
    padding-inline: 1rem;
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .hero__art {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .seal {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
