/* ═══════════════════════════════════════════════════════════════
   LATAM Hero — banner geo-aware con cross-fade entre 10 países
   Todos los selectores scoped bajo .latam-hero-section para evitar
   colisión con otros estilos del sitio.
   ═══════════════════════════════════════════════════════════════ */

.latam-hero-section,
.latam-hero-section * { box-sizing: border-box; }

.latam-hero-section .banner {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background: #0a0e1a;
  font-family: "Inter", system-ui, sans-serif;
}
@media (max-width: 768px) { .latam-hero-section .banner { min-height: 100vh; } }

/* Mesh layers stacked, only active is visible */
.latam-hero-section .mesh-stack { position: absolute; inset: 0; z-index: 0; }
.latam-hero-section .mesh-layer {
  position: absolute; inset: 0;
  transition: opacity 1200ms cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
}
.latam-hero-section .mesh-layer.active { opacity: 1; }

.latam-hero-section .mesh-mx { background:
  radial-gradient(ellipse 60% 50% at 12% 25%, rgba(0,104,71,0.65), transparent 60%),
  radial-gradient(ellipse 50% 45% at 88% 35%, rgba(206,17,38,0.5), transparent 60%),
  radial-gradient(ellipse 70% 50% at 50% 110%, rgba(168,112,44,0.35), transparent 60%),
  radial-gradient(ellipse 30% 30% at 70% 70%, rgba(110,242,160,0.3), transparent 70%),
  #0a0e1a; }
.latam-hero-section .mesh-co { background:
  radial-gradient(ellipse 60% 60% at 8% 0%, rgba(252,209,22,0.55), transparent 55%),
  radial-gradient(ellipse 50% 45% at 90% 40%, rgba(0,56,147,0.65), transparent 55%),
  radial-gradient(ellipse 60% 50% at 50% 110%, rgba(206,17,38,0.4), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-ar { background:
  radial-gradient(ellipse 70% 50% at 50% 0%, rgba(116,172,223,0.65), transparent 60%),
  radial-gradient(ellipse 40% 35% at 92% 50%, rgba(246,180,14,0.45), transparent 55%),
  radial-gradient(ellipse 60% 50% at 25% 110%, rgba(116,172,223,0.45), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-cl { background:
  radial-gradient(ellipse 60% 50% at 12% 0%, rgba(0,51,160,0.6), transparent 55%),
  radial-gradient(ellipse 50% 40% at 90% 30%, rgba(213,43,30,0.55), transparent 55%),
  radial-gradient(ellipse 60% 50% at 50% 110%, rgba(0,51,160,0.45), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-pe { background:
  radial-gradient(ellipse 60% 50% at 8% 0%, rgba(217,16,35,0.6), transparent 55%),
  radial-gradient(ellipse 60% 50% at 95% 50%, rgba(217,16,35,0.55), transparent 55%),
  radial-gradient(ellipse 50% 40% at 50% 110%, rgba(255,200,180,0.25), transparent 60%),
  #0a0e1a; }
.latam-hero-section .mesh-ec { background:
  radial-gradient(ellipse 80% 50% at 15% 5%, rgba(252,209,22,0.6), transparent 55%),
  radial-gradient(ellipse 60% 40% at 90% 35%, rgba(0,56,147,0.55), transparent 55%),
  radial-gradient(ellipse 70% 40% at 50% 100%, rgba(217,16,35,0.4), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-uy { background:
  radial-gradient(ellipse 80% 55% at 25% 0%, rgba(0,124,193,0.55), transparent 55%),
  radial-gradient(ellipse 60% 40% at 92% 45%, rgba(255,206,0,0.4), transparent 55%),
  radial-gradient(ellipse 70% 40% at 60% 100%, rgba(0,124,193,0.45), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-gt { background:
  radial-gradient(ellipse 70% 55% at 15% 5%, rgba(73,151,208,0.6), transparent 55%),
  radial-gradient(ellipse 70% 50% at 85% 30%, rgba(110,242,160,0.3), transparent 60%),
  radial-gradient(ellipse 60% 40% at 50% 100%, rgba(73,151,208,0.5), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-hn { background:
  radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0,135,189,0.6), transparent 55%),
  radial-gradient(ellipse 60% 50% at 95% 35%, rgba(0,135,189,0.45), transparent 55%),
  radial-gradient(ellipse 70% 40% at 50% 100%, rgba(120,200,240,0.3), transparent 55%),
  #0a0e1a; }
.latam-hero-section .mesh-sv { background:
  radial-gradient(ellipse 75% 50% at 12% 5%, rgba(0,71,158,0.65), transparent 55%),
  radial-gradient(ellipse 60% 40% at 92% 40%, rgba(0,71,158,0.5), transparent 55%),
  radial-gradient(ellipse 70% 45% at 55% 100%, rgba(180,140,50,0.25), transparent 60%),
  #0a0e1a; }

.latam-hero-section .grid-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
}
.latam-hero-section .grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay; opacity: 0.35; pointer-events: none;
}

/* INNER LAYOUT */
.latam-hero-section .inner {
  position: relative; z-index: 5;
  max-width: 1360px; margin: 0 auto;
  padding: 60px 32px 50px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 968px) {
  .latam-hero-section .inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 40px; }
}

/* LEFT: text */
.latam-hero-section .country-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  width: fit-content;
  margin-bottom: 28px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.latam-hero-section .country-badge.flash { animation: lh-pop 600ms cubic-bezier(.34,1.56,.64,1); }
@keyframes lh-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); box-shadow: 0 0 30px rgba(110,242,160,0.6); }
  100% { transform: scale(1); }
}
.latam-hero-section .country-badge .fb { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.25); }
.latam-hero-section .country-badge .fb svg { width: 100%; height: 100%; transform: scale(1.6); transform-origin: center; display: block; }
.latam-hero-section .country-badge .name { font-family: "JetBrains Mono", monospace; font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.12em; }
.latam-hero-section .country-badge .city { font-family: "JetBrains Mono", monospace; font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }
.latam-hero-section .country-badge .ping { width: 8px; height: 8px; border-radius: 50%; background: #6ef2a0; box-shadow: 0 0 0 0 rgba(110,242,160,0.6); animation: lh-ping 1.6s ease-out infinite; }
@keyframes lh-ping { 0% { box-shadow: 0 0 0 0 rgba(110,242,160,0.5); } 100% { box-shadow: 0 0 0 10px transparent; } }

.latam-hero-section .hero-anim { transition: opacity 380ms ease, transform 380ms ease; }
.latam-hero-section .hero-anim.swap-out { opacity: 0; transform: translateY(-6px); }

.latam-hero-section .headline {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.95;
  margin: 0 0 24px; color: #fff;
  font-family: "Inter", system-ui, sans-serif;
}
.latam-hero-section .headline em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }

.latam-hero-section .lead {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px; max-width: 520px;
}
.latam-hero-section .lead b { color: #fff; font-weight: 600; }

.latam-hero-section .cta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.latam-hero-section .btn-primary {
  padding: 16px 28px; border-radius: 12px;
  background: #fff; color: #0a0e1a;
  font-size: 15px; font-weight: 700;
  border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 18px 40px -16px rgba(255,255,255,0.4);
  transition: transform .15s;
}
.latam-hero-section .btn-primary:hover { transform: translateY(-1px); }
.latam-hero-section .btn-primary .arr { transition: transform .2s; }
.latam-hero-section .btn-primary:hover .arr { transform: translateX(4px); }
.latam-hero-section .btn-ghost {
  padding: 16px 24px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}

.latam-hero-section .live-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.latam-hero-section .live-item, .latam-hero-section .stars-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 12.5px; color: rgba(255,255,255,0.85);
}
.latam-hero-section .live-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #6ef2a0; animation: lh-ping 1.6s ease-out infinite; }
.latam-hero-section .live-item b { color: #fff; }
.latam-hero-section .live-item em { font-style: normal; color: #6ef2a0; }
.latam-hero-section .stars-pill .star { color: #ffd93d; }
.latam-hero-section .stars-pill b { color: #fff; }

/* RIGHT: product sticker */
.latam-hero-section .product-sticker {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px;
  padding: 32px;
  overflow: hidden;
  transform: rotate(-1deg);
}
.latam-hero-section .product-sticker .glow1 { position: absolute; top: -100px; right: -100px; width: 240px; height: 240px; border-radius: 50%; opacity: 0.4; filter: blur(35px); transition: background-color 800ms ease; }
.latam-hero-section .product-sticker .glow2 { position: absolute; bottom: -80px; left: -80px; width: 200px; height: 200px; border-radius: 50%; opacity: 0.3; filter: blur(35px); transition: background-color 800ms ease; }

.latam-hero-section .product-sticker .top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; position: relative; z-index: 2; }
.latam-hero-section .product-sticker .product-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); }
.latam-hero-section .product-sticker .product-meta b { display: block; color: #fff; font-size: 22px; font-family: "Inter", sans-serif; text-transform: none; letter-spacing: -0.015em; margin-top: 6px; font-weight: 700; }
.latam-hero-section .product-sticker .seal {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  display: grid; place-items: center; text-align: center;
  font-family: "Instrument Serif", serif; font-style: italic;
  font-size: 14px; line-height: 1.05; color: #fff;
  transform: rotate(-10deg); flex: none;
  transition: transform .8s cubic-bezier(.34,1.56,.64,1);
}
.latam-hero-section .product-sticker .seal.spin { transform: rotate(350deg); }
.latam-hero-section .product-sticker .seal small { display: block; font-size: 11px; opacity: 0.7; margin-top: 3px; }

.latam-hero-section .product-sticker .vis {
  position: relative; z-index: 2;
  height: 300px; margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 20px 14px;
  overflow: hidden;
}
.latam-hero-section .product-sticker .vis::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: lh-shine 6s ease-in-out infinite;
}
@keyframes lh-shine { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
.latam-hero-section .product-sticker .glyph {
  font-family: "Instrument Serif", serif;
  font-size: 100px; font-style: italic; line-height: 1;
  background-clip: text; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-image 800ms ease;
  position: relative; z-index: 2;
}
.latam-hero-section .product-sticker .prod-img {
  position: relative; z-index: 2;
  max-height: 230px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.5));
  transition: opacity 380ms ease, transform 380ms ease;
  flex-shrink: 0;
}
@media (max-width: 968px) {
  .latam-hero-section .product-sticker .vis { height: 240px; padding: 16px 12px; gap: 10px; }
  .latam-hero-section .product-sticker .prod-img { max-height: 170px; }
}
.latam-hero-section .product-sticker .vis .tags {
  position: relative; z-index: 3;
  display: flex; gap: 5px; flex-wrap: wrap;
  justify-content: center; max-width: 100%;
}
.latam-hero-section .product-sticker .vis .tag { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); font-size: 10.5px; color: rgba(255,255,255,0.85); white-space: nowrap; }

.latam-hero-section .product-sticker .price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.latam-hero-section .product-sticker .price-block { display: flex; flex-direction: column; gap: 3px; }
.latam-hero-section .product-sticker .price-label { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.latam-hero-section .product-sticker .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.latam-hero-section .product-sticker .amount .cur { font-size: 16px; color: rgba(255,255,255,0.55); font-weight: 500; margin-left: 5px; }
.latam-hero-section .product-sticker .usd { font-family: "JetBrains Mono", monospace; font-size: 12px; color: rgba(255,255,255,0.55); align-self: flex-end; text-align: right; }
.latam-hero-section .product-sticker .usd b { color: rgba(255,255,255,0.8); display: block; font-size: 14px; margin-bottom: 2px; }

.latam-hero-section .product-sticker .pay-pills { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 2; }
.latam-hero-section .product-sticker .pp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; font-size: 11px; color: rgba(255,255,255,0.85); }
.latam-hero-section .product-sticker .pp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* COUNTRY SELECTOR (top-right) */
.latam-hero-section .country-selector {
  position: absolute; top: 20px; right: 20px;
  z-index: 20;
  display: flex; gap: 6px; flex-wrap: wrap;
  max-width: 280px; justify-content: flex-end;
}
.latam-hero-section .country-selector button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  cursor: pointer; padding: 0; overflow: hidden;
  display: grid; place-items: center;
  transition: transform .15s, border-color .15s;
}
.latam-hero-section .country-selector button:hover { transform: scale(1.08); border-color: rgba(255,255,255,0.4); }
.latam-hero-section .country-selector button.active { border-color: #6ef2a0; box-shadow: 0 0 0 2px rgba(110,242,160,0.3); }
.latam-hero-section .country-selector button svg { width: 100%; height: 100%; transform: scale(1.6); transform-origin: center; display: block; }

/* Geo overlay (initial detection) */
.latam-hero-section .geo-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  transition: opacity 300ms ease;
}
.latam-hero-section .geo-overlay.hidden { opacity: 0; pointer-events: none; }
.latam-hero-section .geo-card { width: 280px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 18px; padding: 24px; color: #fff; text-align: center; }
.latam-hero-section .geo-card .step { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.latam-hero-section .geo-card .step .tick { color: #6ef2a0; }
.latam-hero-section .geo-card .ip { font-family: "JetBrains Mono", monospace; font-size: 16px; color: #fff; margin-bottom: 18px; min-height: 20px; }
.latam-hero-section .geo-card .progress { height: 3px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.latam-hero-section .geo-card .progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, #6ef2a0, #4d8fff); transition: width 1300ms cubic-bezier(.4,0,.2,1); }
.latam-hero-section .geo-card.fill .progress .bar { width: 100%; }

/* Mobile tweaks */
@media (max-width: 968px) {
  .latam-hero-section .country-selector { max-width: 200px; top: 12px; right: 12px; }
  .latam-hero-section .country-selector button { width: 30px; height: 30px; }
  .latam-hero-section .product-sticker { transform: rotate(0); }
  .latam-hero-section .product-sticker .glyph { font-size: 76px; }
  .latam-hero-section .product-sticker .amount { font-size: 36px; }
  .latam-hero-section .live-row { flex-direction: column; align-items: stretch; }
}
