/* --- NAVIGATION (TEXT LOGO RESTORATION) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 90px;
  background: white;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(233, 18, 99, 0.1);
}

.nav.mobile-open {
  background: white !important;
  /* Force white background when open for readability */
  height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
  overflow-y: auto;
}

.nav.mobile-open .nav-links a,
.nav.mobile-open .nav-cta button,
.nav.mobile-open .nav-cta a {
  color: var(--c-navy) !important;
}

.nav.mobile-open .nav-toggle span {
  background: var(--c-navy) !important;
}

.nav-logo {
  display: block;
  height: 90px;
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-item {
  position: relative;
}

.nav-links a {
  padding: 10px 18px;
  color: var(--c-navy);
  text-decoration: none;
  font-weight: 700;
  border-radius: 99px;
  transition: 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  background: var(--c-magenta-soft);
  color: var(--c-magenta);
}

/* DROPDOWNS */
.dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  width: 240px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.12);
  padding: 12px;
  border: 1px solid var(--c-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--c-navy) !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  transition: 0.2s;
  margin-bottom: 2px;
}

.dropdown-menu a:hover {
  background: var(--c-magenta-soft);
  color: var(--c-magenta) !important;
  transform: translateX(4px);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

/* --- HERO CAROUSEL --- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(90vh - 100px);
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  margin-top: 100px;
  /* nav height */
}

.hc-track {
  display: flex;
  width: 500%;
  /* 5 slides */
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.hc-slide {
  width: 20%;
  /* 1/5 of track */
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Overlay variants */
.hc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(10, 16, 36, 0.80) 0%,
      rgba(10, 16, 36, 0.55) 55%,
      rgba(233, 18, 99, 0.20) 100%);
}

.hc-overlay--dark {
  background: linear-gradient(135deg,
      rgba(10, 16, 36, 0.72) 0%,
      rgba(10, 16, 36, 0.50) 60%,
      rgba(10, 16, 36, 0.30) 100%);
}

.hc-overlay--left {
  background: linear-gradient(to right,
      rgba(10, 16, 36, 0.95) 0%,
      rgba(10, 16, 36, 0.80) 38%,
      rgba(10, 16, 36, 0.25) 65%,
      rgba(10, 16, 36, 0.00) 100%);
}

.hc-overlay--green {
  background: linear-gradient(120deg,
      rgba(10, 16, 36, 0.80) 0%,
      rgba(10, 16, 36, 0.55) 55%,
      rgba(0, 140, 90, 0.25) 100%);
}

/* Content box */
.hc-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 80px;
  text-align: left;
  animation: hcFadeUp 0.9s ease both;
}


.hc-content--right {
  margin-left: auto;
  padding: 0 80px 0 40px;
}

@keyframes hcFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge */
.hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 18, 99, 0.18);
  border: 1px solid rgba(233, 18, 99, 0.45);
  color: #ff6fa3;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hc-badge--green {
  background: rgba(0, 180, 100, 0.18);
  border-color: rgba(0, 180, 100, 0.45);
  color: #4fffb0;
}

/* Headline */
.hc-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.hc-accent {
  background: linear-gradient(135deg, #E91263, #ff6fa3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.hc-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 560px;
}

/* Action buttons */
.hc-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-btn-primary {
  background: var(--c-magenta);
  color: #fff;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.9rem;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(233, 18, 99, 0.45);
  transition: 0.25s;
}

.hc-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(233, 18, 99, 0.55);
}

.hc-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  transition: 0.25s;
}

.hc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Stats row (slide 3) */
.hc-stats-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hc-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hc-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.hc-stat-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* Trust badges (slide 2) */
.hc-trust-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.hc-trust-item i {
  color: #ff6fa3;
  font-size: 0.9rem;
}

/* Navigation arrows */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: 0.25s;
}

.hc-arrow:hover {
  background: rgba(233, 18, 99, 0.75);
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}

.hc-arrow--prev {
  left: 28px;
}

.hc-arrow--next {
  right: 28px;
}

/* Dots */
.hc-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: 0.35s;
  padding: 0;
}

.hc-dot.active {
  width: 32px;
  background: #E91263;
}

/* Progress bar */
.hc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 20;
}

.hc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E91263, #ff6fa3);
  transition: width 0.1s linear;
}

/* Hero tools section (tracking panel below carousel) */
.hero-tools {
  padding: 48px 0 60px;
  background: #f8fafc;
}

/* ---- SLIDE 2: SPLIT-PANEL (42% texto / 58% foto completa) ---- */
.hc-slide--team {
  background: none;
  display: flex;
  align-items: stretch;
  /* paneles se estiran al 100% del slide */
  overflow: hidden;
}

/* ---- SLIDE 2 VARIANTE: imagen completa + texto en fondo ---- */
.hc-slide--team-bg {
  position: relative;
}

/* Gradiente solo en la franja inferior — los rostros quedan libres */
.hc-overlay--bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 16, 36, 0.92) 0%,
      rgba(10, 16, 36, 0.70) 28%,
      rgba(10, 16, 36, 0.15) 52%,
      transparent 72%);
  z-index: 1;
  pointer-events: none;
}

/* LEFT: dark corporate panel — tonos cálidos que armonizan con el fondo crema de la foto */
.hc-team-left {
  flex: 0 0 42%;
  height: 100%;
  /* llena todo el alto sin espacios negros */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 52px 60px 64px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(150deg, #13100d 0%, #1c1624 55%, #1e2540 100%);
  background-size: 28px 28px, 100% 100%;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hc-team-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E91263, #ff6fa3 60%, transparent);
  z-index: 5;
}

.hc-team-deco {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 18, 99, 0.14);
  pointer-events: none;
}

.hc-team-deco--1 {
  width: 460px;
  height: 460px;
  top: -130px;
  left: -200px;
  background: radial-gradient(circle, rgba(233, 18, 99, 0.05) 0%, transparent 65%);
}

.hc-team-deco--2 {
  width: 260px;
  height: 260px;
  bottom: -90px;
  right: 10px;
  border-color: rgba(233, 18, 99, 0.08);
  background: radial-gradient(circle, rgba(233, 18, 99, 0.03) 0%, transparent 65%);
}

.hc-team-left::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 0;
  width: 1px;
  height: 84%;
  background: linear-gradient(to bottom, transparent, rgba(233, 18, 99, 0.5) 30%, rgba(233, 18, 99, 0.5) 70%, transparent);
  z-index: 10;
}

.hc-team-stat-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 13px 36px;
  background: rgba(233, 18, 99, 0.10);
  border-top: 1px solid rgba(233, 18, 99, 0.22);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.hc-team-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.hc-team-stat-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: #E91263;
  line-height: 1;
}

.hc-team-stat-lbl {
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
  white-space: nowrap;
}

.hc-team-stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* RIGHT: photo panel — llena el alto completo */
.hc-team-right {
  flex: 1;
  height: 100%;
  position: relative;
  background: #ede9e3;
  overflow: hidden;
}

.hc-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Fade suave en el borde izquierdo para unir paneles */
.hc-team-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(19, 16, 13, 0.60) 0%, transparent 22%);
  z-index: 1;
  pointer-events: none;
}


/* Mobile */
@media (max-width: 768px) {
  .hc-slide--team {
    flex-direction: column;
  }

  .hc-team-left {
    flex: 0 0 54%;
    padding: 48px 20px 52px;
  }

  .hc-team-right {
    flex: 1;
    background: #e9e5df;
  }

  .hc-team-left::after {
    display: none;
  }
}

/* --- MAP PINS --- */
.hc-map-pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hc-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  pointer-events: none;
}

/* — V-PIN: marcador con la "V" de Veloces — */
.hc-vpin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #E91263;
  box-shadow: 0 0 10px rgba(233, 18, 99, 0.75), 0 0 20px rgba(233, 18, 99, 0.4);
  animation: pinPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hc-vpin::after {
  content: 'V';
  transform: rotate(45deg);
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  font-family: inherit;
  line-height: 1;
}

.hc-vpin--lg {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 14px rgba(233, 18, 99, 0.90), 0 0 28px rgba(233, 18, 99, 0.45);
}

.hc-vpin--lg::after {
  font-size: 11px;
}

/* Ajuste al pin container para alinear el nuevo marcador */
.hc-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}


.hc-pin-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  background: rgba(233, 18, 99, 0.85);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 1px;
  letter-spacing: 0.03em;
}

@keyframes pinPulse {

  0%,
  100% {
    transform: rotate(-45deg) scale(1);
    box-shadow: 0 0 10px rgba(233, 18, 99, 0.7), 0 0 20px rgba(233, 18, 99, 0.3);
  }

  50% {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 0 25px rgba(233, 18, 99, 0.9), 0 0 50px rgba(233, 18, 99, 0.5);
    background: #ff2b7a;
  }
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .hero-carousel {
    height: calc(100vh - 70px);
    min-height: 460px;
    max-height: 600px;
    margin-top: 70px;
  }

  .hc-content,
  .hc-content--right {
    padding: 0 24px;
    margin-left: 0;
  }

  .hc-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .hc-sub {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .hc-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }

  .hc-btn-primary,
  .hc-btn-ghost {
    padding: 10px 18px;
    font-size: 0.8rem;
    width: auto;
    flex: none;
    justify-content: center;
  }

  .hc-arrow {
    display: none !important;
  }

  .hc-stats-row {
    gap: 16px;
  }

  .hc-stat-num {
    font-size: 1.5rem;
  }

  .hc-trust-badges {
    gap: 8px;
  }

  .hc-trust-item {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .hero-tools {
    padding: 16px 0 32px;
  }

  /* Regional KPI Monitor Country Selector Overrides */
  .country-selector {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .country-btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    gap: 6px !important;
  }
}

/* Specific adjustments for smaller mobile screens (e.g. 390px) */
@media (max-width: 480px) {
  .hero-carousel {
    height: 360px !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .hc-dots {
    bottom: 12px;
  }

  .hc-content,
  .hc-content--right {
    padding: 0 16px;
  }

  .hc-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .hc-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .hc-sub {
    display: block !important;
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
    line-height: 1.35 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .hc-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hc-btn-primary,
  .hc-btn-ghost {
    padding: 8px 12px !important;
    font-size: 0.68rem !important;
    width: auto !important;
    flex: none !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hc-trust-badges,
  .hc-stats-row {
    display: none !important;
  }

  /* Slide 1 (Banner) optimization */
  .slide-banner-blur {
    display: none !important;
  }

  .slide-banner-main {
    background-image: url('../images/banner_mobile.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    height: 100% !important;
  }

  /* Compact action panel for tracking to fit in first viewport */
  .hero-tools {
    padding: 8px 0 24px !important;
  }

  .action-panel {
    padding: 12px 16px !important;
    gap: 12px !important;
  }

  .action-panel h3 {
    margin-bottom: 8px !important;
    font-size: 1rem !important;
  }

  .action-panel input#trackingNumber {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }

  .action-panel button,
  .action-panel .btn {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }
}

/* --- HERO (old static — keep for sub-pages) --- */
.hero {
  padding: 140px 0 100px;
  background: radial-gradient(circle at top right, #fff1f5, white);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero .text-hero {
  margin-bottom: 24px;
  max-width: 800px;
}

.tracking-input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--c-border);
  border-radius: 99px;
  padding: 8px;
  max-width: 500px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.tracking-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 24px;
  font-size: 1.1rem;
  font-family: inherit;
}

/* --- TOOLS --- */
.tools-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: -60px;
  z-index: 10;
  position: relative;
}

.tool-card {
  background: white;
  padding: 40px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}

.tool-card:hover {
  border-color: var(--c-magenta);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.tool-title {
  font-weight: 900;
  color: var(--c-navy);
  font-size: 1.3rem;
}

/* --- KPI SECTION --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.kpi-box {
  text-align: center;
  padding: 20px 12px;
  background: var(--c-magenta-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 18, 99, 0.1);
}

.kpi-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-magenta);
  line-height: 1;
}

.kpi-txt {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--c-navy);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- TRACKING RESULT --- */
.tracking-card {
  max-width: 850px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

@media (max-width: 768px) {
  .tracking-card {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.timeline-item {
  text-align: center;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--c-text-muted);
}

.timeline-dot.done {
  background: var(--c-magenta);
  color: white;
}

.timeline-dot.active {
  background: var(--c-navy);
  color: white;
}

.timeline-status {
  font-weight: 800;
  color: var(--c-navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* --- COBERTURA --- */
.country-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--c-border);
  border-radius: 99px;
  background: white;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 700;
  width: fit-content;
  text-decoration: none;
  color: inherit;
}

.country-pill.active {
  border-color: var(--c-magenta);
  background: var(--c-magenta-soft);
  color: var(--c-magenta);
}

.country-pill .flag {
  font-size: 1.2rem;
}

/* --- FOOTER (CORPORATE NAVY STYLE) --- */
.footer {
  background: var(--c-navy);
  padding: 80px 0 40px;
  color: white;
  font-family: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .whatsapp-badge {
    align-items: center;
    margin: 0 auto;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand-img {
  height: 110px;
  width: auto;
  margin-bottom: 24px;
}

.whatsapp-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 16px;
  width: fit-content;
}

.wa-icon {
  width: 48px;
  height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.wa-info div:first-child {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wa-info div:last-child {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
}

.text-list {
  list-style: none;
  padding: 0;
}

.text-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--c-navy);
}

.text-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-magenta);
  font-weight: 900;
}

.footer-col-title {
  margin-bottom: 25px;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--c-magenta);
  padding-left: 5px;
}

transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-btn.ln:hover {
  background: #0077B5;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-btn.ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(214, 36, 159, 0.4);
}

.social-btn.tw:hover {
  background: #1DA1F2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}


/* --- RESPONSIVE UTILITIES & MOBILE MENU --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 3000;
  margin-left: auto;
  /* Push to the right */
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--c-navy);
  border-radius: 99px;
  transition: 0.3s;
}

/* WHITE HAMBURGER ON DARK BACKGROUNDS */
.dark-header .nav-toggle span {
  background: white !important;
}

.mobile-open .nav-toggle span {
  background: var(--c-navy) !important;
}

.mobile-open .nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.mobile-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav.mobile-open .nav-toggle {
  top: 35px !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 1024px) {
  .nav {
    height: 70px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-logo {
    height: 60px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin: 40px 0;
    padding: 0;
  }

  .nav-cta {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .mobile-open .nav-links,
  .mobile-open .nav-cta {
    display: flex;
  }

  .mobile-open .nav-links a {
    font-size: 1.2rem;
    padding: 15px;
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    width: 100%;
    background: #f8fafc;
    margin-top: 5px;
    display: block;
    /* Always show in mobile menu for easy access */
    padding: 0 0 0 20px;
    border: none;
  }

  .dropdown-menu a {
    font-size: 0.95rem;
    padding: 8px 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-links a {
    justify-content: flex-start;
    padding: 12px 20px;
    width: 100%;
    border-radius: 12px;
  }


}

@media (max-width: 768px) {
  .text-hero {
    font-size: 2.2rem;
    /* Reduced !important to let it flow naturally */
  }

  .text-h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 30px 0;
  }

  .container {
    padding: 0 20px;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* AGGRESSIVE RESPONSIVE FIXES */
  .action-panel {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin-bottom: 20px;
  }

  .search-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-group input,
  .search-group button {
    width: 100% !important;
  }

  .action-panel div {
    width: 100%;
    min-width: 0;
  }

  #trackingResult {
    width: 100%;
    padding: 20px;
    margin: 0 auto 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Daniel Garcia Photo Scale - MADE SMALLER AS REQUESTED */
  .grid-2 div[style*="width: 380px"],
  .grid-2 div[style*="max-width: 380px"],
  div[style*="aspect-ratio: 1"] {
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .text-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* DESKTOP REFINEMENT FOR DANIEL GARCIA */
@media (min-width: 1025px) {
  div[style*="max-width: 380px"] {
    max-width: 300px !important;
    /* Smaller desktop size */
  }
}

.search-group {
  display: flex;
  gap: 12px;
}

/* --- LOGIN MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: 0.4s;
  color: var(--c-navy);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* --- LOGIN MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: 0.4s;
  color: var(--c-navy);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-magenta);
  margin-bottom: 8px;
}

.login-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.nav.dark-header {
  background: rgba(15, 23, 42, 0.95) !important;
}

.nav.dark-header .nav-links a {
  color: white !important;
}

.nav.dark-header .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-magenta);
}

.logo-transparent-bg {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


.social-strip {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .social-strip {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .kpi-row {
    grid-template-columns: 1fr !important;
  }

  .action-panel div {
    min-width: 100% !important;
  }

  .text-hero {
    font-size: 2rem !important;
  }

  .section {
    padding: 30px 15px;
  }
}

/* ===================================================
   BIZ-GRID — Sección Gerente Comercial
   Desktop: foto izquierda, texto+botón derecha
   Móvil:   título primero, foto al centro, botón al final
   =================================================== */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 48px 60px;
  align-items: center;
}

.biz-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.biz-text {
  grid-column: 2;
  grid-row: 1;
}

.biz-cta {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

@media (max-width: 768px) {
  .biz-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .biz-text {
    order: 1;
  }

  .biz-photo {
    order: 2;
  }

  .biz-cta {
    order: 3;
    width: 100%;
  }

  .biz-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* PROFESSIONAL FOOTER REDESIGN */
.footer {
  background: var(--c-magenta);
  color: white;
  padding: 0;
  font-family: inherit;
}

.footer-top {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-col .footer-logo {
  height: 60px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.wa-large-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 20px;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}

.wa-large-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.wa-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-text .wa-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.wa-text .wa-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--c-magenta);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-partners {
  background: white;
  padding: 40px 0;
}

.partners-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.partners-title {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 150px;
}

.partners-logos {
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.partner-logo-item {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
  transition: 0.4s;
  cursor: pointer;
}

.partner-logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

.footer-bottom {
  background: #9B0040;
  /* Deep magenta — barra inferior corporativa */
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.vigilado {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.vigilado-img {
  height: 55px;
  opacity: 1;
  transition: all 0.3s ease;
  display: block;
}

.vigilado-img:hover {
  transform: scale(1.1);
  opacity: 1;
}

.legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  /* Light text for black background */
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.3s;
}

.legal-links a:hover {
  color: var(--c-magenta);
}

.social-icons-footer {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.3s;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-circle:hover {
  background: var(--c-magenta);
  transform: translateY(-3px);
}

/* Partners Scrolling Animation */
.footer-partners {
  background: white;
  padding: 30px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.partners-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.partners-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 140px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background: white;
  padding-right: 20px;
}

.partners-slider {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.partners-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll-partners 40s linear infinite;
  align-items: center;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
  transition: 0.4s;
  cursor: pointer;
}

.partner-logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.05);
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 40px));
  }
}

@media (max-width: 1100px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: span 2;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 40px;
  }
}

@media (max-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .partners-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .partners-title {
    width: 100%;
    padding-right: 0;
  }

  .partners-logos {
    flex-wrap: wrap;
    gap: 30px;
  }

  .bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .legal-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===================================================
   MOBILE RESPONSIVE — TRACKING PAGE (rastreo.html)
   =================================================== */
@media (max-width: 768px) {
  .tracking-page {
    padding: 100px 12px 40px !important;
  }

  .tracking-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .tab-group {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .tab-btn {
    width: 100% !important;
    text-align: center !important;
  }

  .search-wrapper {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .search-input {
    width: 100% !important;
    border-radius: 12px !important;
  }

  .btn-search {
    width: 100% !important;
    border-radius: 12px !important;
  }

  .multi-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tracking-result {
    padding: 16px !important;
    overflow-x: hidden !important;
  }

  .timeline-item {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .tracking-header {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* Prevent any element from overflowing viewport */
  .tracking-page * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}

/* ===================================================
   MOBILE RESPONSIVE — TRABAJA PAGE
   =================================================== */
@media (max-width: 768px) {

  /* Banner: shorter on mobile so faces are centred */
  .trabaja-banner {
    height: 260px !important;
  }

  /* Profiles grid: 2 cols on mobile */
  #perfiles>.container>div:last-of-type {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* CV Modal: full-width on small screens */
  #cvModal>div {
    border-radius: 16px !important;
  }

  #cvModal .modal-phone-grid {
    grid-template-columns: 1fr !important;
  }

  /* Intro text section padding */
  #perfiles {
    padding: 40px 0 !important;
  }
}

@media (max-width: 480px) {

  /* Single column profiles on very small phones */
  #perfiles>.container>div:last-of-type {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Video aspect ratio preserved */
  #trabaja-video {
    aspect-ratio: 16/9 !important;
  }
}

/* ===================================================
   DASHBOARD KPI — REGIONAL LIVE MONITOR
   =================================================== */
.dashboard-kpi {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.country-selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  padding: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.country-selector::-webkit-scrollbar {
  display: none;
}

.country-btn {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  color: var(--c-magenta);
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-btn .flag {
  font-size: 1.2rem;
}

.country-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.country-btn.active {
  background: var(--c-magenta);
  color: white;
  border-color: var(--c-magenta);
  box-shadow: 0 10px 25px rgba(233, 18, 99, 0.3);
}

.dashboard-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.kpi-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-magenta);
  box-shadow: 0 20px 40px rgba(233, 18, 99, 0.05);
}

.kpi-icon {
  width: 60px;
  height: 60px;
  background: var(--c-magenta-soft);
  color: var(--c-magenta);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.kpi-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-lab {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kpi-trend {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
}

.kpi-trend.up {
  background: #dcfce7;
  color: #15803d;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}


/* ===================================================
   PREMIUM MOBILE OPTIMIZATION (GLOBAL)
   =================================================== */
@media (max-width: 768px) {
  .hc-slide {
    background-attachment: scroll !important;
  }

  .hc-content,
  .hc-content--right {
    padding-top: 40px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hc-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .hc-sub {
    font-size: 0.9rem !important;
    max-width: 100% !important;
  }

  /* Buttons Responsive Fix (Global Target) */
  .btn,
  .btn-search,
  .hc-actions .btn,
  .nav-cta .btn,
  .tab-btn,
  .country-btn,
  button:not(.nav-toggle):not(.vela-trigger):not(.modal-close):not(.pm-close):not(.btn-close-results):not(.plus-btn):not(.inline-plus-btn):not(.hc-arrow):not(.hc-dot):not(.vela-close):not(.vela-star-btn):not([onclick="sendVelaMsg()"]),
  input[type="submit"],
  .btn-primary,
  .btn-ghost {
    width: auto !important;
    min-width: 180px !important;
    max-width: 90% !important;
    padding: 14px 32px !important;
    display: inline-flex !important;
    align-self: center !important;
    /* Prevents stretching in flex columns */
    margin-bottom: 5px;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Force centered alignment in common action areas */
  .hc-actions,
  .nav-cta,
  .actions,
  .search-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
  }

  .search-wrapper {
    border-radius: 20px !important;
    padding: 15px !important;
  }

  .btn-search {
    width: 100% !important;
    /* Search button usually looks better full width on mobile within its small wrapper */
    min-width: unset !important;
  }

  .footer-bottom {
    padding: 40px 0 !important;
  }

  .bottom-flex {
    flex-direction: column !important;
    gap: 25px !important;
    text-align: center !important;
  }

  .vigilado-img {
    height: 45px !important;
    margin: 0 auto;
  }

  .legal-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
  }

  .social-icons-footer {
    justify-content: center !important;
    order: -1;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Horizontal / Landscape Optimization */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 950px) {
  .hero-carousel {
    height: 100vh !important;
    margin-top: 70px !important;
  }

  .hc-slide {
    padding-top: 20px !important;
  }

  .hc-title {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
  }

  .hc-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px !important;
  }

  .hc-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
  }

  .btn {
    min-width: 160px !important;
    padding: 10px 24px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .hc-title {
    font-size: 1.5rem !important;
  }

  .hc-actions {
    gap: 10px !important;
  }

  /* On very narrow screens, allow them to take more space but not necessarily 100% if text is short */
  .btn {
    width: 90% !important;
    min-width: unset !important;
  }
}


/* FORCE SUBMENU VISIBILITY ON MOBILE */
@media (max-width: 1024px) {
  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: all !important;
    transform: none !important;
    box-shadow: none !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.05) !important;
    margin: 10px 0 !important;
    padding: 10px 0 10px 25px !important;
    border-left: 4px solid var(--c-magenta) !important;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 12px 0 !important;
    color: var(--c-navy) !important;
  }
}


/* HERO SLIDE ANIMATIONS */
@keyframes hc-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

/* --- VELA CHATBOT NATIVO Y PREMIUM --- */
.vela-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Outfit', 'Inter', sans-serif;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.vela-widget.vela-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5) translateY(40px);
}

.vela-trigger {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  background: #ffffff;
  position: relative;
}

.vela-trigger img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  border-radius: 50%;
}

.vela-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--c-magenta, #d91b5c);
  animation: velaPulse 2s infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes velaPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.vela-widget:not(.is-open) .vela-trigger:hover {
  transform: scale(1.15);
  box-shadow: 0 15px 35px rgba(217, 27, 92, 0.35);
}

/* Efecto de pulso en el avatar cuando habla */
.speaking-pulse {
  animation: speakingPulse 0.5s infinite alternate;
}

@keyframes speakingPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.vela-bubble {
  position: absolute;
  bottom: 10px;
  right: 85px;
  background: #ffffff;
  color: var(--c-navy, #0f172a);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.88rem;
  font-weight: 500;
  width: 210px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.9) translateY(10px);
  transform-origin: bottom right;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vela-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 18px;
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

.vela-widget:not(.is-open):hover .vela-bubble {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.vela-panel {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 360px;
  height: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vela-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.vela-header {
  background: var(--c-navy, #0f172a);
  padding: 16px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.vela-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vela-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vela-header-info h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.vela-header-info p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vela-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}

.vela-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}

.vela-close:hover {
  opacity: 1;
}

.vela-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.vela-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: velaMsgIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes velaMsgIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.vela-msg.bot {
  align-self: flex-start;
}

.vela-msg.user {
  align-self: flex-end;
}

.vela-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.vela-msg.bot .vela-msg-bubble {
  background: #ffffff;
  color: #1e293b;
  border-bottom-left-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.vela-msg.user .vela-msg-bubble {
  background: var(--c-magenta, #d91b5c);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(217, 27, 92, 0.15);
}

.vela-footer {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  align-items: center;
}

.vela-footer input {
  flex: 1;
  min-width: 0;
  height: 40px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
  box-sizing: border-box !important;
}

.vela-footer input:focus {
  border-color: var(--c-magenta, #d91b5c);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 27, 92, 0.1);
}

.vela-footer button {
  background: var(--c-magenta, #d91b5c);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex: 0 0 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.vela-footer button:hover {
  background: #b01246;
  transform: translateY(-1px);
}

/* Responsividad */
@media (max-width: 480px) {
  .vela-widget {
    bottom: 20px;
    right: 20px;
  }

  .vela-trigger {
    width: 50px;
    height: 50px;
  }

  .vela-trigger img {
    width: 80%;
    height: 80%;
  }

  .vela-panel {
    width: calc(100vw - 40px);
    height: 480px;
    bottom: 80px;
  }

  .vela-bubble {
    display: none;
  }

  .vela-stars {
    padding: 6px !important;
  }

  .vela-star-btn {
    font-size: 1.2rem !important;
    padding: 4px 2px !important;
    width: auto !important;
    flex: 0 0 18% !important;
  }
}

/* --- VELA SURVEY STYLING --- */
.vela-stars {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-around !important;
  align-items: center !important;
  margin-top: 8px;
  background: rgba(248, 250, 252, 0.95);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vela-star-btn {
  background: none !important;
  border: none !important;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  padding: 4px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 18% !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

.vela-star-btn:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.6));
}

/* Force mobile portrait overrides to prevent landscape conflict on small heights */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-carousel {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
    margin-top: 70px !important;
  }

  .slide-banner-blur {
    display: none !important;
  }

  .slide-banner-main {
    background-image: url('../images/banner_mobile.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    height: 100% !important;
  }

  .hc-dots {
    bottom: 10px !important;
  }

  .hero-tools {
    padding-top: 8px !important;
  }

  .action-panel {
    padding: 12px 16px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
}

/* ===================================================
   INTERACTIVE PHOTO CARDS (Trabaja con Nosotros)
   =================================================== */
.interactive-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .interactive-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .interactive-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.interactive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-navy);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.interactive-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 80%);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interactive-card:hover::before {
  opacity: 1;
}

.interactive-card:hover {
  transform: translateY(-10px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.02);
  box-shadow: 0 25px 50px rgba(233, 18, 99, 0.2);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  z-index: 1;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.9) contrast(1.02);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.interactive-card:hover .card-image-wrapper img {
  transform: scale(1.06);
  filter: brightness(0.95) contrast(1.05);
}

.card-content-wrapper {
  padding: 24px;
  background: #111a2e;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  z-index: 2;
  transform: translateZ(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.4s ease;
}

.interactive-card:hover .card-content-wrapper {
  background: #16223b;
}

.card-badge {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 99px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.interactive-card:hover .card-badge {
  background: var(--c-magenta);
  color: white;
  border-color: var(--c-magenta);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: white;
  margin: 0;
}

.card-description {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
  transition: color 0.3s;
}

.interactive-card:hover .card-description {
  color: rgba(255, 255, 255, 0.9);
}

.card-footer-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-magenta);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
  transition: gap 0.3s;
}

.interactive-card:hover .card-footer-action {
  gap: 12px;
}

.card-footer-action i {
  transition: transform 0.3s;
}

.interactive-card:hover .card-footer-action i {
  transform: translateX(4px);
}