﻿/* ==========================================================================
   La Boutique Cat & Dog â€” Hoja de estilos principal
   Estilo editorial: blanco, negro, neutros cÃ¡lidos y rojo de marca como acento.
   TipografÃ­a: Playfair Display (tÃ­tulos) + Inter (texto).
   Sistema: tokens de color/espaciado, animaciones de entrada y reveal,
   microinteracciones sutiles. Todo con transform/opacity y respetando
   prefers-reduced-motion.
   ========================================================================== */

/* ----------------------------- Variables -------------------------------- */
:root {
  --black: #121212;
  --ink: #1c1c1c;
  --white: #ffffff;

  /* Neutros cÃ¡lidos (arena) para dar calidez sin romper la paleta de marca. */
  --gray-50: #faf8f5;
  --gray-100: #f5f2ed;
  --gray-150: #edeae4;
  --gray-200: #e4e0d8;
  --gray-300: #d3cec4;
  --gray-600: #6a655d;
  --gray-700: #443f39;

  --accent: #c0272d;
  --accent-dark: #9c1d22;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 12px rgba(18, 18, 18, 0.05);
  --shadow: 0 18px 45px rgba(18, 18, 18, 0.09);

  --container: 1180px;
  --header-h: 78px;

  /* Ritmo vertical y escalas tipogrÃ¡ficas.
     Un solo lugar para ajustar el "aire" editorial del sitio. */
  --space-section: clamp(72px, 9vw, 128px);
  --measure: 62ch;

  /* Curvas de animaciÃ³n coherentes en todo el sitio. */
  --dur-1: 0.22s;
  --dur-2: 0.4s;
  --dur-3: 0.7s;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.19, 1, 0.22, 1);

  /* Sello de marca: huella limpia y proporcionada (cuatro dedos) con la
     almohadilla central en forma de corazon rojo de marca. Trazado propio
     para verse nitido a tamano pequeno, elegante y no infantil. No reemplaza
     ni altera el logo ni el favicon originales. */
  --seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23121212'%3E%3Cellipse cx='15.5' cy='26' rx='4.9' ry='6.1' transform='rotate(-26 15.5 26)'/%3E%3Cellipse cx='26' cy='17' rx='5.3' ry='6.5' transform='rotate(-8 26 17)'/%3E%3Cellipse cx='38' cy='17' rx='5.3' ry='6.5' transform='rotate(8 38 17)'/%3E%3Cellipse cx='48.5' cy='26' rx='4.9' ry='6.1' transform='rotate(26 48.5 26)'/%3E%3C/g%3E%3Cpath d='M32 37 C27.5 32 18 33 18 41 C18 48 26 52.5 32 58 C38 52.5 46 48 46 41 C46 33 36.5 32 32 37 Z' fill='%23c0272d'/%3E%3C/svg%3E");
  --seal-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='15.5' cy='26' rx='4.9' ry='6.1' transform='rotate(-26 15.5 26)'/%3E%3Cellipse cx='26' cy='17' rx='5.3' ry='6.5' transform='rotate(-8 26 17)'/%3E%3Cellipse cx='38' cy='17' rx='5.3' ry='6.5' transform='rotate(8 38 17)'/%3E%3Cellipse cx='48.5' cy='26' rx='4.9' ry='6.1' transform='rotate(26 48.5 26)'/%3E%3C/g%3E%3Cpath d='M32 37 C27.5 32 18 33 18 41 C18 48 26 52.5 32 58 C38 52.5 46 48 46 41 C46 33 36.5 32 32 37 Z' fill='%23c0272d'/%3E%3C/svg%3E");


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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Recorta el desbordamiento horizontal del panel de navegacion cerrado
     (fuera de pantalla). `clip` NO crea un contenedor de scroll, por lo que
     el header sticky sigue funcionando (a diferencia de `hidden`). */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; /* respaldo en navegadores sin soporte de `clip` */
  overflow-x: clip;
}

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

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

button { font-family: inherit; }

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

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

.section { padding: var(--space-section) 0; }

.section-alt { background: var(--gray-50); }

.section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Transición Categorías → Productos: fondos unificados y costura reducida. */
#categorias { padding-bottom: clamp(40px, 5vw, 64px); }
#productos { padding-top: clamp(56px, 6.5vw, 88px); }

.section-head { max-width: 680px; margin: 0 auto clamp(44px, 5.5vw, 68px); text-align: center; }
.section-head h2 {
  font-size: clamp(2.05rem, 4.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.4em;
}
.section-intro { color: var(--gray-600); font-size: clamp(1rem, 1.4vw, 1.08rem); margin: 0; max-width: 54ch; margin-inline: auto; }

/* Filete de marca bajo el encabezado de secciÃ³n: detalle editorial discreto. */
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 0.85em auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

/* Sello de marca junto al label de la bienvenida (un solo punto, discreto). */
.intro .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.55em;
  vertical-align: -0.16em;
  background: var(--seal) center / contain no-repeat;
}

.accent { color: var(--accent); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn .icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.btn-lg { padding: 1.02em 2.05em; font-size: 1rem; }
.btn-sm { padding: 0.68em 1.25em; font-size: 0.85rem; }

.btn-whatsapp { background: var(--accent); color: var(--white); }
.btn-whatsapp:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(192, 39, 45, 0.22); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white); }

.btn:active { transform: translateY(1px); }

/* --------------------------- Skip link ---------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-150);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: transparent; }

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

.brand { display: inline-flex; align-items: center; gap: 13px; }

.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--black);
}
.brand-name em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-nav { display: flex; align-items: center; gap: 36px; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-600);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1.5px;
  width: 0;
  background: var(--black);
  transition: width 0.28s var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--black); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  margin: 0 auto;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-toggle:hover { border-color: var(--gray-300); }
.nav-toggle:active { transform: scale(0.96); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.5);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

/* ------------------------------ Carousel -------------------------------- */
.carousel { position: relative; }

.carousel-viewport {
  position: relative;
  overflow: hidden;
  background: var(--gray-150);
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide.is-error { background: var(--gray-200); }
.carousel-slide.is-error img { display: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.82);
  color: var(--black);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.carousel-btn:active { transform: translateY(-50%) scale(0.97); }
.carousel-prev { left: clamp(12px, 2.2vw, 30px); }
.carousel-next { right: clamp(12px, 2.2vw, 30px); }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 9px;
  justify-content: center;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel-dot.is-active { width: 26px; background: var(--accent); border-color: var(--accent); }
.carousel-dot:hover { background: var(--white); border-color: var(--gray-300); }

/* ---------------------------- Presentación ------------------------------ */
.hero { background: var(--gray-100); }
/* El hero es más ancho que el resto del sitio: la foto del local es la
   protagonista y merece el espacio. El contenido vuelve a 1180px abajo. */
.hero .container { max-width: 1360px; }
.hero-grid {
  display: grid;
  /* La foto del local es la protagonista: se le da más espacio que al
     texto (55% vs 45%) y el gap es ajustado para aprovechar el ancho. */
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero-copy { max-width: 46rem; }
.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 0.42em;
  min-height: 1.1em;
}
.hero-lead {
  color: var(--gray-600);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin: 0 0 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media .carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media .carousel-viewport { aspect-ratio: 3 / 2; }

/* ---------------------------- CategorÃ­as -------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.category-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
/* Degradado sutil sobre la foto: aparece con el hover para dar profundidad
   y evitar que el zoom se sienta plano. */
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.34), rgba(18, 18, 18, 0) 58%);
  transition: opacity 0.5s var(--ease);
}
.category-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gray-100);
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.category-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: clamp(26px, 3.2vw, 40px);
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 48px -22px rgba(18, 18, 18, 0.3), 0 6px 16px -10px rgba(18, 18, 18, 0.16);
  transform: translateY(-6px);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover .category-media { transform: scale(1.05); }
.category-card:active { transform: translateY(-2px); }
.category-card h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.3em;
}
.category-card p { color: var(--gray-600); margin-bottom: 1.6em; max-width: 46ch; }
.category-card .link-arrow { margin-top: auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.25s var(--ease);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.product-body .link-arrow:hover span { transform: translateX(4px); }
.category-card .link-arrow { transition: color 0.35s var(--ease); }
.category-card:hover .link-arrow { color: var(--accent); }
.category-card:hover .link-arrow span { transform: translateX(6px); }

/* ----------------------------- Productos -------------------------------- */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.filter-chip {
  padding: 9px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.filter-chip:hover { color: var(--black); border-color: var(--gray-300); }
.filter-chip:active { transform: translateY(1px); }
.filter-chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(26px, 3vw, 42px);
  align-items: start;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card[hidden] { display: none; }
/* Productos que están en otra página del catálogo */
.product-card.fuera-de-pagina { display: none; }

/* Paginación del catálogo: bloques de 6 productos por página */
.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(30px, 4vw, 46px);
}
.pp-btn, .pp-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--gray-300); border-radius: 50%;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 0.92rem; line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-1), background var(--dur-1), color var(--dur-1), transform var(--dur-1);
}
.pp-btn:hover:not(:disabled), .pp-num:hover:not(.is-activa) { border-color: var(--black); }
.pp-btn:active:not(:disabled) { transform: translateY(1px); }
.pp-btn:disabled, .pp-num:disabled { opacity: 0.35; cursor: default; }
.pp-num.is-activa { background: var(--accent); border-color: var(--accent); color: var(--white); cursor: default; }
.pp-sep { color: var(--gray-600); font-size: 0.9rem; }
.pp-info { margin-left: 12px; font-size: 0.78rem; color: var(--gray-600); letter-spacing: 0.02em; }
@media (max-width: 640px) { .pp-info { margin-left: 0; width: 100%; text-align: center; } }

/* Carrusel de imÃ¡genes por cada categorÃa de productos */
.product-carousel {
  position: relative;
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.product-card:hover .product-carousel { box-shadow: var(--shadow); }
.pc-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: pan-y;
}
.pc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
/* La foto activa hace un zoom casi imperceptible al pasar el cursor. */
@media (hover: hover) {
  .product-card:hover .pc-slide.is-active { transform: scale(1.045); }
  .pc-slide.is-active { transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-soft); }
}
.pc-slide.is-active { opacity: 1; }
.pc-slide.is-error { display: none; }

.pc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  cursor: pointer;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.pc-btn svg { width: 18px; height: 18px; }
.pc-prev { left: 10px; }
.pc-next { right: 10px; }
.pc-btn:hover { background: var(--white); border-color: var(--gray-300); }
.pc-btn:active { transform: translateY(-50%) scale(0.9); }

/* En dispositivos con mouse las flechas aparecen al pasar el cursor;
   en pantallas tÃ¡ctiles quedan siempre visibles y mÃ¡s grandes (>= 44px). */
@media (hover: hover) {
  .pc-btn { opacity: 0; }
  .product-carousel:hover .pc-btn,
  .pc-btn:focus-visible { opacity: 1; }
}
@media (hover: none) {
  .pc-btn { opacity: 0.94; width: 44px; height: 44px; }
  .pc-btn svg { width: 20px; height: 20px; }
  .pc-prev { left: 8px; }
  .pc-next { right: 8px; }
  .carousel-dot { position: relative; }
  .carousel-dot::after { content: ""; position: absolute; inset: -12px; }
}

.pc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.pc-dots .carousel-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.pc-dots .carousel-dot.is-active { width: 18px; background: var(--accent); border-color: var(--accent); }

.product-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 4px 0; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(192, 39, 45, 0.28);
  border-radius: 999px;
}
.product-body h3 { font-size: 1.34rem; margin: 0; }
.product-body p { margin: 0; color: var(--gray-600); font-size: 0.94rem; flex: 1; }
.product-price {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}
.product-body .link-arrow {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.87rem;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease),
    box-shadow var(--dur-1) var(--ease);
}
.product-body .link-arrow:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(192, 39, 45, 0.22);
}
.product-body .link-arrow:active { transform: translateY(0); }

/* ------------------------------ Nosotros -------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.about-content > p { color: var(--gray-600); font-size: 1.04rem; }
.about-list { display: grid; gap: 13px; margin: 0 0 30px; }
.about-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 500;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--seal) center / contain no-repeat;
}

/* ------------------------------ Contacto -------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.info-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
  margin-bottom: 16px;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 0.4em; }
.info-card p { margin: 0 0 0.7em; font-size: 0.94rem; color: var(--gray-600); }
.info-card a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--gray-300); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.info-card a:not(.btn):hover { color: var(--black); border-color: var(--black); }

.social-buttons { display: grid; gap: 10px; }
.social-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}
.info-card .social-buttons a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); }
.info-card .social-buttons a:active { transform: translateY(0); }
.social-buttons svg { width: 18px; height: 18px; flex: 0 0 auto; }

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding-top: 6px;
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: #0d0d0d; color: rgba(255, 255, 255, 0.66); padding-top: clamp(54px, 6vw, 84px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 18px;
}
.footer-logo { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.footer-brand p { font-size: 0.94rem; max-width: 30ch; color: rgba(255, 255, 255, 0.58); }
.footer-brand p::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.55em;
  vertical-align: -0.16em;
  background: var(--seal-on-dark) center / contain no-repeat;
}
.footer-col h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin: 0 0 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col span { font-size: 0.93rem; color: rgba(255, 255, 255, 0.66); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col .social-list { display: flex; gap: 12px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-list a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); transform: translateY(-3px); }
.social-list a:active { transform: translateY(-1px); }
.social-list svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px max(22px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------- WhatsApp FAB ------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(192, 39, 45, 0.3);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.07); background: var(--accent-dark); }
.whatsapp-fab:active { transform: scale(0.98); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* -------------------------- Reveal animation ---------------------------- */
/* ApariciÃ³n al entrar en pantalla: fundido + desplazamiento vertical muy
   corto. Los grupos de tarjetas reciben un retraso escalonado mediante
   --reveal-delay (lo asigna js/main.js), generando profundidad sin demorar
   la lectura. Se ejecuta una sola vez por elemento. */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------------------- Secuencia de entrada (hero) --------------------- */
/* Encabezado, subtÃtulo y botones se revelan en cascada cuando el sitio
   termina de cargar (clase .is-entered en <main>, la agrega js/main.js).
   Solo si hay JS: sin JS el contenido se ve directamente. */
html.js .hero .hero-copy > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
html.js .hero.is-entered .hero-copy > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms + 120ms);
}
html.js .hero .hero-media {
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.985);
}
html.js .hero.is-entered .hero-media {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
  transition-delay: 0.1s;
}

/* Título con efecto de escritura: un cursor finísimo parpadea mientras se
   escribe y se desvanece suavemente al terminar (transition en opacity). */
.hero-title .type-target { white-space: pre-wrap; }
html.js .hero-title .type-caret {
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 0.06em;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: caret-blink 1s steps(1) infinite;
  transition: opacity 0.5s ease-out, width 0.3s ease-out;
}
html.js .hero-title.is-typed .type-caret {
  opacity: 0;
  width: 0;
  animation: none;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* LÃnea de progreso de scroll: detalle funcional junto al reloj de marca. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 1100;
  pointer-events: none;
}

/* ---------------------------- Responsive -------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-list { gap: 20px; }
  .nav-link { font-size: 0.9rem; }
  .main-nav { gap: 22px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.04rem; }

  .header-inner { gap: 12px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(80vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--white);
    padding: calc(var(--header-h) + 26px + env(safe-area-inset-top)) 28px calc(40px + env(safe-area-inset-bottom));
    box-shadow: -18px 0 50px rgba(18, 18, 18, 0.16);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    z-index: 950;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 24px; }
  .nav-list li { border-bottom: 1px solid var(--gray-150); }
  .nav-link { display: block; padding: 16px 2px; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .nav-cta { width: 100%; }

  .carousel-btn { width: 42px; height: 42px; }
  .carousel-btn svg { width: 20px; height: 20px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: clamp(36px, 7vw, 58px);
    padding-bottom: clamp(44px, 8vw, 62px);
  }
  .hero-copy { max-width: none; }
  .hero-title { margin-bottom: 0.35em; }
  .hero-lead { margin-bottom: 1.5em; }
  .hero-media .carousel-viewport { aspect-ratio: 16 / 9; }

  .category-grid { grid-template-columns: 1fr; gap: 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 460px; }
}

@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid {
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 34px;
  }
  .hero-title { margin-bottom: 0.3em; }
  .hero-lead { margin-bottom: 1.1em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .contact-cta { flex-direction: column; }
  .contact-cta .btn { width: 100%; }
  /* En celular la foto se muestra panorámica para acortar la portada. */
  .hero-media .carousel-viewport { aspect-ratio: 16 / 9; }
  .carousel-dots { bottom: 14px; }
  .carousel-dot { width: 8px; height: 8px; }
  .carousel-dot.is-active { width: 22px; }
  .whatsapp-fab { width: 54px; height: 54px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ------------------------- Reduced motion ------------------------------- */
/* Con movimiento reducido: sin transiciones ni animaciones, y todo el
   contenido visible de entrada (nunca queda oculto esperando una animaciÃ³n). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal],
  html.js .hero .hero-copy > *,
  html.js .hero .hero-media {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .hero-title .type-caret { display: none !important; }
}


/* -------------------- Sin JavaScript y páginas estáticas ----------------- */
/* Si el visitante no tiene JavaScript, el catálogo no se puede generar:
   se le muestra al menos el contacto, que es lo que necesita. */
.noscript-aviso {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px;
  text-align: center;
}
.noscript-aviso h1 { margin: 8px 0 16px; }
.noscript-aviso ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.noscript-aviso .btn { display: inline-block; }

.pagina-estatica { min-height: 100vh; min-height: 100dvh; }
.estatico-card {
  max-width: 760px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.estatico-card h1 { margin: 8px 0 16px; }
.estatico-card h2 { margin: 32px 0 10px; font-size: 1.15rem; }
.estatico-card p { margin: 0 0 14px; }
.estatico-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.estatico-nota {
  margin-top: 36px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer-legal { margin: 0; }
.footer-legal a { color: inherit; opacity: 0.8; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
