/* ═══════════════════════════════════════════════════════
   SmartBroker – Design System & Styles
   Estilo: Minimalista premium (inspirado en Stripe/bancos digitales)
   Arquitectura: BEM + CSS Custom Properties
   Mobile-first responsive
═══════════════════════════════════════════════════════ */

/* ── Google Fonts (Syne + DM Sans) ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ────────────────────────────────────────
   1. DESIGN TOKENS / CSS VARIABLES
──────────────────────────────────────── */
:root {
  /* Brand (set dynamically via JS, fallbacks here) */
  --primary:       #2D2D2D;   /* Gris carbón — texto "smart" */
  --accent:        #E8571A;   /* Naranja SmartBroker         */
  --accent-alt:    #C44510;   /* Naranja oscuro / hover      */
  --accent-light:  #FFF0E8;   /* Naranja muy claro / fondos  */
  --light:         #F7F7F7;   /* Gris claro neutro           */
  --color-text:    #2D2D2D;
  --color-muted:   #7A7A7A;

  /* Semantic */
  --bg:          #FFFFFF;
  --surface:     #FAFAFA;
  --border:      rgba(45, 45, 45, 0.09);
  --shadow-sm:   0 2px 8px rgba(45,45,45,.07);
  --shadow-md:   0 8px 32px rgba(45,45,45,.10);
  --shadow-lg:   0 24px 64px rgba(45,45,45,.13);
  --success:     #10B981;
  --error:       #EF4444;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing scale (8px base) */
  --sp-1:  8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Layout */
  --container: 1200px;
  --radius-sm:  8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Header height */
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* ← evita desplazamiento lateral en móvil */
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--bg);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* ────────────────────────────────────────
   3. TYPOGRAPHY
──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem);  font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem);   font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--color-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);          /* naranja */
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ────────────────────────────────────────
   4. LAYOUT UTILITIES
──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section {
  padding: var(--sp-7) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-6);
}

.section-desc {
  font-size: 1.05rem;
  margin-top: var(--sp-2);
}

/* ────────────────────────────────────────
   5. BUTTONS
──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  padding: 10px 22px;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--sm  { padding: 8px 18px;  font-size: 0.85rem; }
.btn--lg  { padding: 14px 30px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232, 87, 26, 0.30);
}
.btn--primary:hover {
  background: var(--accent-alt);
  box-shadow: 0 8px 24px rgba(232, 87, 26, 0.42);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--primary);
  border: 1.5px solid var(--border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ────────────────────────────────────────
   6. SCROLL REVEAL ANIMATIONS
──────────────────────────────────────── */
.reveal,
.reveal--right,
.reveal--up {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal         { transform: translateY(28px); }
.reveal--right  { transform: translateX(40px); }
.reveal--up     { transform: translateY(40px); }

.reveal.is-visible,
.reveal--right.is-visible,
.reveal--up.is-visible {
  opacity: 1;
  transform: none;
}

/* ────────────────────────────────────────
   7. HEADER
──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  min-height: var(--header-h);
  height: auto;
  padding: 0 var(--sp-3);
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

/* Al hacer scroll: negro 30% más transparente */
.header--scrolled {
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.60);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(12px) saturate(100%);
  -webkit-backdrop-filter: blur(12px) saturate(100%);
}

/* Nav links: siempre blancos */
.header .nav-link { color: rgba(255,255,255,0.80); }
.header .nav-link:hover,
.header .nav-link.is-active { color: #fff; }

/* Hamburger: siempre blanco */
.header__hamburger span { background: var(--accent); }
.header__hamburger:hover { background: rgba(232,87,26,0.15); }

/* Logo: PNG con transparencia real */
.header__logo-img {
  mix-blend-mode: normal;
  transition: none;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;           /* ← permite que los hijos se compriman */
  width: 100%;
  overflow: hidden;       /* ← evita desbordamiento lateral */
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  width: auto;
  max-width: 130px;   /* proporcional al header de 74px */
  max-height: 56px;   /* deja 9px arriba y abajo de margen */
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  display: block;
}

.logo-mark svg { width: 36px; height: 36px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);      /* "smart" en gris carbón */
  letter-spacing: -0.03em;
}

/* "Broker" en naranja — igual que el logo real */
.logo-accent { color: var(--accent); }

/* Desktop Nav */
.header__nav {
  display: none;
  align-items: center;
  gap: var(--sp-3);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--primary); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;  /* mínimo 44×44px para accesibilidad táctil */
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}
.header__hamburger:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(232,87,26,0.35);
}

.header__hamburger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-fast) var(--ease),
              width var(--dur-base) var(--ease);
}
.header__hamburger span:nth-child(1) { width: 20px; }
.header__hamburger span:nth-child(2) { width: 14px; }
.header__hamburger span:nth-child(3) { width: 20px; }

.header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 20px; }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }


/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  width: 100%;
  max-width: 100vw;
  background: #fff;
  border-bottom: 3px solid var(--accent);
  padding: var(--sp-3) var(--sp-3) var(--sp-5);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 899;
  overflow-x: hidden;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.mobile-link {
  display: flex;
  align-items: center;
  padding: 14px var(--sp-2);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
  min-height: 52px;           /* accesibilidad táctil: zona mínima 48px */
  letter-spacing: -0.01em;
}
.mobile-link:hover,
.mobile-link:active { background: var(--accent-light); color: var(--accent); }
.mobile-link.is-active { color: var(--accent); background: var(--accent-light); }
.mobile-cta {
  display: block;
  margin-top: var(--sp-3);
  text-align: center;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}


/* ────────────────────────────────────────
   8. HERO SECTION
──────────────────────────────────────── */
.hero {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-7);
  background:  transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative backgrounds */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Garantiza que la imagen cubra toda el área en todos los dispositivos */
  min-width: 100%;
  min-height: 100%;
  max-width: none;
}

/* Móviles: desplaza el foco hacia la derecha donde está el logo de la pared */
@media (max-width: 767px) {
  .hero__bg-img {
    object-position: 70% center;
  }
  .hero {
    min-height: 100svh;
    min-height: -webkit-fill-available;
    align-items: flex-end;
    padding-bottom: var(--sp-6);
  }
}

/* Tablets portrait */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__bg-img {
    object-position: 60% center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,8,0.18) 0%, rgba(8,8,8,0.60) 100%);
}

/* Móvil: overlay más pronunciado en la parte inferior para contraste de botones */
@media (max-width: 767px) {
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(8,8,8,0.10) 0%, rgba(8,8,8,0.72) 70%, rgba(8,8,8,0.82) 100%);
  }
}

/* Hero layout */
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  align-items: flex-end;
  width: 100%;
  padding-bottom: var(--sp-5);
}

.hero__inner--full {
  grid-template-columns: 1fr;
  max-width: 100%;
}

/* Hero content */
.hero__content h1 {
  color: #fff;
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.hero__content h1 br { display: block; }

.hero__subtext {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: 0;
}
.hero__actions .btn--ghost {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.22);
}
.hero__actions .btn--ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(232,87,26,.12);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual / card stack */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card-stack {
  position: relative;
  width: 340px;
  height: 226px; /* ratio 1.5:1 igual que la imagen */
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.hero__card--back  { inset: 30px -20px -10px 20px; transform: rotate(6deg);  }
.hero__card--mid   { inset: 15px -10px -5px 10px;  transform: rotate(3deg);  }
.hero__card--front {
  inset: 0;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__card--front.hero__card--img {
  padding: 0;
  overflow: hidden;
  background: #2D2D2D;
  border-color: rgba(232,87,26,.50);
  box-shadow: 0 8px 40px rgba(232,87,26,.30),
              0 0 0 1px rgba(255,165,0,.20),
              inset 0 1px 0 rgba(255,255,255,.05);
}

.hc-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}

.hc-icon svg { width: 44px; height: 44px; }
.hc-label { font-size: 0.72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.1em; }
.hc-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin-top: 2px; }

.hc-bar {
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  overflow: hidden;
}
.hc-bar__fill {
  height: 100%;
  width: 98%;
  background: linear-gradient(90deg, var(--accent), #f07540);
  border-radius: 4px;
  animation: barFill 2s 0.8s var(--ease-out) both;
}
@keyframes barFill { from { width: 0; } }

.hc-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.hc-meta span   { color: rgba(255,255,255,.5); }
.hc-meta strong { color: var(--accent); font-weight: 700; }

/* Floating badges */
.hero__badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.7rem;
  color: rgba(255,255,255,.75);
  animation: float 4s ease-in-out infinite;
}
.hero__badge svg { width: 20px; height: 20px; }
.hero__badge--1 { top: -20px; right: -30px; animation-delay: 0s; }
.hero__badge--2 { bottom: -30px; left: -30px; animation-delay: 2s; }
.badge-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-indicator__dot {
  width: 4px; height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: 4px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(12px); opacity: 0; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-3);
  background: var(--accent);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--sp-2); }

/* ────────────────────────────────────────
   9. SERVICES SECTION
──────────────────────────────────────── */
.services { background: var(--surface); }

.services__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover {
  border-color: rgba(232, 87, 26, 0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  color: var(--accent);
  transition: background var(--dur-base);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon {
  background: #fde0ce;
}

.service-card h3 { margin-bottom: 8px; }
.service-card p  { font-size: 0.92rem; margin-bottom: var(--sp-3); }

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-3);
}
.service-card__features li {
  font-size: 0.82rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card__features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast);
  padding: 8px 0;             /* área táctil vertical */
  min-height: 44px;
}
.service-card__cta svg { width: 14px; height: 14px; }
.service-card__cta:hover { gap: 10px; color: var(--accent-alt); }

/* ────────────────────────────────────────
   10. ABOUT SECTION
──────────────────────────────────────── */
.about { background: var(--bg); }

.about__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

/* Visual */
.about__img-wrap { position: relative; max-width: 480px; }

.about__img-placeholder {
  border-radius: var(--radius-xl);
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.about__img-placeholder:hover .about__team-img {
  transform: scale(1.03);
}

/* Clases ya no usadas — eliminadas */

.about__accent-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about__accent-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.about__accent-card span { font-size: 0.78rem; color: rgba(255,255,255,.65); }

/* Content */
.about__content h2 { margin-bottom: var(--sp-3); }
.about__content p   { margin-bottom: var(--sp-2); }

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.value-item {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast);
}
.value-item:hover { background: var(--light); }

.value-item__icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-alt);
  flex-shrink: 0;
}
.value-item__icon svg { width: 20px; height: 20px; }

.value-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.value-item p {
  font-size: 0.82rem;
  margin: 0;
}

/* ────────────────────────────────────────
   11. TESTIMONIALS
──────────────────────────────────────── */
/* ────────────────────────────────────────
   11. ASEGURADORAS ALIADAS — Carrusel infinito
──────────────────────────────────────── */
.aseguradoras {
  background: var(--primary);
  overflow: hidden;
  padding-bottom: 0;
}

.aseguradoras .eyebrow { color: var(--accent); }
.aseguradoras .section-header h2 { color: #fff; }
.aseguradoras .section-desc { color: rgba(255,255,255,0.55); max-width: 560px; margin: 0 auto; }
.aseguradoras .section-header { margin-bottom: 3rem; }

/* Marquee wrapper — cubre todo el ancho y fade en los bordes */
.aseg-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.aseg-marquee--reverse { margin-top: 0.5rem; padding-bottom: 3rem; }

/* Track — flex infinito, animado con CSS */
.aseg-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-fwd 38s linear infinite;
}

.aseg-track--reverse {
  animation: marquee-rev 42s linear infinite;
}

/* Pausa al hover */
.aseg-marquee:hover .aseg-track,
.aseg-marquee:hover .aseg-track--reverse {
  animation-play-state: paused;
}

/* Cada logo */
.aseg-item {
  flex-shrink: 0;
  width: 140px;
  height: 80px;
  background: transparent;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  transition: transform 0.22s;
}

.aseg-item:hover {
  transform: translateY(-3px) scale(1.05);
}

.aseg-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;      /* elimina fondo blanco de las imágenes */
  filter: brightness(1.1) contrast(1.05);
  opacity: 0.88;
  transition: opacity 0.22s, filter 0.22s, transform 0.22s;
}

.aseg-item:hover img {
  opacity: 1;
  filter: brightness(1.2) contrast(1.1);
}

/* Keyframes */
@keyframes marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* Responsive */
@media (max-width: 640px) {
  .aseg-item { width: 110px; height: 64px; padding: 6px 8px; }
  .aseg-track { gap: 1rem; animation-duration: 26s; }
  .aseg-track--reverse { animation-duration: 30s; }
}

/* ────────────────────────────────────────
   12. CONTACT SECTION
──────────────────────────────────────── */
.contact { background: var(--surface); }

.contact__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}

.contact__info h2 { margin-bottom: var(--sp-2); }
.contact__info > p { margin-bottom: var(--sp-4); }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.contact__details li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.ci-icon {
  font-size: 1.2rem;
  width: 36px; height: 36px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact__details strong { display: block; font-size: 0.78rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; }
.contact__details span   { font-size: 0.9rem; }

/* Social */
.contact__social,
.footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 44px; height: 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent-alt); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-btn--sm { width: 36px; height: 36px; font-size: 0.7rem; }

/* ── Brand colors per social network ── */
.social-btn--linkedin  { color: #0a66c2; border-color: #0a66c2; }
.social-btn--linkedin:hover  { background: #0a66c2; color: #fff; border-color: #0a66c2; }

.social-btn--instagram { color: #e1306c; border-color: #e1306c; }
.social-btn--instagram:hover { background: linear-gradient(135deg,#f58529,#dd2a7b,#515bd4); color: #fff; border-color: transparent; }

.social-btn--facebook  { color: #1877f2; border-color: #1877f2; }
.social-btn--facebook:hover  { background: #1877f2; color: #fff; border-color: #1877f2; }

.social-btn--whatsapp  { color: #25d366; border-color: #25d366; }
.social-btn--whatsapp:hover  { background: #25d366; color: #fff; border-color: #25d366; }

/* Footer overrides keep brand colors */
.footer__brand .social-btn--linkedin  { color: #0a66c2; border-color: rgba(10,102,194,.4); }
.footer__brand .social-btn--instagram { color: #e1306c; border-color: rgba(225,48,108,.4); }
.footer__brand .social-btn--facebook  { color: #1877f2; border-color: rgba(24,119,242,.4); }
.footer__brand .social-btn--whatsapp  { color: #25d366; border-color: rgba(37,211,102,.4); }

/* Form */
.contact__form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full { grid-column: 1 / -1; }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(107,124,147,.5); }
input:hover, textarea:hover, select:hover { border-color: rgba(232,87,26,.3); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,87,26,.15);
  background: var(--bg);
}

textarea { resize: vertical; min-height: 110px; }

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

input.is-invalid, textarea.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
input.is-valid,   textarea.is-valid   { border-color: var(--success); }

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 18px;
}

.form-success {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: #047857;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* ── Error de envío (rate-limit / fallo de red) ── */
.form-send-error {
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: #b91c1c;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  margin-top: var(--sp-2);
}

/* ── File input personalizado ── */
.form-label-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  font-weight: 400;
  margin-left: 4px;
}

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px dashed var(--border, #d1d5db);
  border-radius: var(--radius-md, 8px);
  background: var(--surface, #f9fafb);
  color: var(--text-muted, #6b7280);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.file-input-label:hover,
.file-input-wrapper input[type="file"]:focus + .file-input-label {
  border-color: var(--accent, #E8571A);
  background: rgba(232,87,26,.04);
  color: var(--accent, #E8571A);
}

.file-input-label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────
   13. SITEMAP VISUAL
──────────────────────────────────────── */
.sitemap-visual { background: var(--light); }

.sitemap__tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.smt-root {
  display: flex;
  justify-content: center;
}

.smt-node {
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 600;
  font-family: var(--font-display);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.smt-node--root {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  padding: 14px 36px;
  position: relative;
}
.smt-node--root::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 20px;
  background: var(--border);
}

.smt-branches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  position: relative;
}
.smt-branches::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--border);
}

.smt-branch { display: flex; flex-direction: column; align-items: center; }

.smt-node--primary {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-size: 0.9rem;
  min-width: 140px;
  transition: all var(--dur-fast);
}
.smt-node--primary:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(232,87,26,.15);
}
.smt-node--primary a { color: inherit; display: block; font-weight: 600; }
.smt-node--primary small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 2px;
  font-family: var(--font-body);
}

/* ────────────────────────────────────────
   14. FOOTER
──────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
}

.footer__inner {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-3);
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  margin: var(--sp-2) 0 var(--sp-3);
  max-width: 260px;
}
/* Logo text override for dark footer bg */
.footer__brand .logo-text { color: rgba(255,255,255,.92); }
.footer__brand .logo-accent { color: var(--accent); }

.footer__logo-img {
  width: auto;
  max-width: 202px;
  max-height: 61px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  display: block;
  margin-bottom: var(--sp-2);
  margin-left: 12px;
}

.footer__brand .social-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.footer__brand .social-btn:hover { background: rgba(232,87,26,.12); border-color: var(--accent); color: var(--accent); }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-3) var(--sp-3);
}
.footer__bottom .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,.35); }

/* ────────────────────────────────────────
   15. RESPONSIVE – TABLET (768px+)
──────────────────────────────────────── */
@media (min-width: 768px) {

  /* Header */
  .header__hamburger { display: none; }
  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
  }
  .header__nav ul {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
  }

  /* Hero */
  .hero__inner--full { max-width: 760px; }

  /* Services */
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about__inner { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact__inner { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer__inner { grid-template-columns: 1.2fr 2fr; }

  /* Sitemap branches */
  .smt-branches { flex-wrap: nowrap; }

}

/* ────────────────────────────────────────
   16. RESPONSIVE – DESKTOP (1024px+)
──────────────────────────────────────── */
@media (min-width: 1024px) {

  /* Services */
  .services__grid { grid-template-columns: repeat(4, 1fr); }

  /* Hero card bigger */


  /* Form grid */
  .contact-form { grid-template-columns: 1fr 1fr; }

}

/* ────────────────────────────────────────
   17. REDUCED MOTION
──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--right, .reveal--up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ────────────────────────────────────────
   18. MODAL – POLÍTICA DE DATOS
──────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(232,87,26,0.08);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}

/* Header del modal */
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

.modal__header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.modal__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.modal__icon svg { width: 20px; height: 20px; }

.modal__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal__subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 1px;
  white-space: normal;
  word-break: break-word;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  flex-shrink: 0;
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover {
  background: #fff0e8;
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

/* Cuerpo scrollable */
.modal__body {
  overflow-y: auto;
  padding: var(--sp-4);
  flex: 1;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* Scrollbar personalizada */
.modal__body::-webkit-scrollbar { width: 5px; }
.modal__body::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.modal__body::-webkit-scrollbar-thumb { background: rgba(232,87,26,0.3); border-radius: 4px; }
.modal__body::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Tipografía del contenido */
.modal__body .modal-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--sp-3) 0 var(--sp-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__body .modal-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.modal__body .modal-feat-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--sp-3) 0 var(--sp-1);
  padding: 0;
  list-style: none;
}

.modal__body p,
.modal__body li {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.modal__body ul {
  padding-left: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.modal__body ul li {
  list-style: disc;
  padding-left: 4px;
}

.modal__body strong {
  color: var(--primary);
  font-weight: 600;
}

.modal__body .modal-meta {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 0.82rem;
}
.modal__body .modal-meta strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-alt);
}

.modal__body .modal-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) 0;
}

/* Footer del modal */
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.modal__footer-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  max-width: 260px;
  line-height: 1.4;
}

.modal__footer-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* Responsive modal */
@media (max-width: 600px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    max-height: calc(100dvh - 56px);
    margin-top: 56px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
  .modal-backdrop.is-open .modal {
    transform: translateY(0);
  }
  .modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
  }
  .modal__footer-note { max-width: 100%; }
  .modal__footer-actions { justify-content: stretch; }
  .modal__footer-actions .btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   SPIDER / RADIAL MENU  —  Hero section
═══════════════════════════════════════════════════════ */

/* Wrapper that centers the spider in the hero */
.spider-menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

/* Outer scene container — fixed square so radial maths work */
.spider-scene {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Decorative orbit rings */
.spider-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 87, 26, 0.18);
  pointer-events: none;
}
.spider-orbit-ring--1 { width: 320px; height: 320px; }
.spider-orbit-ring--2 { width: 600px; height: 600px; }

/* SVG connector lines */
.spider-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ── CENTER BUTTON ── */
.spider-center {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: transparent;                 /* Fondo transparente — el logo ya tiene su color */
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: visible;
  padding: 0;
}
.spider-center:hover,
.spider-center.is-open {
  box-shadow:
    0 0 0 14px rgba(232, 87, 26, 0.12),
    0 0 50px rgba(232, 87, 26, 0.35);
  transform: scale(1.08);
}

/* Sello SmartBroker — logo naranja circular real */
.spider-center__img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 50%;
  filter: none;                            /* Mostrar colores reales del logo */
  display: block;
  position: relative;
  z-index: 1;
  drop-shadow: 0 2px 12px rgba(232,87,26,0.4);
}

/* Pulse ring animation */
.spider-center__pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(232, 87, 26, 0.4);
  animation: spider-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spider-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ── MAIN SERVICE NODES (orbit 1) ── */
.spider-node {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(10, 5, 0, 0.85);
  border: 2px solid var(--accent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.2;
  z-index: 15;
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.35s var(--ease),
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    color 0.22s var(--ease);
  box-shadow: 0 0 14px rgba(232, 87, 26, 0.20);
  user-select: none;
  backdrop-filter: blur(4px);
}
.spider-node.is-visible {
  transform: scale(1);
  opacity: 1;
}
.spider-node:hover,
.spider-node.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(232, 87, 26, 0.65);
  transform: scale(1.14);
}
.spider-node .sn-icon {
  font-size: 20px;
  margin-bottom: 2px;
  line-height: 1;
}
.spider-node .sn-label {
  font-size: 7px;
  padding: 0 4px;
  line-height: 1.15;
}

/* ── CHILD NODES (orbit 2) ── */
.spider-child {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(8, 3, 0, 0.88);
  border: 1.5px solid rgba(232, 87, 26, 0.55);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 500;
  color: rgba(232, 87, 26, 0.85);
  text-align: center;
  line-height: 1.2;
  z-index: 12;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.28s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
  backdrop-filter: blur(4px);
}
.spider-child.is-visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}
.spider-child:hover {
  background: rgba(232, 87, 26, 0.22);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(232, 87, 26, 0.45);
  transform: scale(1.18);
}
.spider-child .sc-icon { font-size: 14px; margin-bottom: 1px; }
.spider-child .sc-label { font-size: 6px; padding: 0 2px; line-height: 1.15; }

/* ── HINT TEXT ── */
.spider-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 0.5rem;
  transition: opacity 0.3s;
}

/* ── RESPONSIVE: araña en laptop/escritorio, menú central SOLO en smartphones ── */
.spider-menu-wrap { display: flex; }    /* visible en tablet y escritorio */
.cmenu            { display: none; }    /* oculto en tablet y escritorio */

@media (max-width: 480px) {
  .spider-menu-wrap { display: none !important; }   /* araña oculta en smartphones */
  .cmenu            { display: flex; }               /* menú central solo en smartphones */
}

/* ════════════════════════════════════════════════
   MENÚ CENTRAL MÓVIL — SmartBroker
════════════════════════════════════════════════ */
.cmenu {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
}

.cmenu__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
  opacity: 1;
}

/* ── 3 botones de rama ── */
.cmenu__branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.cmenu__branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 6px 14px;
  background: rgba(232, 87, 26, 0.10);
  border: 1.5px solid rgba(232, 87, 26, 0.40);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}

/* Barra naranja inferior siempre visible */
.cmenu__branch::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.50;
  transition: opacity 0.2s, height 0.2s;
}

.cmenu__branch:hover::after,
.cmenu__branch[aria-expanded="true"]::after {
  opacity: 1;
  height: 4px;
}

.cmenu__branch:hover {
  background: rgba(232, 87, 26, 0.18);
  border-color: rgba(232, 87, 26, 0.80);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 87, 26, 0.20);
}

.cmenu__branch[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(232, 87, 26, 0.45);
  transform: translateY(-1px);
}

.cmenu__branch-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(232, 87, 26, 0.20);
  border: 1.5px solid rgba(232, 87, 26, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.cmenu__branch[aria-expanded="true"] .cmenu__branch-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.60);
}

.cmenu__branch-icon svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  transition: color 0.2s;
}

.cmenu__branch[aria-expanded="true"] .cmenu__branch-icon svg {
  color: #fff;
}

.cmenu__branch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.cmenu__branch[aria-expanded="true"] .cmenu__branch-label {
  color: #fff;
}

.cmenu__chevron {
  width: 14px;
  height: 14px;
  color: rgba(232, 87, 26, 0.70);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
  flex-shrink: 0;
}

.cmenu__branch[aria-expanded="true"] .cmenu__chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.90);
}

/* ── Panel desplegable ── */
.cmenu__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s;
  opacity: 0;
  margin-top: 0;
}

.cmenu__panel.is-open {
  max-height: 640px;
  opacity: 1;
  margin-top: 10px;
}

.cmenu__panel-inner {
  background: rgba(232, 87, 26, 0.06);
  border: 1.5px solid rgba(232, 87, 26, 0.45);
  border-radius: 12px;
  overflow: hidden;
}

.cmenu__panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cmenu__panel-header svg {
  width: 18px;
  height: 18px;
  color: #fff;
  flex-shrink: 0;
}

.cmenu__panel-header span {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.cmenu__panel-items {
  display: grid;
  padding: 10px;
  gap: 7px;
}

/* grid cols set dynamically via JS */
.cmenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 87, 26, 0.22);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}

.cmenu__item:hover,
.cmenu__item:active {
  background: rgba(232, 87, 26, 0.18);
  border-color: rgba(232, 87, 26, 0.70);
}

.cmenu__item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.90;
}

.cmenu__item-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

.cmenu__item-arrow {
  width: 14px;
  height: 14px;
  color: rgba(232, 87, 26, 0.65);
  flex-shrink: 0;
}

/* ── Hint ── */
.cmenu__hint {
  font-size: 10px;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 12px;
  transition: opacity 0.3s;
}

/* ════════════════════════════════════════════════
   MODAL DE SERVICIO — pop-up por ítem de menú
════════════════════════════════════════════════ */


/* ────────────────────────────────────────
   MODAL DE SERVICIO — extiende .modal base
──────────────────────────────────────── */

/* Header naranja para distinguirlo del modal de datos */
.svc-modal__header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1a2e 100%);
  border-bottom: 2px solid var(--accent);
}

.svc-modal__header .modal__title    { color: #fff; }
.svc-modal__header .modal__subtitle { color: rgba(255,255,255,0.60); }
.svc-modal__header .modal__close    { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.20); }
.svc-modal__header .modal__close:hover { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.40); transform: rotate(90deg); }

.svc-modal__icon { background: rgba(232,87,26,0.20); color: var(--accent); }

/* Botón WhatsApp */
.svc-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: #25d366;
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  margin-top: var(--sp-2);
}
.svc-wa-btn:hover { background: #1ebe5c; transform: translateY(-2px); }

/* Divisor "o" */
.svc-or {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}
.svc-or::before, .svc-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Botón bloque para ir a contacto */
.btn--block { display: flex; width: 100%; justify-content: center; gap: 8px; }


/* ────────────────────────────────────────
   CORRECCIONES MÓVIL – Sin desplazamiento lateral
──────────────────────────────────────── */
@media (max-width: 767px) {

  /* Evitar cualquier elemento que desborde el viewport */
  .header,
  .header__inner,
  .mobile-menu {
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Logo: recortar si es muy ancho */
  .header__logo {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .header__logo-img {
    max-width: 120px;
    max-height: 48px;
  }

  /* Hamburger: no se encoge */
  .header__hamburger {
    flex-shrink: 0;
    margin-left: var(--sp-2);
  }

  /* Menú nav desktop: oculto en móvil */
  .header__nav { display: none !important; }

  /* Asegurar que el contenedor principal no desborde */
  #app, main, .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Servicios: 1 columna en móvil, cards con más padding */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .service-card {
    padding: var(--sp-4) var(--sp-3);
  }

  /* Secciones: menos padding vertical en móvil */
  .section {
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-7);
  }

  /* Tipografía responsive */
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.3rem); }

  /* Botones full-width en móvil donde corresponde */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Hero stats no se salen */
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  /* Contact form: campos más grandes para dedos */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 1rem;
    padding: 14px 16px;
    min-height: 52px;
  }

  /* cmenu panel: ancho 100% sin overflow */
  .cmenu__panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .cmenu__panel-items {
    overflow-x: hidden;
  }
}

/* Asegurar que el popup de servicio no se desborde en móvil */
@media (max-width: 600px) {
  .svc-modal .modal__body {
    padding: var(--sp-3);
  }
  /* Header: menos padding para dar más espacio al título */
  .modal__header {
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }
  /* Ícono más pequeño en móvil */
  .modal__icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  /* Botón cerrar no se encoge */
  .modal__close {
    flex-shrink: 0;
  }
  /* Título más compacto */
  .modal__title {
    font-size: 0.92rem;
    line-height: 1.3;
  }
}
