/* =============================================================
   1. TOKENS — Paleta Tradexa
   ============================================================= */
:root {
  /* Colores principales */
  --navy:        #0A1628;
  --navy-2:      #0E1E38;
  --navy-3:      #162647;
  --navy-card:   #112038;
  --white:       #FFFFFF;
  --off-white:   #F4F6FA;
  --cream:       #EEF1F7;
  --orange:      #FF6234;
  --orange-dark: #F24E1B;
  --orange-glow: rgba(255, 98, 52, 0.25);
  --gold:        #D4A017;
  --gold-light:  rgba(212, 160, 23, 0.15);

  /* Texto */
  --text-primary:  #FFFFFF;
  --text-soft:     rgba(255,255,255,0.75);
  --text-muted:    rgba(255,255,255,0.45);
  --text-dark:     #0A1628;
  --text-dark-soft:#2D3748;

  /* Líneas */
  --line:          rgba(255,255,255,0.10);
  --line-dark:     rgba(10,22,40,0.12);

  /* Tipografías */
  --serif:  'Fraunces', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', 'Courier New', monospace;

  /* Espaciado base */
  --section-pad: clamp(5rem, 10vw, 8rem);
  --container:   1200px;
  --gutter:      clamp(1.25rem, 5vw, 2.5rem);

  /* Bordes y radios */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.45);
  --glow-orange:0 0 40px rgba(249,115,22,0.35);

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

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

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

::selection { background: var(--orange); color: #fff; }

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

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--orange); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
.section-kicker {
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.5vw, .8rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.section-title em {
  font-style: italic;
  color: var(--orange);
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-soft);
  max-width: 60ch;
  line-height: 1.7;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* =============================================================
   5. COMPONENTES — Botones
   ============================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: background .25s var(--ease-out), box-shadow .25s var(--ease-out),
              transform .2s var(--ease-out);
}
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg {
  font-size: 1.05rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-lg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out),
              background .25s var(--ease-out), transform .2s var(--ease-out);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out),
              backdrop-filter .35s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 var(--line), 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Links de nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s var(--ease-out);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: .9rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
}

/* Burger (móvil) */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  z-index: 1010;
}
@media (min-width: 960px) { .nav-burger { display: none; } }

.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out);
  z-index: 999;
}
.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 960px) { .nav-mobile { display: none; } }

.nav-mobile-link {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--text-soft);
  font-weight: 400;
  transition: color .2s var(--ease-out);
}
.nav-mobile-link:hover { color: var(--white); }
.nav-mobile-cta {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--orange);
  color: #fff;
  padding: .85rem 2.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

/* Gradiente reactivo al mouse */
.hero-gradient {
  position: absolute;
  inset: 0; z-index: 1;
  background:
    radial-gradient(circle 700px at var(--mx, 30%) var(--my, 60%),
      rgba(249,115,22,0.18) 0%, transparent 55%),
    radial-gradient(circle 900px at calc(var(--mx, 30%) + 20%) calc(var(--my, 60%) - 15%),
      rgba(14,30,56,0.9) 0%, transparent 55%);
  pointer-events: none;
  transition: background 0.4s ease;
}

/* Fondo con foto */
.hero-bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.92) 0%,
    rgba(10,22,40,0.78) 50%,
    rgba(10,22,40,0.88) 100%
  );
}

/* Grano visual */
.hero-grain {
  position: absolute;
  inset: 0; z-index: 2;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-block: clamp(4rem, 8vw, 7rem);
  max-width: var(--container);
}

.hero-kicker {
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.5vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  opacity: 0;
  transform: translateY(20px);
}
.is-ready .hero-kicker { animation: heroFadeUp .8s .1s var(--ease-out) forwards; }

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: heroPulse 2.5s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}
.hero-title em {
  font-style: italic;
  color: var(--orange);
}
.is-ready .hero-title { animation: heroFadeUp .9s .25s var(--ease-out) forwards; }

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(25px);
}
.is-ready .hero-sub { animation: heroFadeUp .9s .4s var(--ease-out) forwards; }

.hero-br { display: none; }
@media (min-width: 720px) { .hero-br { display: inline; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
}
.is-ready .hero-actions { animation: heroFadeUp .8s .55s var(--ease-out) forwards; }

/* Estadísticas del hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}
.is-ready .hero-stats { animation: heroFadeUp .8s .7s var(--ease-out) forwards; }

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.hero-stat-val {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -.02em;
}
.hero-stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px; height: 48px;
  background: var(--line);
  flex-shrink: 0;
}

/* Scroll arrow */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-muted);
  transition: color .2s var(--ease-out), transform .3s var(--ease-out);
  animation: heroScroll 2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--orange); }
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   8. QUIÉNES SOMOS — VALOR
   ============================================================= */
.value-prop {
  background: var(--off-white);
  color: var(--text-dark);
}
.value-prop .section-title { color: var(--navy); }
.value-prop .section-sub { color: var(--text-dark-soft); }
.value-prop .section-kicker { color: var(--orange); }
.value-prop .section-kicker::before { background: var(--orange); }

/* Split imagen + texto */
.value-split {
  display: grid;
  gap: 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 720px) {
  .value-split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.value-split-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.value-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.value-split-img:hover img { transform: scale(1.04); }
.value-split-badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
}
.value-split-badge svg { color: var(--orange); flex-shrink: 0; }

.value-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dark-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.value-list-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-dark-soft);
  line-height: 1.55;
}
.value-list-item svg {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Grid de pilares */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
  border: 1px solid rgba(10,22,40,0.07);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: default;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.12);
}

.pillar-icon {
  width: 52px; height: 52px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.pillar-text {
  font-size: .9rem;
  color: var(--text-dark-soft);
  line-height: 1.65;
}

/* =============================================================
   9. PROCESO END-TO-END
   ============================================================= */
.process-section {
  background: var(--navy);
  position: relative;
}
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(249,115,22,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
  position: relative;
}

/* Línea vertical conectora */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--orange) 10%, var(--orange) 90%, transparent);
  opacity: .2;
}
@media (min-width: 720px) {
  .process-timeline::before { left: 50%; transform: translateX(-50%); }
}

.process-step {
  display: grid;
  gap: 2rem;
  position: relative;
}
@media (min-width: 720px) {
  .process-step {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .process-step--reverse .process-step-img { order: 2; }
  .process-step--reverse .process-step-body { order: 1; }
}

.process-step-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.process-step-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.process-step:hover .process-step-img img { transform: scale(1.04); }

.process-num {
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--orange);
  opacity: .15;
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
  letter-spacing: -.05em;
  user-select: none;
}

.process-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1rem;
}

.process-text {
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.process-tags li {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  padding: .3rem .75rem;
  border-radius: 999px;
}

/* =============================================================
   10. ESTADÍSTICAS
   ============================================================= */
.stats-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem);
}

.stats-bg {
  position: absolute;
  inset: 0; z-index: 0;
}
.stats-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.stats-bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.93) 0%,
    rgba(10,22,40,0.82) 60%,
    rgba(10,22,40,0.93) 100%
  );
}

.stats-inner {
  position: relative; z-index: 1;
  text-align: center;
}

.stats-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.stats-title em { font-style: italic; color: var(--orange); }

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

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.stat-val {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--orange);
  letter-spacing: -.03em;
  display: block;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-soft);
  font-family: var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}

/* =============================================================
   11. FORMULARIO
   ============================================================= */
.form-section {
  background: var(--off-white);
  color: var(--text-dark);
}
.form-section .section-title { color: var(--navy); }
.form-section .section-sub { color: var(--text-dark-soft); }
.form-section .section-kicker { color: var(--orange); }
.form-section .section-kicker::before { background: var(--orange); }

.form-wrapper {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .form-wrapper { grid-template-columns: 1fr 380px; align-items: start; }
}

/* Tarjeta del formulario */
.quote-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 4px 24px rgba(10,22,40,0.08);
  border: 1px solid rgba(10,22,40,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }

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

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .01em;
}
.form-required { color: var(--orange); }
.form-optional {
  font-weight: 400;
  color: var(--text-dark-soft);
  font-size: .8rem;
}

.form-input, .form-textarea {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(10,22,40,0.15);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out),
              background .2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
  background: var(--white);
}
.form-input:hover, .form-textarea:hover {
  border-color: rgba(10,22,40,0.3);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(10,22,40,0.35);
}
.form-input.is-error, .form-textarea.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* Botón submit */
.btn-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}
.btn-submit-loading {
  display: none;
}
.btn-submit.is-loading .btn-submit-text { display: none; }
.btn-submit.is-loading .btn-submit-loading { display: inline; }
.btn-submit.is-loading .btn-submit-icon { display: none; }

/* Mensajes de estado del formulario */
.form-status {
  min-height: 0;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  padding: 0;
  transition: all .3s var(--ease-out);
}
.form-status.is-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: #047857;
  padding: 1rem 1.25rem;
}
.form-status.is-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #b91c1c;
  padding: 1rem 1.25rem;
}

/* Privacidad */
.form-privacy {
  font-size: .8rem;
  color: rgba(10,22,40,0.45);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.form-privacy svg { color: var(--orange); flex-shrink: 0; }

/* Panel de contacto lateral */
.form-contact-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 90px;
}

.contact-panel-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.contact-panel-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-panel-icon {
  width: 42px; height: 42px;
  background: rgba(249,115,22,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-panel-type {
  display: block;
  font-size: .72rem;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.contact-panel-val {
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  transition: color .2s;
}
a.contact-panel-val:hover { color: var(--orange); }

.contact-panel-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  padding: .65rem 1rem;
  border-radius: 999px;
  width: fit-content;
}

.contact-tags-label {
  font-size: .75rem;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  padding: .25rem .7rem;
  border-radius: 999px;
}

/* =============================================================
   12. FOOTER
   ============================================================= */
.footer {
  background: #060E1A;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.footer-social-link:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-3px);
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 140px;
}
.footer-nav-title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .25rem;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav-list a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color .2s var(--ease-out);
}
.footer-nav-list a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-copy, .footer-credits {
  font-size: .8rem;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: .03em;
}

/* =============================================================
   13. EFECTOS — Reveals con IntersectionObserver
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safeguard: elementos con data-split nunca se quedan invisibles */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para grids */
.pillars-grid .pillar-card:nth-child(1) { transition-delay: 0s; }
.pillars-grid .pillar-card:nth-child(2) { transition-delay: .08s; }
.pillars-grid .pillar-card:nth-child(3) { transition-delay: .16s; }
.pillars-grid .pillar-card:nth-child(4) { transition-delay: .06s; }
.pillars-grid .pillar-card:nth-child(5) { transition-delay: .14s; }
.pillars-grid .pillar-card:nth-child(6) { transition-delay: .22s; }

.stats-grid .stat-item:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-item:nth-child(2) { transition-delay: .1s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: .2s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: .3s; }

/* =============================================================
   14. EFECTOS — Tilt 3D en cards (desktop)
   ============================================================= */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* =============================================================
   15. RESPONSIVE — correcciones móvil
   ============================================================= */
@media (max-width: 539px) {
  .hero-stats { gap: 1.25rem; }
  .hero-stat-divider { height: 36px; }
  .hero-stat-val { font-size: 1.75rem; }
  .value-split { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

@media (min-width: 720px) and (max-width: 959px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   16. ANIMACIONES DE CARGA (para secciones de fondo oscuro)
   ============================================================= */
/* Línea de progreso hero (sutil) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold), transparent);
  opacity: .4;
  pointer-events: none;
  z-index: 4;
}

/* =============================================================
   17. PRINT (mínimo)
   ============================================================= */
@media print {
  .nav, .hero-scroll, .footer-social { display: none; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding-top: 0; }
  .hero-bg, .hero-grain, .hero-gradient { display: none; }
  .hero-title, .hero-sub, .hero-kicker, .hero-actions, .hero-stats { opacity: 1; transform: none; }
}

/* =============================================================
   18. EMPRESA HERMANA
   ============================================================= */
.hermana-section { background: var(--navy-2); }

.hermana-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--navy-card);
  border: 1px solid rgba(255,98,52,.18);
  border-radius: 1.25rem;
  padding: 2.5rem 2.75rem;
  text-decoration: none;
  color: inherit;
  margin-top: 3rem;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.hermana-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 40px rgba(255,98,52,.15);
  transform: translateY(-3px);
}
.hermana-card-icon {
  flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 1rem;
  background: #f2f2f2;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hermana-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hermana-card-body { flex: 1; }
.hermana-card-tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .35rem;
}
.hermana-card-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.hermana-card-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 52ch;
}
.hermana-card-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,98,52,.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  transition: background .3s, border-color .3s;
}
.hermana-card:hover .hermana-card-arrow {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.hermana-card-arrow svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .hermana-card { flex-wrap: wrap; padding: 2rem 1.5rem; }
  .hermana-card-arrow { display: none; }
}

/* =============================================================
   19. DESCARGA PRESENTACIÓN
   ============================================================= */
.descarga-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  position: relative;
  overflow: hidden;
}
.descarga-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(255,98,52,.08) 0%, transparent 70%);
  pointer-events: none;
}
.descarga-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.descarga-text { flex: 1; }
.descarga-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin: .75rem 0 1rem;
}
.descarga-title em { color: var(--orange); font-style: normal; }
.descarga-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 48ch;
}
.descarga-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  white-space: nowrap;
}
.descarga-btn svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .descarga-inner { flex-direction: column; align-items: flex-start; }
  .descarga-btn { width: 100%; justify-content: center; }
}
