/* ============================================
   JG MODA — ESTILOS BASE (MOBILE-FIRST)
   ============================================ */

/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-bg: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #6B6B6B;
  --color-cream: #F5F0EB;
  --color-cream-dark: #EDE6DD;
  --color-dark: #2C2226;
  --color-dark-card: #2E2228;
  --color-whatsapp: #25D366;
  --color-border: #E8E2DC;
  --color-wine: #6B2D4A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  /* Safe area para iPhone con notch */
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.header-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.header-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.header-link:hover { border-color: var(--color-text); }

/* ========== HERO CAROUSEL ========== */
.hero-section { padding: 16px 16px 0; }

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel.is-dragging .carousel-track { transition: none; }

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  position: relative;
}

.slide-1 { background: linear-gradient(160deg, #F2C6C8 0%, #D4A0A8 30%, #C48B94 60%, #A67080 100%); }
.slide-2 { background: linear-gradient(160deg, #D4C5A0 0%, #C6B88E 30%, #B8A87A 60%, #A09068 100%); }
.slide-3 { background: linear-gradient(160deg, #C88BA0 0%, #A06878 30%, #8B4A60 60%, #6B2D4A 100%); }

.slide-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text);
}

.slide-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.slide-title em { font-style: italic; font-weight: 500; }

.slide-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.carousel-indicators { display: flex; gap: 6px; flex: 1; }

.carousel-dot {
  height: 3px;
  border-radius: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.4s;
  cursor: pointer;
}

.carousel-dot.active { background: rgba(255, 255, 255, 0.9); }

.carousel-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ========== INSTAGRAM BANNER ========== */
.ig-banner {
  margin: 12px 16px 0;
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.ig-banner:active { transform: scale(0.98); opacity: 0.9; }

.ig-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737, #FCAF45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ig-icon svg { width: 22px; height: 22px; fill: #fff; }
.ig-text { flex: 1; min-width: 0; }

.ig-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.2;
}

.ig-handle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.ig-arrow { color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.ig-arrow svg { width: 18px; height: 18px; }

/* ========== CTA / COTIZA ========== */
.cta-section {
  margin: 16px 16px 0;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  position: relative;
  overflow: hidden;
}

.cta-deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1.5px solid var(--color-cream-dark);
  opacity: 0.6;
}

.cta-deco-2 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  opacity: 0.4;
}

.cta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-wine);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-title em { font-style: italic; font-weight: 500; }

.cta-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 60px;
  background: var(--color-whatsapp);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.cta-whatsapp:active { transform: scale(0.97); }
.cta-whatsapp:hover { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
.cta-whatsapp svg { width: 20px; height: 20px; fill: #FFFFFF; }

.cta-note {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ========== PREVIEW / PASARELA ========== */
.preview-section { padding: 40px 16px 0; }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-divider span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.section-divider::before,
.section-divider::after {
  content: '—';
  color: var(--color-text-light);
  font-size: 12px;
}

.preview-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
}

.preview-title em { font-style: italic; font-weight: 500; }

.preview-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-cta {
  margin-top: 16px;
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}

.preview-cta:hover { border-color: var(--color-text); background: var(--color-cream); }
.preview-cta svg { width: 16px; height: 16px; }

/* ========== STATS ========== */
.stats-section { margin: 40px 16px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-wine);
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ========== LOOK CARD (usado en preview y catálogo) ========== */
.look-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--color-cream-dark);
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.look-card:active { transform: scale(0.97); }

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

.look-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #F5E6EC 0%, #E8C8D0 50%, #D4A8B4 100%);
}

.look-card-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255, 255, 255, 0.7);
}

.look-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
}

.look-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #FFFFFF;
}

.look-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.look-price {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 16px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
}

.social-icon:hover { border-color: var(--color-text); background: var(--color-cream); }
.social-icon svg { width: 18px; height: 18px; }
.social-icon.wa { background: var(--color-wine); border-color: var(--color-wine); }
.social-icon.wa svg { fill: #FFFFFF; }

.footer-handle {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ========== SKELETON LOADER ========== */
.skeleton {
  background: linear-gradient(90deg, #F0EBE6 25%, #E5DED7 50%, #F0EBE6 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================================
   RESPONSIVE — TABLET (≥ 641px)
   ======================================================== */
@media (min-width: 641px) {
  .header { padding: 18px 32px; }
  .header-logo { width: 44px; height: 44px; font-size: 15px; }
  .header-name { font-size: 22px; }

  .hero-section { padding: 24px 24px 0; }
  .carousel { aspect-ratio: 16 / 10; }
  .carousel-slide { padding: 40px 36px; }
  .slide-title { font-size: 40px; }
  .slide-desc { font-size: 15px; max-width: 460px; }
  .slide-badge { top: 28px; left: 28px; font-size: 11px; padding: 8px 16px; }

  .ig-cta-row { display: flex; gap: 16px; margin: 16px 24px 0; align-items: stretch; }
  .ig-banner { flex: 1; margin: 0; padding: 20px 24px; }
  .ig-title { font-size: 20px; }
  .cta-section { flex: 1; margin: 0; }

  .preview-section { padding: 56px 24px 0; }
  .preview-title { font-size: 36px; margin-bottom: 24px; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .stats-section { margin: 56px 24px 0; }

  .footer { padding: 56px 24px 40px; }
}

/* ========================================================
   RESPONSIVE — DESKTOP (≥ 1024px)
   ======================================================== */
@media (min-width: 1024px) {
  .header { padding: 20px 40px; }
  .header-brand { gap: 14px; }
  .header-logo { width: 48px; height: 48px; font-size: 16px; }
  .header-name { font-size: 24px; }

  .hero-section { padding: 32px 40px 0; }
  .carousel { aspect-ratio: 16 / 9; border-radius: var(--radius-xl); }
  .carousel-slide { padding: 56px 64px; }
  .slide-badge { top: 36px; left: 40px; font-size: 11px; padding: 9px 18px; letter-spacing: 3px; }
  .slide-label { font-size: 11px; letter-spacing: 3px; margin-bottom: 14px; }
  .slide-title { font-size: 56px; line-height: 1.1; margin-bottom: 18px; max-width: 720px; }
  .slide-desc { font-size: 17px; max-width: 540px; margin-bottom: 32px; }
  .carousel-footer { max-width: 520px; }
  .carousel-counter { font-size: 13px; }

  .ig-cta-row { gap: 24px; margin: 24px 40px 0; }
  .ig-banner { padding: 28px 32px; gap: 18px; border-radius: var(--radius-lg); }
  .ig-icon { width: 52px; height: 52px; border-radius: 14px; }
  .ig-icon svg { width: 26px; height: 26px; }
  .ig-title { font-size: 24px; }
  .ig-handle { font-size: 11px; letter-spacing: 2.5px; margin-top: 5px; }
  .ig-arrow svg { width: 22px; height: 22px; }

  .cta-section { padding: 40px 36px 32px; }
  .cta-deco { width: 160px; height: 160px; top: -30px; right: -30px; }
  .cta-deco-2 { width: 100px; height: 100px; }
  .cta-label { font-size: 11px; letter-spacing: 3px; }
  .cta-title { font-size: 36px; margin-bottom: 12px; }
  .cta-desc { font-size: 15px; margin-bottom: 28px; }
  .cta-whatsapp { padding: 18px 32px; font-size: 16px; max-width: 360px; }
  .cta-note { font-size: 11px; }

  .preview-section { padding: 80px 40px 0; }
  .section-divider { margin-bottom: 28px; }
  .section-divider span { font-size: 11px; letter-spacing: 3.5px; }
  .preview-title { font-size: 44px; text-align: center; margin-bottom: 32px; }
  .preview-desc { text-align: center; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .preview-cta { max-width: 320px; margin: 32px auto 0; padding: 18px; }

  .stats-section { margin: 80px 40px 0; }
  .stat-card { padding: 28px 16px; }
  .stat-number { font-size: 34px; }

  .footer {
    padding: 64px 40px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
    gap: 24px;
  }
  .footer-brand { font-size: 32px; margin-bottom: 0; }
  .footer-socials { justify-content: center; margin-bottom: 0; gap: 14px; }
  .social-icon { width: 48px; height: 48px; }
  .social-icon svg { width: 20px; height: 20px; }
  .footer-handle { text-align: right; font-size: 11px; letter-spacing: 2.5px; }
}

/* ========================================================
   RESPONSIVE — DESKTOP GRANDE (≥ 1440px)
   ======================================================== */
@media (min-width: 1440px) {
  .slide-title { font-size: 64px; }
  .carousel-slide { padding: 64px 80px; }
}

/* ========== ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ========================================================
   v1.4.0 — Logo en el encabezado
   ======================================================== */
.header-logo-img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 641px) { .header-logo-img { width: 44px; height: 44px; } }
@media (min-width: 1024px) { .header-logo-img { width: 48px; height: 48px; } }

/* ========================================================
   v1.5.0 — Las tarjetas ahora son enlaces (Google los sigue).
   Se ven igual que antes.
   ======================================================== */
a.look-card {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================
   v1.6.0 — Footer gris espacial, estructurado
   ======================================================== */
.site-footer {
  --footer-bg: #2E3034;
  --footer-ink: #F2F0ED;
  --footer-muted: #A6A8AD;
  --footer-line: rgba(255, 255, 255, 0.10);
  margin-top: 56px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 44px 20px 0;
}

.site-footer a { color: inherit; text-decoration: none; }

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}

.site-footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }

.site-footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-footer-logo img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.site-footer-logo span { font-family: var(--font-display); font-size: 28px; font-style: italic; line-height: 1; }

.site-footer-tagline { max-width: 34ch; margin: 0; color: var(--footer-muted); font-size: 14px; line-height: 1.6; }

.site-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--color-cream);
  color: #2E3034 !important;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, background 0.2s;
}
.site-footer-cta svg { width: 18px; height: 18px; color: #1F8F4E; }
.site-footer-cta:hover { background: #FFFFFF; }
.site-footer-cta:active { transform: scale(0.98); }

.site-footer-col { display: grid; align-content: start; gap: 12px; min-width: 0; }
.site-footer-col h3 {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.site-footer-col a { font-size: 15px; color: var(--footer-ink); width: fit-content; transition: color 0.2s; }
.site-footer-col a:hover { color: var(--color-cream); text-decoration: underline; text-underline-offset: 4px; }
.site-footer-col a[hidden] { display: none; }

.site-footer-contact { display: inline-flex; align-items: center; gap: 9px; overflow-wrap: anywhere; }
.site-footer-contact svg { width: 16px; height: 16px; flex: none; color: var(--footer-muted); }

.site-footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-footer-bottom p { margin: 0; font-size: 12px; color: var(--footer-muted); letter-spacing: 0.3px; }

.site-footer-socials { display: flex; gap: 10px; }
.site-footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--footer-line);
  display: grid;
  place-items: center;
  color: var(--footer-ink);
  transition: background 0.2s, border-color 0.2s;
}
.site-footer-socials a[hidden] { display: none; }
.site-footer-socials a:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.site-footer-socials svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .site-footer { padding: 64px 40px 0; }
  .site-footer-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .site-footer-brand { grid-column: auto; }
  .site-footer-bottom { margin-top: 48px; }
}

/* ========================================================
   v1.11.0 — «Cómo funciona»: línea de tiempo + envíos a todo Panamá
   ======================================================== */
.jx { padding: 64px 16px 0; }
.jx-head { text-align: center; }
.jx-title { margin: 10px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.05; color: var(--color-text); }
.jx-title em { font-style: italic; color: var(--color-wine); }
.jx-desc { margin: 0 auto; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--color-text-light); }

/* Línea de tiempo */
.jx-steps-wrap { position: relative; margin-top: 40px; }
.jx-line { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--color-cream-dark); overflow: hidden; }
.jx-line-fill { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, #A8326E, var(--color-wine)); border-radius: 2px; }
.jx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.jx-step { position: relative; display: grid; gap: 14px; padding-left: 58px; }
.jx-node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: #FFFFFF; border: 2px solid var(--color-cream-dark); color: var(--color-text-light);
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s;
}
.jx-step.is-active .jx-node { background: var(--color-wine); border-color: var(--color-wine); color: #FFFFFF; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(107, 45, 74, 0.12); }
.jx-art svg { display: block; width: 100%; height: auto; max-width: 520px; margin: 0 auto; overflow: visible; }
.jx-copy { display: grid; gap: 10px; }
.jx-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.6px; text-transform: uppercase; color: var(--color-wine); }
.jx-kicker.is-gold { color: #D9C08A; }
.jx-copy h3, .jx-ship-copy h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--color-text); }
.jx-copy h3 em, .jx-ship-copy h3 em { font-style: italic; color: var(--color-wine); }
.jx-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--color-text-light); max-width: 46ch; }
.jx-bullets { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jx-bullets li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--color-cream); font-size: 13px; font-weight: 700; color: var(--color-text); }
.jx-bullets li span { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--color-wine); flex: none; }
.jx-bullets li span::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Textos de las ilustraciones */
.jx-ph-brand { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 15px; fill: var(--color-text); }
.jx-ph-search { font-family: var(--font-body); font-weight: 500; font-size: 9px; fill: #9A8E94; }
.jx-ph-btn { font-family: var(--font-body); font-weight: 800; font-size: 10.5px; fill: #FFFFFF; }
.jx-ph-title { font-family: var(--font-body); font-weight: 800; font-size: 12px; fill: var(--color-text); }
.jx-ph-row { font-family: var(--font-body); font-weight: 700; font-size: 11px; fill: var(--color-text); }
.jx-ph-ok { font-family: var(--font-body); font-weight: 800; font-size: 11px; fill: #2E7D5B; }
.jx-tag-k { font-family: var(--font-body); font-weight: 800; font-size: 9.5px; letter-spacing: 2px; fill: var(--color-wine); }
.jx-tag-v { font-family: var(--font-body); font-weight: 700; font-size: 19px; fill: var(--color-text); }
.jx-chip-t { font-family: var(--font-body); font-weight: 800; font-size: 14px; fill: var(--color-text); }
.jx-ring-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; fill: var(--color-text); }
.jx-card-t { font-family: var(--font-body); font-weight: 800; font-size: 9px; letter-spacing: 2px; fill: #F2D9E3; }
.jx-card-big { font-family: var(--font-display); font-weight: 600; font-size: 24px; fill: #FFFFFF; }
.jx-coin-t { font-family: var(--font-body); font-weight: 800; font-size: 11px; fill: #7A5A1E; }
.jx-meas { font-family: var(--font-body); font-weight: 700; font-size: 13px; fill: var(--color-text); }
.jx-ripple { opacity: 0.18; }
.jx-ring { stroke-dasharray: 100; stroke-dashoffset: 50; }

/* Franja de envíos */
.jx-ship {
  width: 100vw; margin: 72px 0 0 calc(50% - 50vw); padding: 56px 16px 48px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(168, 50, 110, 0.28), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(217, 192, 138, 0.14), transparent 60%),
    #2C2226;
  color: #F5F0EB;
}
.jx-ship-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; }
.jx-ship-copy { display: grid; gap: 12px; }
.jx-ship-copy h3 { color: #FFFFFF; font-size: 36px; }
.jx-ship-copy h3 em { color: #E7C7D5; }
.jx-ship-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #D9CFD4; max-width: 44ch; }
.jx-carriers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jx-carriers li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(245, 240, 235, 0.07); border: 1px solid rgba(245, 240, 235, 0.12); font-size: 13.5px; font-weight: 700; }
.jx-carriers li svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: rgba(217, 192, 138, 0.18); color: #E5CF9E; }
.jx-ship-map { display: grid; gap: 12px; }
.jx-map { display: block; width: 100%; height: auto; overflow: visible; }
.jx-sea { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 7px; fill: rgba(245, 240, 235, 0.38); }
.jx-compass-t { font-family: var(--font-body); font-weight: 800; font-size: 14px; fill: #D9C08A; }
.jx-prov { fill: #F5F0EB; stroke: #2C2226; stroke-width: 1.3; stroke-linejoin: round; cursor: pointer; transition: fill 0.25s, opacity 0.5s ease calc(var(--i, 0) * 70ms + var(--delay, 0s)); outline: none; }
.jx-prov.is-comarca { fill: #E6DACF; }
.jx-prov:hover, .jx-prov:focus-visible, .jx-prov.is-on { fill: #E5CF9E; }
.jx-prov.is-on { fill: #D9C08A; }
.jx-route { fill: none; stroke: #6B2D4A; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; opacity: 0.7; pointer-events: none; }
.jx-label { font-family: var(--font-body); font-weight: 800; font-size: 16px; fill: #2C2226; pointer-events: none; paint-order: stroke; stroke: rgba(245, 240, 235, 0.85); stroke-width: 4px; stroke-linejoin: round; }
.jx-label.is-comarca { font-style: italic; font-weight: 600; font-size: 12.5px; fill: #6E6268; }
.jx-pin { pointer-events: none; }
.jx-van-t { font-family: var(--font-body); font-weight: 800; font-size: 11px; fill: #F5F0EB; }
.jx-map-caption { margin: 0; font-size: 14px; font-weight: 600; color: #E7DDE2; text-align: center; min-height: 1.5em; }
.jx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.jx-legend button { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(245, 240, 235, 0.25); background: transparent; color: #F5F0EB; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.jx-legend button.is-on { background: #D9C08A; border-color: #D9C08A; color: #2C2226; }

/* Cierre */
.jx-cta {
  margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-wine), #8B3A5F);
  color: #FFFFFF;
}
.jx-cta strong { display: block; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 30px; line-height: 1.05; }
.jx-cta span { display: block; margin-top: 6px; font-size: 14px; color: #F2D9E3; }
.jx-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: #F5F0EB; color: var(--color-wine); font-size: 15px; font-weight: 800; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.jx-cta-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.jx-cta-btn:hover { background: #FFFFFF; }
.jx-cta-btn:hover svg { transform: translateX(4px); }

/* ---------- Animaciones (solo con JavaScript y sin «reducir movimiento») ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease var(--d, 0s); }
.js .reveal.is-visible .draw { stroke-dashoffset: 0; }
.js .reveal .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0s), opacity 0.25s ease var(--d, 0s); }
.js .reveal.is-visible .pop { transform: scale(1); opacity: 1; }
.js .reveal .slide-l, .js .reveal .slide-r { opacity: 0; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s, opacity 0.5s ease 0.5s; }
.js .reveal .slide-l { transform: translateX(-46px); }
.js .reveal .slide-r { transform: translateX(46px); }
.js .reveal.is-visible .slide-l, .js .reveal.is-visible .slide-r { opacity: 1; transform: none; }
.js .reveal .jx-phone { transform-box: fill-box; }
.js .reveal .jx-ring { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s cubic-bezier(0.3, 0.7, 0.3, 1) 0.5s; }
.js .reveal.is-visible .jx-ring { stroke-dashoffset: 50; }
.js .reveal .jx-coin { opacity: 0; transform: translateY(-60px); transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d, 0s), opacity 0.3s ease var(--d, 0s); }
.js .reveal.is-visible .jx-coin { opacity: 1; transform: none; }
.js .reveal .jx-prov { opacity: 0; }
.js .reveal.is-visible .jx-prov { opacity: 1; }
.js .reveal.is-visible .jx-twinkle { animation: jx-twinkle 2.6s ease-in-out infinite var(--d, 0s); }
.jx-twinkle { transform-box: fill-box; transform-origin: center; }
@keyframes jx-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }
.jx-ripple { transform-box: fill-box; transform-origin: center; }
.js .reveal.is-visible .jx-ripple { animation: jx-ripple 1.8s ease-out infinite 1.2s; }
@keyframes jx-ripple { from { transform: scale(0.6); opacity: 0.35; } to { transform: scale(2.4); opacity: 0; } }
.jx-pulse { transform-box: fill-box; transform-origin: center; opacity: 0.35; }
.js .reveal.is-visible .jx-pulse { animation: jx-pulse 2.2s ease-out infinite; }
@keyframes jx-pulse { from { transform: scale(1); opacity: 0.4; } to { transform: scale(3); opacity: 0; } }
.jx-needle { transform-box: fill-box; transform-origin: center; }
.js .reveal.is-visible .jx-needle { animation: jx-sew 1.1s ease-in-out infinite 1s; }
@keyframes jx-sew { 50% { transform: translate(-5px, 7px); } }
.jx-thread { stroke-dasharray: 5 5; }
.js .reveal.is-visible .jx-thread { animation: jx-thread 1.4s linear infinite; }
@keyframes jx-thread { to { stroke-dashoffset: -20; } }
.jx-van { opacity: 0; transition: opacity 0.5s ease 2s; }
.js .reveal.is-visible .jx-van { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal .pop, .js .reveal .slide-l, .js .reveal .slide-r, .js .reveal .jx-coin, .js .reveal .jx-prov { opacity: 1; transform: none; transition: none; }
  .js .reveal .draw { stroke-dashoffset: 0; transition: none; }
  .js .reveal .jx-ring { stroke-dashoffset: 50; transition: none; }
  .js .reveal.is-visible .jx-twinkle, .js .reveal.is-visible .jx-ripple, .js .reveal.is-visible .jx-pulse, .js .reveal.is-visible .jx-needle, .js .reveal.is-visible .jx-thread { animation: none; }
  .jx-van { display: none; }
  .jx-line-fill { transition: none; }
}

/* Celular: sin nombres sobre el mapa (no se leerían); se usan los botones de provincia */
@media (max-width: 640px) {
  .jx-label { display: none; }
  .jx-sea { font-size: 22px; }
  .jx-compass { display: none; }
}
@media (min-width: 641px) {
  .jx { padding: 88px 24px 0; }
  .jx-title { font-size: 48px; }
  .jx-legend { display: none; }
  .jx-ship { padding: 72px 24px 64px; }
  .jx-carriers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jx-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 36px; }
}
@media (min-width: 960px) {
  .jx-title { font-size: 56px; }
  .jx-line { left: 50%; transform: translateX(-50%); }
  .jx-steps { gap: 88px; }
  .jx-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 112px; align-items: center; padding-left: 0; }
  .jx-node { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; font-size: 22px; }
  .jx-step.is-active .jx-node { transform: translate(-50%, -50%) scale(1.08); }
  .jx-right .jx-copy { order: -1; text-align: right; justify-items: end; }
  .jx-right .jx-bullets { justify-content: flex-end; }
  .jx-copy h3 { font-size: 44px; }
  .jx-ship-inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); align-items: center; gap: 48px; }
  .jx-ship-copy h3 { font-size: 48px; }
  .jx-carriers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jx-cta { max-width: 980px; margin: 40px auto 0; }
}
