/* ══════════════════════════════════════════════════════════════════
   BLUEPEACH® — HIGH-CONVERTING BRANDING LANDING PAGE STYLES
   Design System & CRO Optimization Framework
   ══════════════════════════════════════════════════════════════════ */

/* Las fuentes se cargan vía <link> en el <head> (evita doble carga). */

:root {
  /* Brand Tokens (Exact BluePeach Palette) */
  --blue:        #003588;
  --blue-mid:    #005BCD;
  --blue-bright: #0077FF;
  --blue-deep:   #002052;
  --lime:        #BFD500;
  --lime-hover:  #a9bd00;
  --lime-glow:   rgba(191, 213, 0, 0.35);
  
  /* Backgrounds & Surfaces */
  --bg:          #010812;
  --bg-surface:  #020e20;
  --bg-card:     rgba(2, 14, 32, 0.85);
  --bg-card-hover: rgba(0, 53, 136, 0.25);
  --bg-glass:    rgba(1, 15, 36, 0.72);
  
  /* Text & Accents */
  --white:       #ffffff;
  --text-main:   #f0f4fc;
  --text-muted:  rgba(255, 255, 255, 0.65);
  --text-dim:    rgba(255, 255, 255, 0.42);
  --border:      rgba(0, 91, 205, 0.25);
  --border-light:rgba(255, 255, 255, 0.1);
  --border-lime: rgba(191, 213, 0, 0.4);
  
  /* Gradients */
  --grad-hero:   radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 91, 205, 0.35) 0%, rgba(1, 8, 18, 0.95) 75%);
  --grad-lime:   linear-gradient(135deg, #BFD500 0%, #D4EE00 100%);
  --grad-blue:   linear-gradient(135deg, #003588 0%, #005BCD 100%);
  --grad-card:   linear-gradient(180deg, rgba(2, 20, 48, 0.6) 0%, rgba(1, 8, 18, 0.8) 100%);
  
  /* Shadows */
  --shadow-sm:   0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 15px 35px rgba(0, 0, 0, 0.6);
  --shadow-lime: 0 10px 30px rgba(191, 213, 0, 0.28);
  --shadow-blue: 0 10px 30px rgba(0, 91, 205, 0.35);
  
  /* Transitions & Layout */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1260px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 88px;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Subtle background noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--white);
}

a, button {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ── Custom Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-mid);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lime);
}

/* ── Utility Classes ──────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.text-lime { color: var(--lime) !important; }
.text-blue { color: var(--blue-bright) !important; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(191, 213, 0, 0.08);
  border: 1px solid var(--border-lime);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  width: fit-content;
}
.badge-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Glow Blobs & Grid ────────────────────────────────────────── */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}
.glow-blue {
  background: radial-gradient(circle, rgba(0, 91, 205, 0.28) 0%, transparent 70%);
}
.glow-lime {
  background: radial-gradient(circle, rgba(191, 213, 0, 0.14) 0%, transparent 70%);
}

.bg-grid-lines {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(0, 91, 205, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 91, 205, 0.06) 1px, transparent 1px);
}

/* ── Buttons & CTAs ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--grad-lime);
  color: #010812;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lime);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(191, 213, 0, 0.45);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(191, 213, 0, 0.08);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #010812;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Íconos SVG (reemplazan emojis) */
.ico {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.opt-icon-wrap .opt-ico {
  width: 26px;
  height: 26px;
}
/* nowrap solo en los botones compactos del encabezado (los CTA grandes pueden envolver) */
.nav-actions .btn-primary, .nav-actions .btn-whatsapp { white-space: nowrap; }

/* Botones compactos del encabezado */
.nav-actions .btn-whatsapp,
.nav-actions .btn-primary {
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
  gap: 0.4rem;
}
.nav-actions .btn-whatsapp svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.1rem 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

header.scrolled {
  padding: 0.65rem 0;
  background: rgba(1, 8, 18, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.brand-logo-svg {
  height: 38px;
  width: auto;
}

.trust-badge-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 53, 136, 0.35);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-link:hover {
  color: var(--lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Toggle de idioma ES/EN */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.lbtn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  padding: 0.32rem 0.62rem;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.lbtn.on {
  color: #010812;
  background: var(--lime);
}
.lbtn:not(.on):hover { color: var(--lime); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ══════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse at center, rgba(1, 8, 18, 0.75) 0%, rgba(1, 8, 18, 0.96) 80%),
    linear-gradient(90deg, rgba(1, 8, 18, 0.95) 0%, rgba(1, 8, 18, 0.6) 50%, rgba(1, 8, 18, 0.95) 100%);
  pointer-events: none;
}

.hero-glow-1 {
  width: 750px;
  height: 750px;
  top: -150px;
  right: -200px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  bottom: 50px;
  left: -150px;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-headline {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.hero-headline .lime-stroke {
  color: var(--lime);
  display: block;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-trust-bullets {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-item svg {
  color: var(--lime);
  flex-shrink: 0;
}

/* Hero Interactive Card / Quick Estimator Preview */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 91, 205, 0.2);
  backdrop-filter: blur(24px);
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(191, 213, 0, 0.4), rgba(0, 91, 205, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lime);
  background: rgba(191, 213, 0, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-box {
  background: rgba(0, 53, 136, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.metric-box:hover {
  border-color: var(--lime);
  background: rgba(0, 53, 136, 0.28);
}

.metric-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.metric-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-card-cta-banner {
  background: linear-gradient(135deg, rgba(0, 53, 136, 0.4) 0%, rgba(2, 14, 32, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card-cta-banner p {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════════
   CLIENTS / SOCIAL PROOF TICKER
   ══════════════════════════════════════════════════════════════════ */
#clients {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.clients-label {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.ticker-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.ticker-container::before,
.ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}
.ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: ticker-slide 32s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Logos de clientes en imagen (mismos del sitio principal) */
.ticker-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%) brightness(0.72);
  opacity: 0.9;
  transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.ticker-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.06);
}
.ticker-logo[src*="alsuper"] { height: 78px; }
.ticker-logo[src*="Campestre"] { height: 66px; }

/* ══════════════════════════════════════════════════════════════════
   INTERACTIVE QUOTE ENGINE (COTIZADOR EN 4 PASOS)
   ══════════════════════════════════════════════════════════════════ */
#cotizador {
  padding: 6.5rem 0;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.cotizador-wrapper {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 91, 205, 0.15);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px);
}

/* Step Progress Indicator */
.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.step-item.active .step-circle {
  background: var(--lime);
  border-color: var(--lime);
  color: #010812;
  box-shadow: 0 0 20px var(--lime-glow);
}
.step-item.active .step-title {
  color: var(--white);
}

.step-item.completed .step-circle {
  background: var(--blue-mid);
  border-color: var(--blue-bright);
  color: var(--white);
}

.stepper-progress-line {
  position: absolute;
  top: 21px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--blue-mid), var(--lime));
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

/* Step Content Panels */
.step-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}
.step-panel.active {
  display: block;
}

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

.panel-header {
  margin-bottom: 2rem;
}
.panel-question {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.panel-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Option Cards (Radio & Checkbox Grid) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
/* Paso 4 (3 opciones): 3 columnas parejas en desktop; en móvil hereda 1 columna */
@media (min-width: 769px) {
  .options-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.option-card {
  position: relative;
  background: rgba(0, 53, 136, 0.12);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.option-card:hover {
  border-color: rgba(191, 213, 0, 0.6);
  background: rgba(0, 53, 136, 0.24);
  transform: translateY(-3px);
}

.option-card.selected {
  border-color: var(--lime);
  background: rgba(0, 53, 136, 0.35);
  box-shadow: 0 8px 25px rgba(0, 91, 205, 0.3), inset 0 0 0 1px var(--lime);
}

.opt-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(191, 213, 0, 0.1);
  border: 1px solid var(--border-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.opt-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.opt-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.opt-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--lime);
  color: #010812;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* Step 5: Results & Lead Form */
.quote-result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-summary-card {
  background: rgba(0, 53, 136, 0.2);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.quote-price-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  margin: 0.8rem 0;
}

.quote-deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.q-deliv-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-main);
}
.q-deliv-item svg {
  color: var(--lime);
  flex-shrink: 0;
}

.lead-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  background: rgba(0, 53, 136, 0.15);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--lime);
  background: rgba(0, 53, 136, 0.28);
  box-shadow: 0 0 15px rgba(191, 213, 0, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:user-valid {
  border-color: rgba(37, 211, 102, 0.7);
}

/* Estado de error de validación inline */
.form-input.input-error {
  border-color: #ff5252;
  background: rgba(255, 82, 82, 0.08);
}
.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: #ff8a8a;
  font-weight: 500;
}

/* Evita desborde del paso 5 en móvil: inputs y columnas del resumen deben poder encogerse */
.form-input, .form-textarea, .form-select { min-width: 0; }
.quote-result-layout > * { min-width: 0; }

/* Fila teléfono + email: 2 columnas en desktop, apiladas en móvil (evita que el email se corte) */
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .form-row-2col { grid-template-columns: 1fr; } }

/* Stepper Navigation Buttons */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════════
   PROBLEM VS SOLUTION (THE BRANDING GAP)
   ══════════════════════════════════════════════════════════════════ */
#comparativa {
  padding: 7rem 0;
  background: var(--bg-surface);
  position: relative;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.comp-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.comp-bad {
  background: rgba(20, 10, 15, 0.6);
  border: 1px solid rgba(255, 75, 75, 0.25);
}

.comp-good {
  background: rgba(0, 53, 136, 0.2);
  border: 1.5px solid var(--border-lime);
  box-shadow: 0 0 40px rgba(191, 213, 0, 0.1);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.comp-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.comp-bad .comp-icon {
  background: rgba(255, 75, 75, 0.15);
  color: #ff5252;
}
.comp-good .comp-icon {
  background: rgba(191, 213, 0, 0.15);
  color: var(--lime);
}

.comp-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.comp-bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.comp-bad .comp-bullet-icon {
  background: rgba(255, 75, 75, 0.2);
  color: #ff5252;
}
.comp-good .comp-bullet-icon {
  background: rgba(191, 213, 0, 0.2);
  color: var(--lime);
}

/* ══════════════════════════════════════════════════════════════════
   DELIVERABLES & PILLARS (WHAT YOU GET)
   ══════════════════════════════════════════════════════════════════ */
#servicios {
  padding: 7rem 0;
  background: var(--bg);
  position: relative;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.deliv-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deliv-card:hover {
  border-color: var(--lime);
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.deliv-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: rgba(0, 91, 205, 0.3);
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.deliv-card:hover .deliv-num {
  color: rgba(191, 213, 0, 0.25);
}

.deliv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 53, 136, 0.4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.deliv-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.deliv-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.deliv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════
   PORTFOLIO SHOWCASE (CASOS DE ÉXITO)
   ══════════════════════════════════════════════════════════════════ */
#portafolio {
  padding: 7rem 0;
  background: var(--bg-surface);
  position: relative;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
}

.portfolio-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-bg-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-bg-art {
  transform: scale(1.06);
}

.portfolio-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-real-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 8, 18, 0.95) 0%, rgba(1, 8, 18, 0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  transition: opacity 0.3s;
}

.port-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.3rem;
}

.port-name {
  font-size: 1.45rem;
  font-weight: 900;
}

.port-result {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.portfolio-item:hover .port-result {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════
   TEAM SECTION
   ══════════════════════════════════════════════════════════════════ */
#equipo {
  padding: 7rem 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  border-color: var(--lime);
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--lime);
  position: relative;
}
/* Velo inferior para fundir la foto con la tarjeta */
.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(1, 8, 18, 0.55) 100%);
  pointer-events: none;
}

.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}

.team-card > .team-role { margin-top: 1.6rem; }
.team-card > .team-role,
.team-card > .team-name,
.team-card > .team-bio { padding-left: 1.8rem; padding-right: 1.8rem; }
.team-card > .team-bio { padding-bottom: 2rem; }

.team-card:hover .team-photo-img {
  transform: scale(1.08);
}

.team-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.4rem;
}

.team-name {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   TESTIMONIALS & FAQ
   ══════════════════════════════════════════════════════════════════ */
#testimonios {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.test-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-rating {
  color: #FFC107;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.test-quote {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.test-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.test-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
}

.test-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.test-company {
  font-size: 0.8rem;
  color: var(--lime);
}

/* FAQ Accordion */
#faq {
  padding: 7rem 0;
  background: var(--bg);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(0, 53, 136, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.faq-item.open {
  border-color: var(--lime);
  background: rgba(0, 53, 136, 0.2);
}

.faq-trigger {
  width: 100%;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  text-align: left;
}

.faq-q {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--lime);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}

.faq-text {
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0 1.8rem 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   FINAL CALL TO ACTION BANNER
   ══════════════════════════════════════════════════════════════════ */
#cta-final {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
  position: relative;
}

.final-cta-box {
  background: radial-gradient(circle at center, rgba(0, 91, 205, 0.4) 0%, rgba(2, 14, 32, 0.95) 75%);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(191, 213, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.final-cta-title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  margin-bottom: 1.2rem;
}

.final-cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
footer {
  background: #000914;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 1.2rem 0;
  line-height: 1.6;
}

.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-link:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════════════════
   FLOATING BOTTOM BAR (CRO CONVERSION STICKY BAR)
   ══════════════════════════════════════════════════════════════════ */
.floating-cta-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(1, 15, 36, 0.95);
  border: 1px solid var(--border-lime);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(191, 213, 0, 0.25);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 450;
  transition: transform 0.4s var(--ease);
}

.floating-cta-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-bar-text {
  display: flex;
  flex-direction: column;
}

.floating-bar-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
/* El salto forzado solo aparece en móvil (ver media query) */
.fb-break { display: none; }

.floating-bar-sub {
  font-size: 0.75rem;
  color: var(--lime);
}

/* ══════════════════════════════════════════════════════════════════
   MODALS (EXIT INTENT, LIGHTBOX, LEAD ADMIN HUB)
   ══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 8, 18, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-lime);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(191, 213, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--lime);
}

/* Success Celebration State */
.celebration-screen {
  text-align: center;
  padding: 2rem 0;
}

.celebration-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(191, 213, 0, 0.15);
  border: 2px solid var(--lime);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1.5rem;
  animation: bounceIn 0.6s var(--ease);
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Lead Table for Admin Hub */
.lead-table-wrap {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.lead-table th, .lead-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.lead-table th {
  background: rgba(0, 53, 136, 0.3);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lime);
  position: sticky;
  top: 0;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MOBILE & TABLET ADAPTATION)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .quote-result-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .trust-badge-nav {
    display: none;
  }
  /* En móvil el header deja solo un CTA compacto (evita desborde) */
  .nav-actions .btn-whatsapp { display: none; }
  .nav-actions .btn-primary { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .mobile-menu-btn {
    display: flex;
  }
  /* Evita que el badge de ancho fijo empuje el ancho del hero y corte el texto */
  .hero-content { min-width: 0; }
  .badge-tag {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
    text-align: left;
    border-radius: 14px;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }
  .hero-headline {
    font-size: 3rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  /* Stepper en cuadrícula pareja de 2 columnas (el paso 5 abarca todo el ancho) */
  .stepper-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
  }
  .step-item:last-child {
    grid-column: 1 / -1;
  }
  .step-subtitle {
    display: none;
  }
  .stepper-progress-line {
    display: none;
  }
  .cotizador-wrapper {
    padding: 1.8rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* CTA final: que los botones envuelvan y no se corten (apilados full-width) */
  .final-cta-box { padding: 2.5rem 1.2rem; }
  .final-cta-title { font-size: 2.3rem; }
  .final-cta-desc { font-size: 1rem; }
  #cta-final .final-cta-box > div {
    flex-direction: column;
    gap: 0.8rem !important;
  }
  #cta-final .btn-primary,
  #cta-final .btn-whatsapp {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.98rem !important;
    padding: 0.95rem 1.2rem !important;
  }
  /* Footer legible en móvil */
  footer { text-align: center; }
  .footer-links-list { align-items: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom > div { justify-content: center; }
  /* Barra flotante compacta en móvil (sin subtítulo, botón en una línea) */
  .floating-cta-bar {
    width: 94%;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.65rem 0.9rem;
  }
  .floating-bar-sub { display: none; }
  .floating-bar-text { flex: 1; text-align: center; }
  .floating-bar-headline { display: block; font-size: 0.82rem; line-height: 1.3; text-align: center; }
  .fb-break { display: inline; }
  .floating-cta-bar .btn-primary {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
  }
}

/* ── Banner de consentimiento de cookies ── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 660px;
  margin: 0 auto;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: rgba(1, 15, 36, 0.97);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  transform: translateY(160%);
  transition: transform 0.45s var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-text {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.cookie-text a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cookie-btn-solid { background: var(--grad-lime); color: #010812; }
.cookie-btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-light); }
.cookie-btn-ghost:hover { color: var(--lime); border-color: var(--lime); }
/* Mientras el banner de cookies está visible, oculta la barra flotante para no encimarse */
body.cookie-open .floating-cta-bar { display: none !important; }

/* Reveal al hacer scroll (lo activa/limpia initReveal en app.js) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════════
   ACCESIBILIDAD — MOVIMIENTO REDUCIDO
   Respeta a quienes activan "reducir movimiento" en su sistema.
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  .pulse-dot { animation: none !important; }
  .hero-video { display: none !important; }
}

/* Foco visible por teclado en tarjetas y controles interactivos */
.option-card:focus-visible,
.portfolio-item:focus-visible,
.faq-trigger:focus-visible,
.step-item:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* En pantallas táctiles (sin hover) muestra siempre el resultado del portafolio */
@media (hover: none) {
  .port-result { opacity: 1; transform: none; }
}

/* Feedback de presión al hacer clic/tap (AUDIT §3) */
.btn-primary:active,
.btn-secondary:active,
.btn-whatsapp:active,
.option-card:active {
  transform: scale(0.97);
  transition: transform 0.12s ease-out;
}

/* En pantallas táctiles: neutraliza el "hover pegado" (falso hover al tocar) */
@media (hover: none) {
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-whatsapp:hover,
  .option-card:hover,
  .deliv-card:hover,
  .team-card:hover,
  .metric-box:hover,
  .ticker-logo:hover,
  .portfolio-item:hover .portfolio-real-img,
  .team-card:hover .team-photo-img {
    transform: none;
  }
}
