/* ═══════════════════════════════════════════════════════════════
   styles.css  |  Marleni's Repostería
   Estructura:
     1.  Variables y reset
     2.  Tipografía base
     3.  Utilidades / Container
     4.  Header y navegación
     5.  Hero
     6.  Secciones generales
     7.  Cards de producto
     8.  Sección Diseños Propios
     9.  Sección CTA / WhatsApp
    10.  Footer
    11.  Botón Volver Arriba
    12.  Botón flotante WhatsApp
    13.  Responsive
    14.  Accesibilidad / Reduced motion
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. Variables y Reset
───────────────────────────────────────── */
:root {
  /* Paleta */
  --color-bg:           #16162A;
  --color-bg-alt:       #1E1E35;
  --color-surface:      #25253F;
  --color-surface-hover:#2E2E50;
  --color-accent:       #C8956C;
  --color-accent-light: #E8C4A0;
  --color-accent-dark:  #A0704A;
  --color-text:         #F0E8DF;
  --color-text-muted:   #A89880;
  --color-white:        #FFFFFF;
  --color-wa:           #25D366;
  --color-wa-dark:      #128C7E;
  --color-badge-own:    #7C5CBF;

  /* Tipografía */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', system-ui, sans-serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.375rem;
  --fs-xl:    1.75rem;
  --fs-2xl:   2.25rem;
  --fs-3xl:   3rem;
  --fs-4xl:   4rem;

  /* Espaciado */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;

  /* Bordes */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-xl:  24px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);
  --shadow-accent: 0 4px 20px rgba(200,149,108,0.35);

  /* Transiciones */
  --transition-fast:  150ms ease;
  --transition-base:  280ms ease;
  --transition-slow:  480ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-h:  70px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─────────────────────────────────────────
   2. Tipografía base
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text);
}

p {
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────
   3. Utilidades / Container
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(200,149,108,0.5);
}

.btn--wa {
  background-color: var(--color-wa);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.btn--wa:hover,
.btn--wa:focus-visible {
  background-color: var(--color-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: var(--fs-md);
}

.wa-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   4. Header y Navegación
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background-color: rgba(22, 22, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,149,108,0.15);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo-link {
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.logo-link:hover { opacity: 0.85; }

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  flex-direction: column;
  line-height: 1.1;
}

.logo-fallback-text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-accent);
}

.logo-fallback-sub {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Menú de navegación */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent-light);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link--cta {
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xl);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: transparent;
  border: 1px solid rgba(200,149,108,0.3);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.nav-toggle:hover { border-color: var(--color-accent); }

.burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .burger-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   5. Hero
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a0e2e 0%, #1e1635 40%, #2a1a0f 100%);
  overflow: hidden;
}

/* Textura decorativa sutil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 60%, rgba(200,149,108,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(124,92,191,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16,16,28,0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: var(--space-3xl);
}

.hero-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl));
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent-light);
}

.hero-desc {
  font-size: var(--fs-md);
  color: rgba(240,232,223,0.78);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* Indicador de scroll */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0.4; transform: translateY(8px); }
}

/* ─────────────────────────────────────────
   6. Secciones generales
───────────────────────────────────────── */
.catalog-section {
  padding-block: var(--space-3xl);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-heading--light .section-eyebrow { color: var(--color-accent-light); }

.section-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-block: var(--space-lg);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.section-divider span {
  font-size: var(--fs-lg);
  line-height: 1;
}

.section-desc {
  max-width: 600px;
  margin-inline: auto;
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Bloques de categoría */
.category-block {
  margin-bottom: var(--space-3xl);
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(200,149,108,0.2);
}

.category-title {
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-2xl));
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
}

.category-desc {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  max-width: 680px;
}

/* ─────────────────────────────────────────
   7. Grid y Cards de producto (MOBILE FIRST)
───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.product-card:hover,
.product-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,149,108,0.2);
  outline: none;
}

/* Wrapper de imagen — IMAGEN GRANDE ES PRIORIDAD EN MÓVIL */
.card-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .card-img {
  transform: scale(1.05);
}

/* Quick overlay sutil — solo indica que es clickeable */
.card-overlay-quick {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,12,30,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.product-card:hover .card-overlay-quick,
.product-card:focus .card-overlay-quick {
  opacity: 1;
}

/* Cuerpo de la card */
.card-body {
  padding: var(--space-md);
}

.card-name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.card-summary {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA "Ver detalles" en la tarjeta */
.card-cta {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-top: var(--space-xs);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-card:hover .card-cta,
.product-card:focus .card-cta {
  color: var(--color-accent-light);
}

/* Descripción completa (oculta, se muestra en modal) */
.card-description {
  display: none;
}

/* Badge */
.card-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background-color: rgba(200,149,108,0.18);
  color: var(--color-accent-light);
  border: 1px solid rgba(200,149,108,0.3);
  margin-top: var(--space-xs);
}

.card-badge.own {
  background-color: rgba(124,92,191,0.18);
  color: #B39DDB;
  border-color: rgba(124,92,191,0.3);
}

/* ─────────────────────────────────────────
   7.1 Modal de Producto (Profesional, Centrado)
───────────────────────────────────────── */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), background-color var(--transition-base);
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.65);
}

.modal-content {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(200,149,108,0.2);
  animation: modalSlideUp var(--transition-base);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  z-index: 1;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-body {
  padding: var(--space-xl);
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-light);
}

.modal-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.modal-description {
  font-size: var(--fs-base);
  color: rgba(240,232,223,0.85);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.modal-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid rgba(200,149,108,0.1);
  background-color: rgba(22,22,42,0.5);
}

.modal-cta-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  text-align: center;
}

.modal-cta-text strong {
  color: var(--color-accent-light);
  font-weight: 700;
}

.modal-btn-wa {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

/* ─────────────────────────────────────────
   8. Sección Diseños Propios
───────────────────────────────────────── */
.own-designs-section {
  background-color: var(--color-bg-alt);
  padding-block: var(--space-3xl);
  border-top: 1px solid rgba(200,149,108,0.15);
  border-bottom: 1px solid rgba(200,149,108,0.15);
}

.own-designs-section .section-title { color: var(--color-accent-light); }
.own-designs-section .section-eyebrow { color: var(--color-accent); }

.product-card--own {
  border-color: rgba(124,92,191,0.15);
}

.product-card--own:hover {
  border-color: rgba(124,92,191,0.4);
  box-shadow: 0 12px 40px rgba(124,92,191,0.2);
}

/* ─────────────────────────────────────────
   9. Sección CTA / WhatsApp
───────────────────────────────────────── */
.cta-section {
  padding-block: var(--space-3xl);
  background: linear-gradient(135deg, #1a0e2e 0%, #1e1e35 50%, #1a120a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(200,149,108,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  color: var(--color-white);
  margin-block: var(--space-sm) var(--space-md);
}

.cta-desc {
  max-width: 520px;
  margin-inline: auto;
  font-size: var(--fs-md);
  color: rgba(240,232,223,0.72);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   10. Footer
───────────────────────────────────────── */
.site-footer-bottom {
  background-color: rgba(12,12,22,0.95);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-accent);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* ─────────────────────────────────────────
   11. Botón Volver Arriba
───────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: calc(var(--space-xl) + 72px); /* sobre el botón de WhatsApp */
  right: var(--space-xl);
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid rgba(200,149,108,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), background-color var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}

.back-to-top:not([hidden]) {
  opacity: 1;
}

.back-to-top[hidden] {
  display: flex !important; /* override hidden para animación */
  pointer-events: none;
  opacity: 0;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  outline: none;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text);
}

/* ─────────────────────────────────────────
   12. Botón flotante WhatsApp
───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: visible;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
  transition: transform var(--transition-base);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  outline: none;
}

.whatsapp-float:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-wa);
  outline-offset: 4px;
}

/* Tooltip del botón flotante */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: var(--color-wa-dark);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-wa-dark);
}

.whatsapp-float:hover .wa-tooltip,
.whatsapp-float:focus-visible .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulso de atención */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--color-wa);
  z-index: -1;
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ─────────────────────────────────────────
   13. Responsive
───────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .container {
    padding-inline: var(--space-lg);
  }

  /* Navegación móvil */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: rgba(16,16,30,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200,149,108,0.2);
    padding: var(--space-xl);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: 850;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: flex-start;
  }

  .nav-link {
    font-size: var(--fs-base);
  }

  .nav-link--cta {
    padding: 0.6rem 1.4rem;
  }

  /* Grid de productos: TABLET - 2 columnas */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Card en tablet */
  .card-img-wrapper {
    aspect-ratio: 1 / 1;
  }

  /* Modal en tablet */
  .modal-content {
    max-width: 90vw;
  }

  /* Botones flotantes */
  .back-to-top {
    bottom: calc(var(--space-xl) + 64px);
    right: var(--space-lg);
  }

  .whatsapp-float {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .wa-tooltip {
    display: none;
  }
}

/* Breakpoint DESKTOP: 3+ columnas */
@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .card-img-wrapper {
    aspect-ratio: 1 / 1;
  }

  .modal-content {
    max-width: 650px;
  }
}

/* Breakpoint LARGE DESKTOP: 4 columnas */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }

  /* Grid de productos: MÓVIL - 2 columnas compactas */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .hero-content {
    padding-block: var(--space-2xl);
  }

  /* Card en móvil - compacta */
  .card-img-wrapper {
    aspect-ratio: 1 / 1;
  }

  .card-body {
    padding: var(--space-sm) var(--space-md);
  }

  .card-name {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-xs);
  }

  .card-summary {
    font-size: var(--fs-xs);
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .card-cta {
    font-size: var(--fs-xs);
    margin-top: var(--space-xs);
  }

  /* Modal en móvil */
  .product-modal {
    padding: var(--space-sm);
  }

  .modal-content {
    max-width: 100%;
    max-height: 95vh;
  }

  .modal-header {
    aspect-ratio: 16 / 9;
  }

  .modal-body {
    padding: var(--space-lg);
  }

  .modal-footer {
    padding: var(--space-md) var(--space-lg);
  }

  .modal-name {
    font-size: var(--fs-md);
  }

  .modal-description {
    font-size: var(--fs-sm);
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: var(--fs-base);
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .card-body {
    padding: var(--space-sm);
  }

  .modal-body {
    padding: var(--space-md);
  }
}

/* ─────────────────────────────────────────
   14. Accesibilidad / Reduced Motion
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-dot { animation: none; }
  .whatsapp-float::after { animation: none; }
}

/* Focus visible global */
:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}