/* ===========================
   TravelSIM - Estilos Específicos
   =========================== */

/* ===========================
   Hero Section
   =========================== */
.travelsim-hero {
  position: relative;
  background: linear-gradient(155deg, #edfcfb 0%, #f5fdfd 35%, #f0f9ff 70%, #eaf7f6 100%);
}

.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.hero-bg-glow-1 {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(81,217,214,0.12) 0%, transparent 70%);
}
.hero-bg-glow-2 {
  width: 400px; height: 400px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(81,217,214,0.09) 0%, transparent 70%);
}

/* Decorative floating elements */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.hero-plane {
  top: 12%; right: 6%;
  width: 72px; height: 72px;
  opacity: 0.9;
  animation: heroPlaneDrift 8s ease-in-out infinite;
}
.hero-arc {
  top: 8%; right: 2%;
  width: 260px; height: 140px;
  opacity: 0.8;
}
.hero-pin-1 {
  top: 32%; right: 4%;
  width: 28px; height: 36px;
  animation: heroPinBounce 3.5s ease-in-out infinite;
}
.hero-pin-2 {
  top: 52%; right: 8%;
  width: 22px; height: 28px;
  animation: heroPinBounce 3.5s ease-in-out 0.8s infinite;
}

/* eSIM card mockup */
.hero-esim-card {
  top: 50%; left: 2%;
  transform: translateY(-50%);
  animation: heroCardFloat 6s ease-in-out infinite;
}
.esim-card {
  width: 140px; height: 96px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(220,245,244,0.9) 100%);
  border: 1px solid rgba(81,217,214,0.35);
  box-shadow: 0 20px 50px -10px rgba(81,217,214,0.3), 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.esim-card-shine {
  position: absolute;
  top: -40px; left: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
  border-radius: 50%;
}
.esim-chip {
  position: absolute;
  top: 18px; left: 14px;
  width: 30px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c8e6e5 0%, #a8d5d4 100%);
  border: 1px solid rgba(81,217,214,0.4);
  overflow: hidden;
}
.esim-chip-lines::before,
.esim-chip-lines::after {
  content: '';
  position: absolute;
  background: rgba(81,217,214,0.4);
  border-radius: 1px;
}
.esim-chip-lines::before {
  top: 7px; left: 4px; width: 22px; height: 1.5px;
}
.esim-chip-lines::after {
  top: 13px; left: 4px; width: 16px; height: 1.5px;
}
.esim-label {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 1rem; font-weight: 800;
  color: #2ea8a5;
  letter-spacing: 0.05em;
  font-style: italic;
}
.esim-dots {
  position: absolute;
  bottom: 12px; left: 14px;
  width: 40px; height: 8px;
  background: repeating-linear-gradient(
    to right,
    rgba(81,217,214,0.4) 0, rgba(81,217,214,0.4) 4px,
    transparent 4px, transparent 7px
  );
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .hero-esim-card,
  .hero-plane,
  .hero-arc,
  .hero-pin-1,
  .hero-pin-2 {
    display: none;
  }
}

@keyframes heroPlaneDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -8px) rotate(3deg); }
}
@keyframes heroPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(-50%) rotate(-4deg); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(-2deg); }
}

/* Hero heading */
.hero-heading-top {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-secondary, #1a2a3a);
  margin-bottom: 0.1em;
}

.hero-heading-accent-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.hero-heading-accent {
  display: block;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  background: linear-gradient(135deg, #3dbfbd 0%, #51D9D6 45%, #2ea8a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-underline {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: 2px;
}

/* CTA buttons */
.hero-cta-primary {
  background: linear-gradient(135deg, #41c9c6 0%, #2ea8a5 100%);
  box-shadow: 0 12px 32px -6px rgba(81,217,214,0.55);
  color: white;
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -6px rgba(81,217,214,0.65);
}

.hero-cta-secondary {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(81,217,214,0.5);
  color: #2ea8a5;
  backdrop-filter: blur(8px);
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.95);
  border-color: #51D9D6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(81,217,214,0.2);
}

/* Stats 3-line labels */
.stat-label-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.stat-label-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.dark .stat-label-main { color: rgba(255,255,255,0.9); }
.dark .stat-label-sub  { color: rgba(255,255,255,0.4); }

/* Gradiente animado de fondo */
@keyframes travel-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body {
  background: linear-gradient(
    -45deg,
    #e8f8f7 0%,
    #f0f9ff 25%,
    #e8f4f8 50%,
    #f0fdf4 75%,
    #e8f8f7 100%
  );
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: travel-gradient 15s ease infinite;
}

/* Tarjetas de features */
.travelsim-feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.travelsim-feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(81, 217, 214, 0.25);
}

/* Pasos numerados */
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #51D9D6, #45C9C6);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(81, 217, 214, 0.4);
}

/* Bloque B2B */
.b2b-section {
  background: linear-gradient(135deg, #1a2a3a 0%, #0f1e2d 100%);
}

/* Icono de check */
.check-icon {
  color: #51D9D6;
  flex-shrink: 0;
}

/* Compatibilidad - alerta informativa */
.compat-box {
  border-left: 4px solid #51D9D6;
  background: rgba(81, 217, 214, 0.06);
  border-radius: 0 12px 12px 0;
}

/* Hero badge viaje */
.travel-badge {
  background: linear-gradient(135deg, rgba(81,217,214,0.15), rgba(69,201,198,0.15));
  border: 1px solid rgba(81,217,214,0.4);
  color: #2ea8a5;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Footer links */
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #51D9D6;
}

/* Accordion — handled by main.js + GSAP, no override needed */
.accordion-arrow svg {
  transition: transform 0.3s ease;
}

/* Smooth scroll offset for header */
[id] {
  scroll-margin-top: 100px;
}

/* CTA section highlight */
.highlight-word {
  color: #51D9D6;
}

/* Badge */
.badge-yellow-v2 {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(81, 217, 214, 0.12);
  color: #2ea8a5;
  border: 1px solid rgba(81, 217, 214, 0.3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* B2B dark section text */
.b2b-section {
  color: white;
}
.b2b-section h2,
.b2b-section p,
.b2b-section span,
.b2b-section li {
  color: white;
}

/* Step connector line (desktop) */
@media (min-width: 768px) {
  .step-connector::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #51D9D6, transparent);
  }
}

/* ===========================
   Countries Marquee
   =========================== */
.countries-section {
  position: relative;
}

.countries-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}

.countries-row-track {
  width: 100%;
  overflow: hidden;
  /* Gradient fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.countries-row {
  display: flex;
  width: max-content;
  animation: marqueeLeft 55s linear infinite;
}

.countries-row.reverse {
  animation: marqueeRight 60s linear infinite;
}

.countries-row-track:hover .countries-row {
  animation-play-state: paused;
}

.countries-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
  flex-shrink: 0;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(81, 217, 214, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(32, 32, 32, 0.75);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
  cursor: default;
  flex-shrink: 0;
}

.country-chip:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(81, 217, 214, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px -6px rgba(81, 217, 214, 0.2);
}

.country-chip img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.region-chip {
  background: rgba(81, 217, 214, 0.08);
  border-color: rgba(81, 217, 214, 0.3);
}

.region-globe {
  font-size: 1rem;
  line-height: 1;
}

.dark .country-chip {
  background: rgba(15, 30, 45, 0.8);
  border-color: rgba(81, 217, 214, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

.dark .country-chip:hover {
  background: rgba(15, 30, 45, 0.95);
  border-color: rgba(81, 217, 214, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.dark .region-chip {
  background: rgba(81, 217, 214, 0.08);
  border-color: rgba(81, 217, 214, 0.25);
}

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .countries-row,
  .countries-row.reverse {
    animation: none;
  }
}

/* ===========================
   Stats Bar Hero
   =========================== */
.stats-bar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(135deg, #0d2535 0%, #0f2e3e 50%, #0a2030 100%);
  border: 1px solid rgba(81, 217, 214, 0.25);
  border-radius: 24px;
  padding: 12px 8px;
  box-shadow:
    0 0 0 1px rgba(81, 217, 214, 0.08),
    0 20px 60px -12px rgba(81, 217, 214, 0.3),
    0 8px 24px rgba(0,0,0,0.25);
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 22px 16px;
  border-radius: 16px;
  text-align: center;
  cursor: default;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  animation: statFadeUp 0.6s ease both;
  animation-delay: var(--stat-delay, 0s);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(81, 217, 214, 0.07);
}

.stat-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 110%, rgba(81,217,214,0.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.stat-card:hover .stat-glow {
  opacity: 1;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(81, 217, 214, 0.12);
  border: 1px solid rgba(81, 217, 214, 0.3);
  margin-bottom: 4px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover .stat-icon-wrap {
  background: rgba(81, 217, 214, 0.22);
  border-color: rgba(81, 217, 214, 0.55);
  box-shadow: 0 0 16px rgba(81,217,214,0.25);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: white;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(81,217,214,0.3), transparent);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .stats-bar-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 8px;
  }
  .stat-divider {
    display: none;
  }
  .stat-card {
    padding: 18px 12px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
}

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

/* Portal QR screenshots */
.portal-screenshot-main {
  max-height: 360px;
  overflow: hidden;
}
.portal-screenshot-main img,
.portal-screenshot-secondary img {
  display: block;
  width: 100%;
}
.portal-screenshot-secondary {
  box-shadow: 0 24px 60px -12px rgba(81, 217, 214, 0.25);
}
.portal-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
