/* ==========================================================================
   Crafterlu — estilos base (sitio público + compartidos con admin)
   ========================================================================== */

:root {
  --purple-900: #2E1065;
  --purple-800: #3B0764;
  --purple-700: #5B21B6;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --lilac-400: #A78BFA;
  --lilac-300: #C4B5FD;
  --lilac-200: #DDD6FE;
  --lilac-100: #EDE9FE;
  --lilac-50: #F5F3FF;
  --cream: #FBF8FF;
  --white: #FFFFFF;
  --text-dark: #241344;
  --text-muted: #6B6180;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  /* Acentos secundarios: tomados de las salpicaduras reales del logo
     (rosa + turquesa junto al lila), no inventados. Se usan para separar
     visualmente las 3 categorías del catálogo — rosa=personales,
     turquesa=pediátricas, dorado=otros — así el color también informa,
     no solo decora. */
  --pink-600: #DB2777;
  --pink-500: #EC4899;
  --pink-400: #F472B6;
  --pink-200: #FBCFE8;
  --pink-100: #FCE7F3;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-200: #99F6E4;
  --teal-100: #CCFBF1;
  --gold-600: #B45309;
  --gold-500: #F59E0B;
  --gold-400: #FBBF24;
  --gold-200: #FDE68A;
  --gold-100: #FEF3C7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -20px rgba(91, 33, 182, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(91, 33, 182, 0.25);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ---------- Splash de bienvenida (solo inicio, una vez por sesión) ---------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--lilac-100), var(--lilac-200) 55%, var(--pink-100));
  overflow: hidden;
  animation: intro-splash-out 0.7s ease forwards 2.3s;
}
.intro-splash-paper {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDAnIGhlaWdodD0nMzAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4K");
  background-size: 300px 300px;
  mix-blend-mode: multiply;
  opacity: 0.18;
}
.intro-splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.intro-splash-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0;
  animation: intro-logo-spin 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}
.intro-splash-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--purple-800);
  opacity: 0;
  animation: intro-text-in 0.7s ease-out 0.95s forwards;
}
.intro-splash-text span { color: var(--purple-500); }

@keyframes intro-logo-spin {
  0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
  70% { transform: rotate(380deg) scale(1.06); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
@keyframes intro-text-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes intro-splash-out {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash, .intro-splash-logo, .intro-splash-text { animation-duration: 0.01ms !important; }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(29, 168, 81, 0.55);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -8px rgba(29, 168, 81, 0.6); }

.btn-ghost {
  background: var(--pink-100);
  color: var(--pink-600);
}
.btn-ghost:hover { background: var(--pink-200); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--purple-700);
  border: 1.5px solid var(--lilac-300);
}
.btn-outline:hover { background: var(--lilac-100); }

.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.btn-danger:hover { background: #fecaca; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(120deg, var(--lilac-200), var(--pink-100), var(--teal-100), var(--gold-100), var(--lilac-200));
  background-size: 400% 400%;
  animation: header-color-shift 18s ease-in-out infinite;
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(91, 33, 182, 0.4); }

@keyframes header-color-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; background: var(--lilac-200); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--purple-800);
  display: flex;
  align-items: center;
}
.brand span { color: var(--purple-500); }
.brand-logo { height: 78px; width: auto; }

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 500;
}
.main-nav a { color: var(--text-dark); position: relative; padding-bottom: 4px; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--purple-500);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--purple-700); cursor: pointer; }

@media (max-width: 860px) {
  .brand-logo { height: 56px; }
  .main-nav { position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 20px 24px; gap: 16px; box-shadow: var(--shadow-card); transform: translateY(-150%); opacity: 0; transition: all 0.3s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}
.hero-blob-1 { width: 420px; height: 420px; background: var(--pink-400); top: -150px; left: -120px; opacity: 0.4; }
.hero-blob-2 { width: 380px; height: 380px; background: var(--purple-500); bottom: -180px; right: -100px; opacity: 0.35; }
.hero-blob-3 { width: 320px; height: 320px; background: var(--teal-400); top: 120px; right: 8%; opacity: 0.3; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  box-shadow: 0 8px 18px -8px rgba(219, 39, 119, 0.5);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500) 55%, var(--lilac-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Título rotativo del hero: cicla entre 3 frases con 3 efectos simples y
   elegantes (aparición con subida, eco, aparición con foco) — ver
   /js/hero-title.js */
/* CAUSA RAÍZ del texto fantasma que nunca cambia: .hero-title (arriba)
   pinta su propio degradado con background-clip:text + color:transparent,
   pensado para cuando el <h1> tenía el texto directo adentro. Ahora que el
   texto real vive en spans internos y el <h1> solo contiene el span
   .sr-only (para lectores de pantalla, con la frase fija original), ESE
   degradado del <h1> se recorta al texto del .sr-only y lo pinta visible
   por detrás de las frases que rotan. Por eso el texto que "nunca
   desaparece" es siempre la frase original. Se anula acá explícitamente. */
.hero-title-rotator {
  position: relative;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
}
.hero-title-stage {
  position: relative;
  display: block;
  width: 100%;
}
/* Cada efecto vive en su propia capa. Solo la capa con .is-active tiene
   display:block — a diferencia de opacity, el navegador NUNCA pinta un
   elemento display:none a medias, así que dos frases nunca pueden
   solaparse visualmente aunque una animación se retrase. Las capas NO son
   position:absolute a propósito: como nunca hay más de una visible a la
   vez, dejarlas en el flujo normal hace que el <h1> crezca solo (una o
   dos líneas) según la frase activa, evitando que un texto largo se
   recorte por arriba del contenedor y se solape con el subtítulo de abajo. */
.hero-title-layer {
  display: none;
  position: relative; /* contiene a los ecos posicionados del efecto "echo" */
}
.hero-title-layer.is-active { display: block; }

.hero-title-live {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500) 55%, var(--lilac-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}
.hero-title-echo {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: block;
  text-align: inherit;
  pointer-events: none;
  will-change: transform, opacity;
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500) 55%, var(--lilac-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero-actions { display: flex; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }

/* Collage de fotos reales de productos */
.hero-showcase { position: relative; height: 460px; }
.hero-photo {
  position: absolute;
  width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}
.hero-photo-1 { width: 250px; top: 0; left: 30px; transform: rotate(-6deg); z-index: 3; }
.hero-photo-2 { width: 210px; top: 150px; left: 250px; transform: rotate(7deg); z-index: 2; }
.hero-photo-3 { width: 190px; top: 290px; left: 0; transform: rotate(5deg); z-index: 1; }

@media (max-width: 900px) {
  .hero { padding: 100px 0 60px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-showcase { height: auto; display: flex; justify-content: center; gap: 14px; margin-top: 20px; }
  .hero-photo { position: static; transform: none !important; width: 100px; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(175deg, var(--lilac-50), var(--pink-100) 55%, var(--cream)); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--purple-800);
  text-align: center;
  margin: 0 0 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 46px;
}

/* Títulos divididos en palabras (animados con GSAP, ver site.js) */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split-word { display: inline-block; will-change: transform, opacity; }
/* El degradado de .hero-title se pinta sobre el propio texto: al dividirlo en
   palabras hay que repetir el clip en cada una para que sea visible. */
.hero-title .split-word {
  background: linear-gradient(120deg, var(--purple-800), var(--purple-500) 55%, var(--lilac-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Filtros de categoría ---------- */
/* Cada categoría tiene su propio color (rosa/turquesa/dorado, tomados del
   logo) para que el color funcione como guía visual entre el filtro, la
   etiqueta sobre la foto y el borde de la tarjeta del producto — no es
   decoración suelta. */
.category-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--lilac-200);
  background: var(--white);
  color: var(--purple-700);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pill:hover { border-color: var(--purple-500); transform: translateY(-2px); }
.pill.active { background: linear-gradient(135deg, var(--purple-600), var(--purple-500)); color: #fff; border-color: transparent; box-shadow: var(--shadow-card); }

.pill[href="#cat-agendas-personales"] { border-color: var(--pink-200); color: var(--pink-600); }
.pill[href="#cat-agendas-personales"]:hover { border-color: var(--pink-500); }
.pill[href="#cat-agendas-personales"].active { background: linear-gradient(135deg, var(--pink-600), var(--pink-400)); }

.pill[href="#cat-agendas-pediatricas"] { border-color: var(--teal-200); color: var(--teal-600); }
.pill[href="#cat-agendas-pediatricas"]:hover { border-color: var(--teal-500); }
.pill[href="#cat-agendas-pediatricas"].active { background: linear-gradient(135deg, var(--teal-600), var(--teal-400)); }

.pill[href="#cat-otros-productos"] { border-color: var(--gold-200); color: var(--gold-600); }
.pill[href="#cat-otros-productos"]:hover { border-color: var(--gold-500); }
.pill[href="#cat-otros-productos"].active { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); }

/* ---------- Grid de productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
  perspective: 1200px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--lilac-200);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s ease;
  will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow-soft); }
.product-card.is-hidden { display: none; }

/* El borde superior y la etiqueta comparten el color de la categoría del
   producto (ver los mismos tres colores en .pill arriba). */
.product-card[data-category="agendas-personales"] { border-top-color: var(--pink-400); }
.product-card[data-category="agendas-pediatricas"] { border-top-color: var(--teal-400); }
.product-card[data-category="otros-productos"] { border-top-color: var(--gold-400); }

.product-card-image { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--lilac-100); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-card-image img { transform: scale(1.08); }

.product-category-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(46, 16, 101, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.product-card[data-category="agendas-personales"] .product-category-tag { background: rgba(219, 39, 119, 0.82); }
.product-card[data-category="agendas-pediatricas"] .product-category-tag { background: rgba(13, 148, 136, 0.82); }
.product-card[data-category="otros-productos"] .product-category-tag { background: rgba(180, 83, 9, 0.82); }

/* Botón "Cotizar" de la tarjeta: relleno suave con el color de su
   categoría en vez de un simple contorno transparente (más invitante),
   sin tocar .btn-outline global (lo usa también el panel admin). */
.product-card .btn-outline {
  background: var(--lilac-100);
  border-color: transparent;
  color: var(--purple-700);
}
.product-card .btn-outline:hover { background: var(--purple-600); color: #fff; }
.product-card[data-category="agendas-personales"] .btn-outline { background: var(--pink-100); color: var(--pink-600); }
.product-card[data-category="agendas-personales"] .btn-outline:hover { background: var(--pink-600); color: #fff; }
.product-card[data-category="agendas-pediatricas"] .btn-outline { background: var(--teal-100); color: var(--teal-600); }
.product-card[data-category="agendas-pediatricas"] .btn-outline:hover { background: var(--teal-600); color: #fff; }
.product-card[data-category="otros-productos"] .btn-outline { background: var(--gold-100); color: var(--gold-600); }
.product-card[data-category="otros-productos"] .btn-outline:hover { background: var(--gold-600); color: #fff; }

.product-card-body { padding: 20px; }
.product-card-body h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--purple-800); }
.product-card-body p { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- Secciones de portafolio por categoría (home) ---------- */
.category-section { margin-bottom: 70px; scroll-margin-top: 100px; }
.category-section:last-child { margin-bottom: 0; }

.category-section-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.category-section-head h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--purple-800);
  margin: 0 0 8px;
}
.category-section-head p { color: var(--text-muted); margin: 0 0 14px; }
.category-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--purple-600);
  transition: gap 0.2s ease;
}
.category-section-link:hover { gap: 12px; color: var(--purple-700); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-muted); line-height: 1.7; font-size: 1.02rem; }
.about-visual { display: grid; gap: 18px; }
.about-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  color: var(--purple-800);
}
.about-card i {
  font-size: 1.05rem;
  color: #fff;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
}
.about-card:nth-of-type(1) i { background: linear-gradient(135deg, var(--pink-600), var(--pink-400)); }
.about-card:nth-of-type(2) i { background: linear-gradient(135deg, var(--teal-600), var(--teal-400)); }
.about-card:nth-of-type(3) i { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Categoría dedicada ---------- */
.category-hero { padding: 60px 0 20px; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--purple-600); font-weight: 600; margin-bottom: 20px; }
.empty-state { text-align: center; color: var(--text-muted); padding: 60px 0; }

.state-page { text-align: center; padding: 140px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: var(--lilac-100); padding: 70px 0 24px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo-card {
  display: inline-flex;
  background: var(--cream);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.footer-logo { height: 76px; width: auto; }
.footer-brand p { color: rgba(237, 233, 254, 0.7); max-width: 320px; line-height: 1.6; }
.footer-contact, .footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-contact h4, .footer-links h4 { margin: 0 0 6px; color: #fff; }
.footer-contact a, .footer-links a { color: rgba(237, 233, 254, 0.85); display: flex; align-items: center; gap: 10px; transition: color 0.2s ease; }
.footer-contact a:hover, .footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 50px; color: rgba(237, 233, 254, 0.5); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-credit { margin-top: 6px; }
.footer-credit a { color: rgba(237, 233, 254, 0.75); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: #fff; }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Botón flotante WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 14px 30px -10px rgba(29, 168, 81, 0.6);
  z-index: 200;
  animation: pulse-wa 2.4s infinite;
}
/* En mobile las tarjetas y textos ocupan casi todo el ancho, así que el
   botón fijo tapaba títulos y párrafos al pasar por encima al hacer
   scroll (ej. el título de una tarjeta de producto, o el párrafo de
   "Nosotros"). Achicarlo y pegarlo más a la esquina reduce cuánto texto
   cubre, sin bajar del tamaño mínimo recomendado para un botón táctil. */
@media (max-width: 480px) {
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 14px;
    right: 14px;
    font-size: 1.3rem;
  }
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Animaciones scroll-reveal (activadas por site.js/GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Alertas (compartidas con admin) ---------- */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #b91c1c; }
