/* =============================================================
   LogiGo — styles.css
   Archetype: Glassmorphism Modern (adaptado paleta navy + violet)
   Build: 20260522
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Brand */
  --navy:         #1E1B8B;
  --navy-dark:    #15126e;
  --navy-deep:    #0e0c52;
  --navy-light:   #2D1FA3;
  --violet:       #B89AF5;
  --violet-dark:  #9b7ff0;
  --violet-faint: rgba(184,154,245,0.15);
  --white:        #FFFFFF;
  --gray-bg:      #F5F5FA;
  --text-navy:    #1E1B8B;
  --text-body:    #4A4A6A;
  --text-muted:   #7a7a9a;
  --wa-green:     #25D366;
  --wa-dark:      #128C7E;
  --line:         rgba(30,27,139,0.10);

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --display: "Plus Jakarta Sans", "Poppins", sans-serif;
  --body:    "Inter", "Plus Jakarta Sans", system-ui, sans-serif;

  /* Layout */
  --section-py: clamp(4rem, 8vw, 7rem);
  --max-w: 1200px;
  --px: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;
}

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

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

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img  { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a      { color: inherit; text-decoration: none; }
p      { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
ul { list-style: none; }

::selection { background: var(--violet); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--white); color: var(--navy);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-py { padding-block: var(--section-py); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet); flex-shrink: 0;
}

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split]  { opacity: 1; transform: none; }  /* defensive CSS gotcha A.4.5 */

/* =============================================================
   4. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.75rem;
  font-family: var(--display); font-size: .9375rem; font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  text-decoration: none;
  white-space: nowrap;
  min-height: 52px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(30,27,139,.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(184,154,245,.35), 0 4px 16px rgba(30,27,139,.3);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--violet);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* WhatsApp icon inside button */
.btn .btn-icon {
  width: 20px; height: 20px; flex-shrink: 0;
}

/* Breathing pulse animation for main WA CTAs */
.btn-pulse {
  animation: breathePulse 2s ease-in-out infinite;
}
@keyframes breathePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.btn-pulse:hover { animation: none; transform: translateY(-3px); }

/* =============================================================
   5. HEADER / NAV
   ============================================================= */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 24px rgba(30,27,139,.1);
  height: 60px;
}
.site-header.scrolled .nav-link { color: var(--navy); }
.site-header.scrolled .nav-cta  { opacity: 1; pointer-events: auto; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w);
  margin-inline: auto; padding-inline: var(--px);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  color: var(--white);
  transition: color .3s;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header.scrolled .logo { color: var(--navy); }
.logo-accent { color: var(--violet); }
.logo svg    { width: 24px; height: 24px; }

/* Nav links */
.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-family: var(--display); font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 2px; background: var(--violet);
  transition: right .3s var(--ease-out);
}
.nav-link:hover::after { right: 0; }
.nav-link:hover { color: var(--white); }
.site-header.scrolled .nav-link:hover { color: var(--navy); }

/* Nav CTA */
.nav-cta {
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s, background .3s;
}
.site-header.scrolled .hamburger span { background: var(--navy); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu .m-link {
  font-family: var(--display); font-size: 1.75rem; font-weight: 700;
  color: var(--white);
  transition: color .2s;
}
.mobile-menu .m-link:hover { color: var(--violet); }
.mobile-menu .m-wa {
  margin-top: 1rem;
}

/* Desktop nav */
@media (min-width: 960px) {
  .nav-links  { display: flex; }
  .hamburger  { display: none; }
}

/* =============================================================
   6. HERO SECTION
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated mesh gradient overlay */
.hero-mesh {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184,154,245,.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(45,31,163,.6) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(184,154,245,.2) 0%, transparent 45%);
  filter: blur(60px);
  animation: meshDrift 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 1; }
  33%       { transform: scale(1.15) rotate(60deg);  opacity: .8; }
  66%       { transform: scale(1.05) rotate(120deg); opacity: .95; }
}

/* Grain texture */
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(3rem,8vw,6rem) var(--px);
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .7s .1s var(--ease-out) forwards;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--violet);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  opacity: 0; transform: translateY(24px);
  animation: fadeUp .8s .25s var(--ease-out) forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--violet);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.25rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .45s var(--ease-out) forwards;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .7s .6s var(--ease-out) forwards;
}

/* Stats floating pills */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 2.5rem;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .7s .8s var(--ease-out) forwards;
}
.stat-pill {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(184,154,245,.3);
  border-radius: 12px;
  padding: .6rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-value {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 800;
  color: var(--white); line-height: 1;
}
.stat-value .stat-prefix { font-size: 1rem; }
.stat-label {
  font-size: .7rem; font-weight: 600;
  color: var(--violet); letter-spacing: .06em;
  text-transform: uppercase; margin-top: .2rem;
}

/* Hero image / visual */
.hero-visual {
  display: none;
  opacity: 0;
  animation: fadeUp .9s .5s var(--ease-out) forwards;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(184,154,245,.2);
}
.hero-img-wrap img {
  width: 100%; height: 340px; object-fit: cover;
  display: block;
}
.hero-img-badge {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(14,12,82,.85);
  backdrop-filter: blur(12px);
  border-radius: 10px; padding: .75rem 1rem;
  border: 1px solid rgba(184,154,245,.25);
  display: flex; align-items: center; gap: .75rem;
  color: var(--white); font-family: var(--display); font-size: .8rem; font-weight: 600;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.4;} }

@media (min-width: 960px) {
  .hero-inner   { grid-template-columns: 1fr 1fr; }
  .hero-visual  { display: block; }
}

/* =============================================================
   7. TRANSPORTADORAS
   ============================================================= */
.carriers-section {
  background: var(--white);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
}
.carriers-head { text-align: center; margin-bottom: 2.5rem; }
.carriers-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--navy);
  margin-bottom: .5rem;
}
.carriers-head p { color: var(--text-muted); font-size: .9375rem; }

/* Desktop grid */
.carriers-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.carrier-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; padding: 1rem .75rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
  cursor: default;
  filter: grayscale(1) opacity(.6);
}
.carrier-badge:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--violet);
  box-shadow: 0 8px 24px rgba(184,154,245,.2);
  filter: grayscale(0) opacity(1);
}
.carrier-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: .6rem; font-weight: 900;
  color: var(--white); flex-shrink: 0;
  text-align: center; line-height: 1.1;
}
.carrier-name {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  color: var(--text-body); text-align: center; line-height: 1.2;
}

/* Mobile marquee — CSS-only */
.carriers-marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.carriers-marquee {
  display: flex; gap: 1rem;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.carriers-marquee:hover { animation-play-state: paused; }
.carriers-marquee .carrier-badge {
  min-width: 120px; flex-direction: row;
  padding: .65rem 1rem; gap: .5rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (min-width: 720px) {
  .carriers-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
  .carriers-marquee-wrap { display: none; }
}
@media (min-width: 960px) {
  .carriers-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1280px) {
  .carriers-grid { grid-template-columns: repeat(10, 1fr); }
}

/* =============================================================
   8. CÓMO FUNCIONA
   ============================================================= */
.steps-section { background: var(--gray-bg); }
.steps-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.steps-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.steps-head p   { color: var(--text-muted); font-size: 1rem; max-width: 480px; margin-inline: auto; }

.steps-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  position: relative;
}

.step-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 2px 16px rgba(30,27,139,.06);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30,27,139,.12);
}

.step-num {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num svg { width: 24px; height: 24px; color: var(--white); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.step-body p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  display: none; width: 2px; height: 40px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  margin: 0 auto;
}

@media (min-width: 720px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step-card  { flex-direction: column; }
}

/* =============================================================
   9. BENEFICIOS
   ============================================================= */
.benefits-section {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.benefits-mesh {
  position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(circle at 70% 20%, rgba(184,154,245,.2) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(45,31,163,.3) 0%, transparent 50%);
  filter: blur(80px);
}
.benefits-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.benefits-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.benefits-head p   { color: rgba(255,255,255,.65); max-width: 480px; margin-inline: auto; }

.benefits-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(184,154,245,.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
  position: relative;
}

/* Solid fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .benefit-card { background: rgba(30,27,139,.5); }
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: 0 16px 48px rgba(184,154,245,.15);
}
.benefit-icon {
  font-size: 2rem; line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.benefit-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.benefit-card p  { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.65; }

/* =============================================================
   10. COTIZADOR
   ============================================================= */
.cotizador-section { background: var(--white); }
.cotizador-head { text-align: center; margin-bottom: 2.5rem; }
.cotizador-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.cotizador-head p  { color: var(--text-muted); max-width: 480px; margin-inline: auto; }

.cotizador-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 40px rgba(30,27,139,.08);
  max-width: 760px; margin-inline: auto;
  overflow: hidden;
}

.cotizador-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--gray-bg);
  border-bottom: 1px solid var(--line);
}
.cotizador-form h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .form-row { grid-template-columns: 1fr 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  color: var(--navy); letter-spacing: .04em;
}
.form-group select,
.form-group input {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(30,27,139,.2);
  border-radius: 10px;
  font: inherit; font-size: .9375rem; color: var(--text-body);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E1B8B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(184,154,245,.2);
}

.cotizador-btn-row { margin-top: 1.25rem; display: flex; justify-content: flex-end; }

/* Skeleton */
.cotizador-results { padding: clamp(1.5rem, 4vw, 2rem); }
.skeleton-loader { display: none; }
.skeleton-row {
  height: 56px; border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f8 25%, #e0e0f0 50%, #f0f0f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  margin-bottom: .75rem;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Results table */
.results-table { display: none; }
.results-note {
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 1rem;
}
.result-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: .6rem;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), border-color .2s, box-shadow .2s;
}
.result-row.r-best {
  border-color: var(--violet);
  background: rgba(184,154,245,.06);
}
.result-row.is-shown { opacity: 1; transform: none; }

.result-carrier { font-family: var(--display); font-size: .875rem; font-weight: 700; color: var(--navy); flex: 1; min-width: 0; }
.result-time    { font-size: .8rem; color: var(--text-muted); flex-shrink: 0; }
.result-price   { font-family: var(--display); font-size: 1rem; font-weight: 800; color: var(--navy); flex-shrink: 0; text-align: right; }
.result-badge   {
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 50px; flex-shrink: 0; white-space: nowrap;
}
.badge-best  { background: rgba(184,154,245,.2); color: var(--navy); }
.badge-fast  { background: rgba(34,197,94,.15); color: #15803d; }

.results-cta {
  text-align: center; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.results-cta p { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }

.regular-price-note {
  font-size: .75rem; color: var(--text-muted);
  text-decoration: line-through; display: block;
  margin-bottom: .15rem;
}

/* =============================================================
   11. TESTIMONIOS
   ============================================================= */
.testimonials-section { background: var(--gray-bg); }
.testimonials-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.testimonials-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: .5rem; }

.testimonials-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; border: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(30,27,139,.05);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(30,27,139,.1); }

.testimonial-stars {
  display: flex; gap: .2rem; margin-bottom: .9rem;
}
.star { color: var(--violet); font-size: 1rem; }

.testimonial-text {
  font-size: .9375rem; line-height: 1.7; color: var(--text-body);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: .8rem; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.author-name    { font-family: var(--display); font-size: .875rem; font-weight: 700; color: var(--navy); }
.author-biz     { font-size: .75rem; color: var(--text-muted); }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq-section { background: var(--white); }
.faq-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.faq-head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; color: var(--navy); margin-bottom: .5rem; }

.faq-list { max-width: 720px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-family: var(--display); font-size: .9375rem; font-weight: 700; color: var(--navy);
  background: none; border: none; cursor: pointer;
  transition: color .2s;
}
.faq-btn:hover { color: var(--violet); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .35s var(--ease-out);
}
.faq-icon svg { width: 14px; height: 14px; stroke: var(--navy); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.faq-item.is-open .faq-icon { background: var(--violet); transform: rotate(45deg); }
.faq-item.is-open .faq-icon svg { stroke: var(--white); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease-out);
}
.faq-answer p {
  font-size: .9375rem; color: var(--text-body);
  line-height: 1.7; padding-bottom: 1.25rem;
}

/* =============================================================
   13. CTA FINAL
   ============================================================= */
.cta-final {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-final-mesh {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, rgba(184,154,245,.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(45,31,163,.3) 0%, transparent 45%);
  filter: blur(80px);
}
.cta-final-inner { position: relative; }
.cta-final h2 {
  font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 800;
  color: var(--white); margin-bottom: 1rem;
}
.cta-final h2 em { font-style: normal; color: var(--violet); }
.cta-final .sub {
  font-size: clamp(1rem, 2vw, 1.125rem); color: rgba(255,255,255,.7);
  max-width: 460px; margin-inline: auto; margin-bottom: 2.5rem;
}
.cta-final-stats {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: center; margin-top: 1.75rem;
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.55);
  letter-spacing: .05em;
}
.cta-final-stats span { display: flex; align-items: center; gap: .4rem; }
.cta-final-stats span::before { content: "·"; color: var(--violet); }
.cta-final-stats span:first-child::before { display: none; }

/* =============================================================
   14. FOOTER
   ============================================================= */
.site-footer {
  background: var(--navy-deep);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand .logo { color: var(--white); font-size: 1.35rem; margin-bottom: 1rem; }
.footer-brand p {
  font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.7;
  max-width: 280px;
}
.footer-contact {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.footer-contact a {
  font-size: .875rem; color: var(--violet); font-weight: 600;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--display); font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.4); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: space-between;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); }

/* =============================================================
   15. WHATSAPP FLOATING BUTTON
   ============================================================= */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
}
.wa-float-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
  position: relative;
}
.wa-float-btn svg { width: 30px; height: 30px; fill: var(--white); }
.wa-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 40px rgba(37,211,102,.6);
}
.wa-float-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--wa-green);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float-tip {
  position: absolute; right: calc(100% + .75rem); top: 50%; transform: translateY(-50%);
  background: var(--white); color: var(--navy);
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  padding: .45rem .85rem; border-radius: 8px;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-50%) translateX(8px);
  transition: opacity .25s, transform .25s var(--ease-out);
}
.wa-float:hover .wa-float-tip {
  opacity: 1; transform: translateY(-50%) translateX(0);
}

/* =============================================================
   16. ANIMATIONS (general)
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Stagger helpers */
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .19s; }
.stagger-4 { transition-delay: .26s; }
.stagger-5 { transition-delay: .33s; }
.stagger-6 { transition-delay: .40s; }

/* =============================================================
   17. RESPONSIVE ADDITIONS — MOBILE FIRST
   ============================================================= */

/* ── Pantallas muy pequeñas (< 540px — iPhone SE, Moto G) ─── */
@media (max-width: 539px) {

  /* Botones */
  .btn { padding: .8rem 1.4rem; font-size: .875rem; }

  /* Hero — reduce padding vertical para que quepa todo */
  .hero-inner { padding-block: 1.75rem 2.25rem; }

  /* Hero title — un poco más pequeño en SE */
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.2rem); }

  /* Hero acciones — stack vertical, full width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { justify-content: center; }

  /* Hero stats pills — más pequeños, caben 2 en fila */
  .hero-stats { gap: .5rem; }
  .stat-pill  { padding: .5rem .8rem; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: .65rem; }

  /* Cotizador — botón cotizar full width en mobile */
  .cotizador-btn-row { justify-content: stretch; }
  .cotizador-btn-row .btn { width: 100%; justify-content: center; }

  /* Cotizador resultados — reorganizar fila para móvil */
  .result-row {
    flex-wrap: wrap;
    gap: .35rem .5rem;
    padding: .75rem;
  }
  .result-carrier {
    width: calc(100% - 80px); /* carrier ocupa la mayor parte */
    font-size: .8125rem;
  }
  .result-price {
    margin-left: auto;
    text-align: right;
    font-size: .9375rem;
  }
  .regular-price-note { display: none; } /* simplificar en mobile */
  .result-time  { font-size: .72rem; }
  .result-badge { font-size: .65rem; padding: .15rem .45rem; }

  /* CTA final stats — más compactos */
  .cta-final-stats {
    font-size: .72rem;
    gap: .35rem 1rem;
  }

  /* WA float — más pequeño */
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
  .wa-float-btn { width: 52px; height: 52px; }
  .wa-float-btn svg { width: 26px; height: 26px; }

  /* Beneficios — más compacto en mobile */
  .benefit-card { padding: 1.25rem; }
  .benefit-icon { font-size: 1.75rem; margin-bottom: .75rem; }

  /* Steps — más compacto */
  .step-card { padding: 1.25rem; gap: 1rem; }
}

/* ── Tablet portrait 540–719px ─────────────────────────────── */
@media (min-width: 540px) and (max-width: 719px) {
  .hero-inner { padding-block: 2rem 3rem; }
  .hero-title { font-size: clamp(2.1rem, 5vw, 2.6rem); }

  .cotizador-btn-row { justify-content: flex-end; }

  /* result-row sigue siendo flex pero más compacto */
  .result-row { gap: .5rem .75rem; }
  .result-time { font-size: .78rem; }
}

/* ── Desktop ≥ 960px ─────────────────────────────────────── */
@media (min-width: 960px) {
  .step-card { padding: 2rem; }
}

/* =============================================================
   18. PERFORMANCE — reducir peso en dispositivos móviles
   ============================================================= */

/* En móvil (< 720px) eliminamos los efectos de blur pesados
   que matan la GPU de celulares de gama media-baja            */
@media (max-width: 719px) {

  /* Hero mesh: reducir blur de 60px → 30px y simplificar animación */
  .hero-mesh {
    filter: blur(30px);
    animation-duration: 35s; /* más lento = menos CPU */
    inset: -10%;             /* área más pequeña = menos píxeles */
  }

  /* Eliminar mesh decorativos secundarios (son blur de 80px) */
  .benefits-mesh,
  .cta-final-mesh { display: none; }

  /* Benefit cards: quitar backdrop-filter — es muy pesado en móvil
     Usar fondo sólido como fallback (ya definido en @supports) */
  .benefit-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(25, 22, 110, 0.55);
  }

  /* Stat pills del hero: quitar backdrop-filter */
  .stat-pill {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.15);
  }

  /* Nav scrolled: reducir blur */
  .site-header.scrolled {
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
  }

  /* Grain texture: ocultar en móvil (textura apenas visible y costosa) */
  .hero-grain { display: none; }

  /* Tilt 3D: ya desactivado por (hover: hover) en JS, confirmar en CSS */
  .step-card:hover,
  .testimonial-card:hover,
  .benefit-card:hover { transform: none; }
  /* Solo la elevación sutil para feedback táctil */
  .step-card:active         { transform: scale(.98); }
  .testimonial-card:active  { transform: scale(.98); }
}

/* =============================================================
   19. PERFORMANCE — GPU hints globales
   ============================================================= */

/* Promover al compositor solo elementos que SIEMPRE animan */
.hero-mesh         { will-change: transform; }
.wa-float-pulse    { will-change: transform, opacity; }
.carriers-marquee  { will-change: transform; }

/* Las cards solo reciben will-change en hover/focus para no
   desperdiciar memoria de composición en todos los elementos */
@media (hover: hover) {
  .carrier-badge:hover,
  .step-card:hover,
  .benefit-card:hover,
  .testimonial-card:hover { will-change: transform; }
}

/* =============================================================
   20. REDUCED MOTION — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh         { animation: none; will-change: auto; }
  .carriers-marquee  { animation: none; will-change: auto; }
  .badge-dot         { animation: none; }
  .wa-float-pulse    { animation: none; will-change: auto; }
  .btn-pulse         { animation: none; }
  /* NO deshabilitar: hovers, reveals, transiciones de color, count-up */
}
