/* ════════════════════════════════════════════════════════
   TRIVEXA SOLUCIONES INTEGRALES S.A.S.
   styles.css — Diseño corporativo premium
   Paleta: Teal · Marino · Cobre
   ════════════════════════════════════════════════════════ */

/* ─── VARIABLES ──────────────────────────────────────── */
:root {
  /* Colores corporativos (del logo) */
  --teal-deep:    #0D6E65;
  --teal:         #1A8C82;
  --teal-mid:     #2EAD9E;
  --teal-light:   #4ECFC0;
  --teal-pale:    #E0F5F3;
  --navy-dark:    #0A1628;
  --navy:         #111E35;
  --navy-mid:     #1B2B4B;
  --navy-soft:    #253456;
  --copper:       #C4976A;
  --copper-light: #DDB890;
  --copper-glow:  rgba(196, 151, 106, .18);
  --green-acc:    #3DD68C;

  /* UI */
  --white:        #FFFFFF;
  --off-white:    #F4F8F7;
  --surface:      #F0F6F5;
  --border:       #D5E8E6;
  --text-dark:    #0A1628;
  --text-mid:     #2E4057;
  --text-muted:   #6A8099;
  --text-light:   rgba(255,255,255,.85);
  --text-ghost:   rgba(255,255,255,.5);

  /* Tipografía */
  --font-display: 'Clash Display', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Espacios */
  --sp-1:  .25rem;
  --sp-2:  .5rem;
  --sp-3:  .75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --nav-h:        72px;
  --container:    1240px;
  --pad:          clamp(1.25rem, 4vw, 2rem);
  --section-py:   clamp(4.5rem, 9vw, 8rem);

  /* Radios */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   36px;
  --r-full: 9999px;

  /* Sombras */
  --sh-sm:     0 2px 8px rgba(10,22,40,.1);
  --sh-md:     0 6px 24px rgba(10,22,40,.14);
  --sh-lg:     0 16px 48px rgba(10,22,40,.2);
  --sh-xl:     0 32px 80px rgba(10,22,40,.28);
  --sh-teal:   0 8px 32px rgba(26,140,130,.35);
  --sh-copper: 0 8px 32px rgba(196,151,106,.3);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-mid:  300ms ease;
  --t-slow: 600ms cubic-bezier(.16,1,.3,1);
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
address { font-style: normal; }
@media (max-width: 768px) { body, button { cursor: auto; } }

/* ─── CURSOR PERSONALIZADO ───────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform .1s, background .2s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid var(--teal-mid);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: transform .15s ease, border-color .3s;
  opacity: .6;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower { transform: translate(-50%,-50%) scale(1.6); border-color: var(--copper); }

/* ─── LOADER ─────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 99990;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--sp-6);
  animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.95); }
}
.loader__bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.loader__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--copper));
  border-radius: var(--r-full);
  animation: loaderFill 1.4s ease forwards;
}
@keyframes loaderFill { from { width: 0; } to { width: 100%; } }

/* ─── UTILIDADES ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section    { padding-block: var(--section-py); }
.overline {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: var(--sp-3);
  position: relative; padding-left: var(--sp-5);
}
.overline::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  color: var(--navy-dark);
  margin-bottom: var(--sp-4);
}
.section-title--light { color: var(--white); }
.section-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-ghost);
  max-width: 560px;
  line-height: 1.7;
}
.section-sub--dark { color: var(--text-muted); }
.section-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header .section-sub { margin-inline: auto; }
.section-header .overline {
  padding-left: 0;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
}
.section-header .overline::before { position: static; }

/* ─── REVEAL ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.animate-in {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) var(--delay, 0s) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: all var(--t-mid);
  white-space: nowrap; text-decoration: none;
  position: relative; overflow: hidden;
  cursor: none;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0; transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--sh-teal);
}
.btn--primary:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,140,130,.45); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--nav {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
  padding: .5rem 1.25rem;
  font-size: .875rem;
  backdrop-filter: blur(8px);
}
.btn--nav:hover { background: var(--teal); border-color: var(--teal); }

.btn--wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn--wa:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,.4); }

.btn--lg  { padding: .9rem 2.25rem; font-size: 1.05rem; }
.btn--xl  { padding: 1.1rem 2.75rem; font-size: 1.1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─── HEADER ─────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background var(--t-mid), box-shadow var(--t-mid);
}
.header.scrolled {
  background: rgba(10, 22, 40, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6);
}
.nav__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; flex-shrink: 0;
}
.nav__logo-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.12);
  padding: 4px;
}
.nav__logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.nav__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(0.75rem, 3.5vw, 1.25rem);
  color: var(--white); letter-spacing: .04em;
}
.nav__dot { color: var(--copper); }
.nav__links {
  display: flex; align-items: center; gap: var(--sp-1);
}
.nav__link {
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: 2px; left: var(--sp-3); right: var(--sp-3);
  height: 2px; background: var(--teal-light);
  transform: scaleX(0); transition: transform var(--t-mid);
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; padding: var(--sp-2); cursor: none;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: var(--r-full);
  transition: all var(--t-mid);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--navy-dark);
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,140,130,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(196,151,106,.1) 0%, transparent 50%);
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,140,130,.5) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,151,106,.25) 0%, transparent 70%);
  bottom: 0; left: -100px;
  animation: orbFloat 13s ease-in-out infinite 2s reverse;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(30px,-25px) scale(1.06); }
  70%      { transform: translate(-20px,20px) scale(.96); }
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative; z-index: 2;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(26,140,130,.15);
  border: 1px solid rgba(26,140,130,.3);
  color: var(--teal-light);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-6);
}
.hero__pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-light);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: var(--sp-6);
}
.hero__title--accent { color: var(--copper); display: block; }
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.65);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.trust-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: .875rem; color: rgba(255,255,255,.55);
  font-weight: 500;
}
.trust-check { color: var(--teal-light); font-weight: 700; }
.hero__scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-arrow {
  width: 28px; height: 28px;
  border-right: 2px solid rgba(26,140,130,.5);
  border-bottom: 2px solid rgba(26,140,130,.5);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: .6; }
  50%      { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* Hero card stack */
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__card-stack { position: relative; width: 360px; height: 480px; }
.hero__card {
  position: absolute;
  width: 300px; height: auto; min-height: 410px;
  border-radius: var(--r-xl);
}
.hero__card--back {
  background: rgba(26,140,130,.08);
  border: 1px solid rgba(26,140,130,.12);
  right: 0; bottom: 0;
  transform: rotate(6deg);
}
.hero__card--mid {
  background: rgba(26,140,130,.12);
  border: 1px solid rgba(26,140,130,.2);
  right: 10px; bottom: 10px;
  transform: rotate(3deg);
}
.hero__card--front {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  right: 20px; bottom: 20px;
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--sh-xl);
}
.hcard__icon { font-size: 2.5rem; margin-bottom: var(--sp-4); }
.hcard__title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.hcard__sub { font-size: .875rem; color: var(--teal-light); margin-bottom: var(--sp-5); font-weight: 500; }
.hcard__divider { height: 1px; background: rgba(255,255,255,.1); margin-bottom: var(--sp-5); }
.hcard__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .875rem; color: rgba(255,255,255,.7);
  font-weight: 500;
}
.hcard__check { color: var(--green-acc); font-weight: 700; }
.hcard__row--action {
  border-bottom: none;
  padding-top: 1rem;
  justify-content: center;
}
.hcard__btn {
  color: var(--teal-light);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 16px;
  border: 1px solid rgba(26,140,130,.5);
  border-radius: 20px;
  transition: all 0.3s;
  pointer-events: auto;
}
.hcard__btn:hover {
  background: rgba(26,140,130,.15);
}
.hero__badge-float {
  position: absolute;
  background: var(--navy);
  border: 1px solid rgba(26,140,130,.25);
  color: var(--white);
  font-size: .78rem; font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: var(--sp-2);
  box-shadow: var(--sh-md);
  white-space: nowrap;
}
.hero__badge-float span { color: var(--copper); }
.hero__badge-float--1 { top: 75px; left: 110px; animation: badgeFloat 3s ease-in-out infinite; }
.hero__badge-float--2 { bottom: 60px; left: -20px; animation: badgeFloat 3.5s ease-in-out infinite 1s; }
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── STATS BAND ─────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  padding-block: clamp(2rem, 4vw, 3.5rem);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
              linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  position: relative; z-index: 1;
}
.stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  transition: transform var(--t-mid), background var(--t-mid);
}
.stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1; margin-bottom: var(--sp-2);
}
.stat__label {
  font-size: .8rem; color: rgba(255,255,255,.7);
  font-weight: 500; line-height: 1.4;
}

/* ─── NOSOTROS ───────────────────────────────────────── */
.about { background: var(--white); }
.about__container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.about__visual { position: relative; }
.about__img-wrap {
  position: relative;
  padding-top: 110%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-xl);
  overflow: visible;
  box-shadow: var(--sh-xl);
}
.about__img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--teal-deep));
}
.about__big-t {
  font-family: var(--font-display);
  font-size: 14rem; font-weight: 700;
  color: rgba(26,140,130,.18);
  line-height: 1; user-select: none;
  position: absolute;
}
.about__year {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--copper); letter-spacing: .12em;
  position: absolute; bottom: var(--sp-8); left: var(--sp-8);
}
.about__img-badge {
  position: absolute;
  right: -2rem; bottom: 2rem;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  box-shadow: var(--sh-teal);
  border: 3px solid var(--white);
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
  line-height: 1;
}
.about__badge-num sup { font-size: 1.2rem; vertical-align: super; }
.about__badge-text {
  display: block;
  font-size: .75rem; font-weight: 600;
  opacity: .85; line-height: 1.4;
  margin-top: var(--sp-1);
}
.about__deco-line {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  border: 2px solid rgba(26,140,130,.15);
  border-radius: var(--r-xl);
  z-index: -1;
}
.about__text { margin-bottom: var(--sp-8); }
.about__text p {
  color: var(--text-mid);
  line-height: 1.8; font-size: 1rem;
  margin-bottom: var(--sp-4);
}
.about__text strong { color: var(--copper); font-weight: 700; }
.about__quote {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: var(--sp-5) var(--sp-6);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-6) 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 1rem; line-height: 1.8;
}
.about__values {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
}
.value-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: .875rem; font-weight: 600;
  color: var(--navy-mid);
  transition: all var(--t-mid);
}
.value-pill:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ─── SERVICIOS ──────────────────────────────────────── */
.services {
  background: var(--navy-dark);
  position: relative; overflow: hidden;
}
.services__bg-deco {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,140,130,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,140,130,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,280px), 1fr));
  gap: var(--sp-6);
}
.svc-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: all var(--t-mid);
  position: relative; overflow: hidden;
  cursor: none;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--copper));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid);
}
.svc-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(26,140,130,.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transition: transform var(--t-slow), opacity var(--t-mid);
  z-index: 0;
}
.svc-card:hover .svc-card__bg {
  transform: scale(1.08);
  opacity: 0.25;
}
.svc-card > *:not(.svc-card__bg) {
  position: relative;
  z-index: 1;
}
.svc-card__num {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700;
  color: rgba(26,140,130,.4);
  letter-spacing: .1em; margin-bottom: var(--sp-3);
}
.svc-card__icon {
  font-size: 2.5rem; margin-bottom: var(--sp-4);
  display: block;
}
.svc-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--white); margin-bottom: var(--sp-3);
  line-height: 1.3;
}
.svc-card__desc {
  font-size: .9rem; color: rgba(255,255,255,.55);
  line-height: 1.7; margin-bottom: var(--sp-5);
}
.svc-card__tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.svc-tag {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: .75rem; font-weight: 600;
  color: var(--teal-light);
  background: rgba(26,140,130,.1);
  border: 1px solid rgba(26,140,130,.18);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

/* ─── DIFERENCIADORES ────────────────────────────────── */
.diff { background: var(--off-white); }
.diff__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr));
  gap: var(--sp-6);
}
.diff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: all var(--t-mid);
  position: relative;
  transition-delay: var(--card-delay, 0s);
}
.diff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(26,140,130,.2);
}
.diff-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 700;
  color: rgba(26,140,130,.08);
  position: absolute; top: var(--sp-4); right: var(--sp-6);
  line-height: 1; user-select: none;
}
.diff-card__icon { font-size: 2rem; margin-bottom: var(--sp-4); display: block; }
.diff-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: var(--sp-3);
}
.diff-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ─── CTA SECTION ────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section__bg { position: absolute; inset: 0; pointer-events: none; }
.cta-section__orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,140,130,.15) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%;
}
.cta-section__content { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  color: var(--white); margin-bottom: var(--sp-4);
}
.cta-section__sub {
  font-size: 1.1rem; color: rgba(255,255,255,.6);
  margin-bottom: var(--sp-8); line-height: 1.7;
}
.cta-section__sub strong { color: var(--teal-light); }
.cta-section__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }

/* ─── CONTACTO ───────────────────────────────────────── */
.contact { background: var(--white); }
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.contact__sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--sp-8); }
.contact__list { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-item { display: flex; align-items: flex-start; gap: var(--sp-4); }
.contact-item__icon {
  font-size: 1.3rem;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-pale);
  border-radius: var(--r-md);
  flex-shrink: 0;
  border: 1px solid rgba(26,140,130,.15);
}
.contact-item strong { display: block; font-weight: 700; color: var(--navy-dark); font-size: .875rem; margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: .95rem; color: var(--text-muted); transition: color var(--t-fast); }
.contact-item a:hover { color: var(--teal); }

/* Formulario */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--sh-lg);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: var(--sp-6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form-group label {
  font-size: .875rem; font-weight: 600; color: var(--navy-dark);
}
.req { color: #e53e3e; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem; color: var(--text-dark);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,140,130,.12);
  background: var(--white);
}
.form-group input.err,
.form-group select.err,
.form-group textarea.err {
  border-color: #e53e3e;
  box-shadow: 0 0 0 4px rgba(229,62,62,.08);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A8099' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-error { font-size: .8rem; color: #e53e3e; display: none; }
.form-error.show { display: block; }
.form-privacy { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: var(--sp-4); }
.form-success {
  text-align: center; padding: var(--sp-12) var(--sp-6);
}
.success-icon { font-size: 3.5rem; margin-bottom: var(--sp-4); }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem; color: var(--navy-dark);
  margin-bottom: var(--sp-2);
}
.form-success p { color: var(--text-muted); margin-bottom: var(--sp-6); }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--navy-dark); color: var(--white); }
.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.footer__logo {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer__logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; color: var(--white);
  box-shadow: var(--sh-teal);
}
.footer__logo-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.4rem;
  color: var(--white); letter-spacing: .04em;
}
.footer__logo-sub { font-size: .75rem; color: var(--copper); letter-spacing: .04em; }
.footer__desc { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: var(--sp-5); }
.footer__social { display: flex; gap: var(--sp-3); }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--t-mid);
  text-decoration: none;
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: var(--sp-5);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col ul li, .footer__col ul li span { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.5; }
.footer__col ul li a { font-size: .875rem; color: rgba(255,255,255,.4); transition: color var(--t-fast); }
.footer__col ul li a:hover { color: var(--teal-light); }
.footer__contact-list li { display: flex; align-items: flex-start; gap: var(--sp-2); }
.footer__contact-list li span { font-size: 1rem; margin-top: 1px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--sp-5);
}
.footer__legal {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: var(--sp-3);
  font-size: .78rem; color: rgba(255,255,255,.25);
}

/* ─── FLOATING ELEMENTS ──────────────────────────────── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: all var(--t-mid);
}
.wa-float:hover { background: #1ebe5d; transform: scale(1.1) translateY(-3px); }
.back-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 900;
  width: 46px; height: 46px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--sh-teal);
  transition: all var(--t-mid);
  opacity: 0; transform: translateY(12px);
  cursor: none;
}
.back-top:not([hidden]) { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--teal-mid); transform: translateY(-3px); }

/* ─── NAV ACTIONS ───────────────────────────────────── */
.nav__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
}
.nav__mobile-only { display: none; } /* hidden on desktop */

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__card-stack { width: 320px; height: 450px; margin-inline: auto; }
  .hero__card { width: 300px; height: auto; min-height: 400px; }
  .about__container { grid-template-columns: 1fr; }
  .about__img-wrap { padding-top: 75%; max-width: 500px; margin-inline: auto; }
  .about__img-badge { right: 1rem; }
  .footer__container { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,22,40,.97);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: var(--sp-4) var(--pad) var(--sp-8);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform var(--t-mid), opacity var(--t-mid);
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { padding: var(--sp-4) var(--sp-3); font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav__link::after { display: none; }
  .btn--nav { display: none; }
  .nav__actions { display: none; }   /* hide desktop buttons on mobile */
  .nav__mobile-only { display: block; } /* show mobile-only nav items */
  .nav__toggle { display: flex; }
  .hero__actions, .cta-section__actions { flex-direction: column; align-items: flex-start; }
  .cta-section__actions { align-items: center; }
  .hero__trust { flex-direction: column; gap: var(--sp-3); }
  .hcard__row--action { justify-content: flex-end; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
  .contact__container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__container { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__legal { flex-direction: column; text-align: center; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
  .back-top { bottom: 1.25rem; left: 1.25rem; }
  .cursor, .cursor-follower { display: none; }
  .about__img-badge { top: 1rem; bottom: auto; right: 1rem; }
}
@media (max-width: 480px) {
  .hero__card-stack { width: 100%; max-width: 300px; height: 440px; }
  .hero__card { width: 100%; height: auto; min-height: 400px; }
  .hero__card--front { padding: var(--sp-6) var(--sp-5); }
  .hcard__title { font-size: 1.6rem; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; }
}

/* ─── ACCESIBILIDAD ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ─── DARK MODE ──────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .about { background: #0F1E30; }
  .diff   { background: #0D1927; }
  .contact{ background: #0F1E30; }
  .diff-card, .contact__form-wrap {
    background: #162436;
    border-color: rgba(255,255,255,.07);
  }
  .diff-card__title, .form-title { color: var(--white); }
  .diff-card__desc, .contact__sub { color: rgba(255,255,255,.45); }
  .section-sub--dark { color: rgba(255,255,255,.45); }
  .section-title { color: var(--white); }
  .about__text p { color: rgba(255,255,255,.6); }
  .about__quote { background: rgba(26,140,130,.1); color: rgba(255,255,255,.7); }
  .value-pill { background: rgba(26,140,130,.1); border-color: rgba(26,140,130,.2); color: var(--teal-light); }
  .form-group input, .form-group select, .form-group textarea {
    background: #0F1E30;
    border-color: rgba(255,255,255,.12);
    color: var(--white);
  }
  .form-group label { color: var(--white); }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: #162436;
  }
  .contact-item strong { color: var(--white); }
  .contact-item__icon { background: rgba(26,140,130,.12); }
  .footer__col ul li, .footer__col ul li span { color: rgba(255,255,255,.35); }
  /* Form hint/help texts inside work form */
  .contact__form-wrap .form-group p {
    color: rgba(255,255,255,0.65) !important;
  }

  /* ─ TRABAJA section: fix title and labels on light background ─ */
  #trabaja .section-title {
    color: var(--copper) !important;   /* golden title visible on light bg */
  }
  #trabaja .contact__info .contact__sub,
  #trabaja .contact__info p {
    color: var(--navy-mid) !important;
  }
  /* Checkboxes inside the white scrollable box must have dark text */
  #trabaja .form-group div[style*="background: var(--white)"] label,
  #trabaja .form-group div[style*="background: var(--white)"] {
    color: #0a1628 !important;
  }
  /* Perfil checkboxes grid labels */
  #trabaja .form-group div[style*="grid-template-columns: 1fr 1fr"] label {
    color: var(--white);
  }
}
