/* ==========================================================================
   Aura Veterinaria
   Identidad: lavanda, oliva, crudo, off white y carbón.
   ========================================================================== */

:root {
  /* Paleta oficial (Aura - Paleta de colores) */
  --offwhite: #faf9f5;   /* Pantone 11-4201 TPG */
  --crudo: #ede4da;      /* Pantone 9226 C */
  --carbon: #191919;     /* Pantone Black 6 C */
  --lavanda: #b6a5cf;    /* Pantone 2635 C */
  --oliva: #abb894;      /* Pantone 4178 C */

  /* Derivados para fondos suaves y textos con buen contraste */
  --crudo-claro: #f4efe8;
  --carbon-soft: #4a4744;
  --carbon-mute: #6b6661;
  --lavanda-suave: #eee9f5;
  --lavanda-oscuro: #5f4d8c;
  --oliva-suave: #e9ede2;
  --oliva-oscuro: #56653f;
  --linea: #e3d9cc;

  --font-serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(25 25 25 / 0.04), 0 8px 24px -12px rgb(25 25 25 / 0.18);
  --shadow-lg: 0 2px 4px rgb(25 25 25 / 0.04), 0 24px 48px -20px rgb(25 25 25 / 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* Base ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--carbon);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--carbon);
  color: var(--offwhite);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sprite { display: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--carbon-soft);
}

/* Botones ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--carbon);
  color: var(--offwhite);
}
.btn-primary:hover { background: var(--lavanda-oscuro); }

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

.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.link {
  color: var(--lavanda-oscuro);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link { transition: color 0.3s var(--ease); }
.link:hover { color: var(--carbon); }

/* Barra de promo -------------------------------------------------------- */

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px var(--gutter);
  background: var(--carbon);
  color: var(--crudo);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: center;
}
.promo-bar strong { color: #fff; font-weight: 600; }
.promo-bar .icon { color: var(--lavanda); }
.promo-bar-extra { display: none; }
@media (min-width: 560px) { .promo-bar-extra { display: inline; } }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 245 / 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--linea);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo { width: auto; height: 38px; }
@media (min-width: 720px) { .brand-logo { height: 46px; } }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--carbon);
  border-radius: 2px;
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px var(--gutter) 24px;
  background: var(--offwhite);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 16px 24px -16px rgb(25 25 25 / 0.2);
}
.nav.is-open { display: flex; }
@media (max-width: 859px) {
  .nav { transition: opacity 0.35s var(--ease), translate 0.35s var(--ease), display 0.35s allow-discrete; }
  .nav:not(.is-open) { opacity: 0; translate: 0 -8px; }
  @starting-style { .nav.is-open { opacity: 0; translate: 0 -8px; } }
}
.nav ul { display: flex; flex-direction: column; }
.nav li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 1.05rem;
  text-decoration: none;
}
.nav .btn { margin-top: 12px; align-self: flex-start; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav ul { flex-direction: row; gap: 28px; }
  .nav li a {
    padding: 6px 0;
    border: 0;
    font-size: 0.98rem;
    color: var(--carbon-soft);
    background: linear-gradient(var(--lavanda), var(--lavanda)) left bottom / 0 1px no-repeat;
    transition: color 0.3s var(--ease), background-size 0.45s var(--ease);
  }
  .nav li a:hover { color: var(--carbon); background-size: 100% 1px; }
  .nav .btn { margin-top: 0; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 32px 0 72px;
  overflow: hidden;
  /* halo lavanda muy suave detrás del isotipo */
  background: radial-gradient(ellipse 50% 55% at 78% 48%, rgb(182 165 207 / 0.26), transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy { text-align: center; }

.hero-headline {
  margin-bottom: 18px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
}

.hero-lead {
  max-width: 34em;
  margin: 0 auto 30px;
  color: var(--carbon-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--carbon-soft);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts .icon { color: var(--lavanda-oscuro); }

.hero-media {
  margin: 0 auto;
  width: min(100%, 320px);
}

/* Bloque de marca en el arco: todo en cqw para que escale como una imagen. */
.arch {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 12% 8% 7%;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  outline: 1px solid var(--carbon);
  outline-offset: 10px;
  background: var(--crudo-claro);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-logo { width: 54cqw; height: auto; }
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 3cqw 0 0;
  font-family: var(--font-serif);
  line-height: 1;
}
.hero-title span:first-child { font-size: 21cqw; letter-spacing: -0.01em; }
.hero-title span:last-child { margin-top: 0.1em; font-size: 10.5cqw; }
.divider {
  display: flex;
  align-items: center;
  gap: 3cqw;
  width: 86%;
  margin: 4cqw auto;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--carbon-mute);
  opacity: 0.6;
}
.sparkle {
  width: 3.6cqw;
  height: 3.6cqw;
  background: var(--carbon);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.hero-tagline {
  margin: 0;
  font-size: max(4cqw, 10px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--carbon-soft);
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero-copy { text-align: left; }
  .hero-lead { margin-left: 0; }
  .hero-actions, .hero-facts { justify-content: flex-start; }
  .hero-media { width: 100%; max-width: 360px; }
}

/* Secciones -------------------------------------------------------------- */

.section { padding: 72px 0; }
.section-tint { background: var(--crudo); }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-lead {
  margin-top: 16px;
  color: var(--carbon-soft);
}

/* Servicios -------------------------------------------------------------- */

.services {
  display: grid;
  gap: 16px;
}
@media (min-width: 620px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.service {
  padding: 28px 26px;
  background: var(--crudo-claro);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.service:hover {
  border-color: var(--lavanda);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--lavanda-suave);
  color: var(--lavanda-oscuro);
}
.service:nth-child(even) .service-icon { background: var(--oliva-suave); color: var(--oliva-oscuro); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--carbon-soft); font-size: 0.98rem; }
.service .service-lead {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--lavanda-oscuro);
}

/* Petshop ---------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.filters[hidden] { display: none; }
.filter {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--offwhite);
  font: inherit;
  font-size: 0.92rem;
  color: var(--carbon-soft);
  cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.filter[aria-pressed="true"] {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--offwhite);
}

.products {
  display: grid;
  gap: 20px;
}
@media (min-width: 560px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--carbon-soft);
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--offwhite);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.product-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--crudo);
  cursor: zoom-in;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 85%;
  transition: transform 0.9s var(--ease);
}
.product:hover .product-media img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(250 249 245 / 0.94);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--carbon);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}
.product-brand {
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavanda-oscuro);
}
.product h3 { margin-bottom: 8px; }
.product-desc { color: var(--carbon-soft); font-size: 0.96rem; }
.product-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lavanda-oscuro);
}


.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.product-promo + .product-foot { margin-top: 0; }
.product-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.product-price.is-ask {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--carbon-mute);
}

.also {
  margin-top: 56px;
  text-align: center;
}
.also h3 { margin-bottom: 18px; font-size: 1.15rem; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--oliva-suave);
  font-size: 0.94rem;
  color: var(--oliva-oscuro);
}
.chips li:nth-child(3n + 2) { background: var(--lavanda-suave); color: var(--lavanda-oscuro); }
.chips li:nth-child(3n) { background: var(--offwhite); color: var(--carbon-soft); }

/* Nosotras --------------------------------------------------------------- */

.about {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}

.about-media {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Carrusel de pacientitos: scroll nativo con snap, las flechas solo lo empujan. */
.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: inherit;
  background: var(--crudo);
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .carousel-track { scroll-behavior: smooth; }
}
.carousel-track li {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(250 249 245 / 0.94);
  color: var(--carbon);
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.carousel-btn:hover { background: var(--carbon); color: var(--offwhite); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.is-prev { left: 12px; }
.carousel-btn.is-prev svg { transform: scaleX(-1); }
.carousel-btn.is-next { right: 12px; }

.about-copy h2 { margin-bottom: 22px; }
.about-copy > p { color: var(--carbon-soft); }

.quote {
  position: relative;
  margin: 28px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--lavanda);
}
.quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--carbon);
}
.about-sign {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--lavanda-oscuro) !important;
}

/* Pacientitos: galería giratoria ----------------------------------------- */

.galeria {
  background: var(--carbon);
  color: var(--crudo);
}
.galeria .eyebrow { color: var(--lavanda); }
.galeria-copy { max-width: 34em; margin-bottom: 36px; }
.galeria-copy h2 { margin-bottom: 18px; color: var(--offwhite); }
.galeria-copy p { color: rgb(237 228 218 / 0.8); }
.galeria-copy .galeria-hint { display: none; margin-top: 18px; font-size: 0.9rem; color: var(--lavanda); }

/* Sin WebGL: grilla de fotos. */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .galeria-fotos { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.galeria-fotos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Con WebGL: la sección queda fija mientras pasan todas las fotos. */
.galeria.is-3d { height: 400vh; padding: 0; }
.galeria.is-3d .galeria-fija {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}
.galeria.is-3d .galeria-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding-top: 28px;
}
.galeria.is-3d .galeria-copy { margin-bottom: 0; }
.galeria.is-3d .galeria-hint { display: block; }
.galeria.is-3d .galeria-escena { position: relative; min-height: 0; }
.galeria.is-3d canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.galeria.is-3d .galeria-fotos {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 900px) {
  .galeria.is-3d .galeria-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    align-items: center;
    gap: 64px;
    padding-top: 0;
  }
  .galeria.is-3d .galeria-escena { height: 100%; }
}

/* Contacto --------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px;
  background: var(--offwhite);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lavanda-suave);
  color: var(--lavanda-oscuro);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--carbon-soft); }
.contact-card .link { margin-top: 14px; }

.hours { margin: 0; width: 100%; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--linea);
}
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--carbon-soft); }
.hours dd { margin: 0; font-weight: 500; white-space: nowrap; }

.promo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--lavanda-suave);
  color: var(--carbon);
  text-align: center;
}
.promo-note .icon { width: 1.4em; height: 1.4em; color: var(--lavanda-oscuro); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Footer: versión oscura del logo sobre carbón ------------------------- */

.site-footer {
  padding: 56px 0 104px;
  background: var(--carbon);
  color: var(--crudo);
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}

.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
}
.lockup-logo { width: auto; height: 52px; }
.lockup-rule {
  display: none;
  width: 1px;
  height: 56px;
  background: currentColor;
  opacity: 0.8;
}
.lockup-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
}
.lockup-paw { width: 30px; height: 30px; flex: none; }

@media (min-width: 620px) {
  .lockup-logo { height: 60px; }
  .lockup-rule { display: block; }
}

.footer-meta p { margin: 0 0 4px; color: rgb(237 228 218 / 0.8); }
.footer-meta a { color: var(--lavanda); }
.footer-meta a:hover { color: var(--crudo); }
.footer-copy {
  margin: 0;
  padding-top: 24px;
  width: 100%;
  border-top: 1px solid rgb(237 228 218 / 0.16);
  color: rgb(237 228 218 / 0.6);
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .site-footer { padding-bottom: 56px; }
}

/* Botón flotante de WhatsApp ---------------------------------------------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgb(18 140 70 / 0.6);
  transition: transform 0.4s var(--ease);
}
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  width: min(100% - 2 * var(--gutter), 920px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--offwhite);
  color: var(--carbon);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.lightbox::backdrop {
  background: rgb(25 25 25 / 0.55);
  backdrop-filter: blur(4px);
}
.lightbox,
.lightbox::backdrop {
  transition: opacity 0.4s var(--ease), scale 0.4s var(--ease), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
}
.lightbox:not([open]),
.lightbox:not([open])::backdrop { opacity: 0; }
.lightbox:not([open]) { scale: 0.96; }
@starting-style {
  .lightbox[open],
  .lightbox[open]::backdrop { opacity: 0; }
  .lightbox[open] { scale: 0.96; }
}
.lightbox-inner { position: relative; display: grid; }
@media (min-width: 760px) {
  .lightbox-inner { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
.lightbox-img {
  width: 100%;
  max-height: 70dvh;
  object-fit: cover;
  background: var(--crudo);
}
@media (min-width: 760px) {
  .lightbox-img { max-height: calc(100dvh - 32px); height: 100%; }
}
.lightbox-body { padding: 28px; }
.lightbox-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.lightbox-body p:not(.product-brand) { color: var(--carbon-soft); margin-bottom: 24px; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgb(250 249 245 / 0.94);
  color: var(--carbon);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.lightbox-close svg { width: 20px; height: 20px; }

/* Scroller --------------------------------------------------------------
   Cada bloque aparece a medida que se scrollea, ligado a la rueda: si se
   frena, la animación también. Donde el navegador no soporta animaciones
   ligadas al scroll, aparece una sola vez con transición (main.js). */

@keyframes aparecer { from { opacity: 0; translate: 0 56px; scale: 0.97; } }
@keyframes entrar { from { opacity: 0; translate: 0 24px; } }
@keyframes abrirse { from { opacity: 0; scale: 0.92; } }
@keyframes irse { to { opacity: 0; translate: 0 -48px; } }
@keyframes parallax { to { translate: 0 96px; } }
@keyframes enfoque { from { scale: 1.14; } }
@keyframes progreso { from { scale: 0 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Inicio: entra escalonado al cargar. */
  .hero-copy > * { animation: entrar 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-media { animation: abrirse 1.3s var(--ease) 0.15s both; }

  /* Filtros del petshop: las tarjetas se reacomodan en vez de saltar. */
  ::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease); }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: aparecer var(--ease) both;
      animation-timeline: view();
      animation-range: cover 0% cover 26%;
    }
    /* En las grillas, cada columna llega un poco después que la anterior. */
    .services > :nth-child(3n + 2), .products > :nth-child(3n + 2), .contact > :nth-child(2) { animation-range: cover 3% cover 29%; }
    .services > :nth-child(3n), .products > :nth-child(3n), .contact > :nth-child(3) { animation-range: cover 6% cover 32%; }

    /* Al bajar, el texto del inicio se va y el isotipo queda atrás. */
    .hero-copy { animation: irse linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    .hero-media {
      animation: abrirse 1.3s var(--ease) 0.15s both, parallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }

    /* Carrusel: la foto que entra se acomoda con un leve zoom. */
    .carousel-track li { overflow: hidden; }
    .carousel-track img { animation: enfoque linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%; }

    /* Progreso de lectura bajo el header. */
    .site-header::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      background: var(--lavanda);
      transform-origin: 0 50%;
      animation: progreso linear both;
      animation-timeline: scroll(root);
    }
  }

  @supports not (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      translate: 0 32px;
      transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
    }
    .reveal.is-visible { opacity: 1; translate: none; }
  }
}
