/* ============================================================
   BUS RECAMBIOS SL — styles.css
   Paleta corporativa basada en el logo (#292A7C)
   ============================================================ */

:root {
  --navy-950: #101137;
  --navy-900: #191A52;
  --navy-800: #22236A;
  --navy-700: #292A7C;            /* color corporativo del logo */
  --navy-600: #34369B;
  --navy-500: #4548C4;
  --accent:   #4F52E8;
  --accent-soft: #EDEEFC;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #F5F6FA;
  --line: #E4E6F0;
  --text: #1B1C26;
  --muted: #5C5E72;
  --muted-light: #9FA1B5;

  --font-head: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(16, 17, 55, .10);
  --shadow-sm: 0 4px 16px rgba(16, 17, 55, .07);
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);

  --container: 1180px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Scrollbar personalitzada ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--navy-600) var(--bg-alt); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 8px; border: 2.5px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Accesibilidad: foco visible por teclado ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-outline:focus-visible, .hero a:focus-visible, .footer a:focus-visible, .why a:focus-visible { outline-color: #fff; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--navy-500), var(--accent));
  box-shadow: 0 0 10px rgba(79,82,232,.5);
  transition: width .12s linear; pointer-events: none;
}

/* ---------- Utilidades ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* Compensa la navbar fija al saltar a una sección con un enlace ancla */
main section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  color: var(--navy-950);
  max-width: 640px;
}
.section-lead { color: var(--muted); max-width: 560px; margin-top: 18px; font-size: 1.06rem; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-title, .section-head.center .section-lead { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s ease; position: relative; z-index: 1; }
.btn > * { position: relative; z-index: 1; }
.btn:hover svg { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); z-index: 0; pointer-events: none;
}
.btn:hover::after { left: 150%; transition: left .75s ease; }
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 24px rgba(41, 42, 124, .35); }
.btn-primary:hover { background: var(--navy-600); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(41, 42, 124, .45); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(79, 82, 232, .38); }
.btn-accent:hover { background: #3F42D6; transform: translateY(-2px); }

.btn-outline { border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-outline:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn-ghost { color: var(--navy-700); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-700); }

/* ---------- Marca de agua corporativa (secciones claras) ---------- */
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: ""; position: absolute; z-index: 0;
  width: clamp(300px, 34vw, 520px); aspect-ratio: 1;
  background: url("/assets/img/favicon-512.png") no-repeat center / contain;
  opacity: .06; pointer-events: none;
  right: -5%; top: 50%; transform: translateY(-50%);
}
.watermark-left::before { right: auto; left: -5%; }
.watermark > .container { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: var(--transition);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 58px; width: auto; transition: var(--transition); }
.navbar.scrolled .nav-logo img { height: 48px; }
.nav-logo .logo-dark { display: none; }

.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: .93rem; font-weight: 500; color: rgba(255,255,255,.88);
  position: relative; padding: 6px 0; transition: color .3s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: currentColor; border-radius: 2px; transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-cta { padding: 11px 22px; font-size: .88rem; }
.nav-menu .nav-cta { display: none; }

/* Selector de idioma */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.lang-switch a {
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px; color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: #fff; color: var(--navy-800); }

/* Navbar al hacer scroll */
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(16,17,55,.06);
}
.navbar.scrolled .nav-logo .logo-white { display: none; }
.navbar.scrolled .nav-logo .logo-dark { display: block; }
.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--navy-700); }
.navbar.scrolled .lang-switch { background: var(--bg-alt); }
.navbar.scrolled .lang-switch a { color: var(--muted); }
.navbar.scrolled .lang-switch a.active { background: var(--navy-700); color: #fff; }

/* Hamburguesa */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; z-index: 110; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto;
  border-radius: 2px; transition: var(--transition);
}
.navbar.scrolled .nav-toggle span, .navbar.menu-open .nav-toggle span { background: var(--navy-800); }
.navbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("/assets/img/hero.jpg");
  background-size: cover; background-position: center bottom;
  transform-origin: 62% 100%;
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.15); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(78deg, rgba(13,14,48,.93) 0%, rgba(24,25,80,.82) 34%, rgba(31,32,98,.42) 62%, rgba(16,17,55,.28) 100%),
    linear-gradient(0deg, rgba(13,14,48,.55) 0%, transparent 30%);
}
.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 720px; padding: 140px 0 120px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #6EE7A0; box-shadow: 0 0 10px #6EE7A0; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.025em;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal; color: #A5B4FF;
  background: linear-gradient(100deg, #A5B4FF 0%, #7E93FF 55%, #C3CCFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.82);
  max-width: 560px; margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Mini-stats del hero */
.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stat .num {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em;
}
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 2px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.6);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Animación de entrada */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-content > * { animation: heroIn .9s cubic-bezier(.2,.6,.2,1) both; }
.hero-content > *:nth-child(1) { animation-delay: .05s; }
.hero-content > *:nth-child(2) { animation-delay: .18s; }
.hero-content > *:nth-child(3) { animation-delay: .32s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .62s; }

/* ============================================================
   BARRA DE CONFIANZA
   ============================================================ */
.trustbar { background: var(--navy-950); color: #fff; padding: 34px 0; }
.trustbar .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { width: 26px; height: 26px; color: #A5B4FF; flex-shrink: 0; }
.trust-item p { font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.85); line-height: 1.4; }

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.about-text p strong { color: var(--navy-800); font-weight: 600; }

.about-quote {
  margin: 28px 0 0; padding: 20px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy-800);
}

.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; height: 560px; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.about-media:hover img { transform: scale(1.025); }
.about-media::before {
  content: ""; position: absolute; inset: 26px -26px -26px 26px;
  border: 2px solid var(--line); border-radius: var(--radius); z-index: -1;
}
.about-card {
  position: absolute; left: -34px; bottom: 40px;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 18px 24px;
  display: flex; align-items: center; gap: 14px;
}
.about-card svg { width: 34px; height: 34px; color: var(--accent); }
.about-card .t { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: .95rem; line-height: 1.3; }
.about-card .s { font-size: .78rem; color: var(--muted); }

/* Contadores */
.counters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line);
}
.counter .num {
  font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700; color: var(--navy-700); letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(120deg, var(--navy-800) 20%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter .num sup { font-size: .55em; color: var(--accent); -webkit-text-fill-color: var(--accent); }
.counter .lbl { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 218px; gap: 20px;
}

.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: var(--transition);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}

/* Bento: primera tarjeta destacada (grande) */
.service-card.feature { grid-column: span 2; grid-row: span 2; }
.service-card:nth-child(2) { grid-column: span 2; }
.service-card.feature {
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-600) 60%, var(--accent) 130%);
  border-color: transparent; color: #fff; justify-content: flex-end; gap: 16px;
}
.service-card.feature::before { display: none; }
.service-card.feature::after {
  content: ""; position: absolute; right: -26px; bottom: -22px; width: 220px; height: 184px;
  background: url("/assets/img/logo-white.png") no-repeat right bottom / contain;
  opacity: .10; pointer-events: none;
}
.service-card.feature .service-icon { background: rgba(255,255,255,.16); color: #fff; }
.service-card.feature h3 { color: #fff; font-size: 1.5rem; }
.service-card.feature p { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 340px; }
.service-card.feature:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(41,42,124,.4); }
.service-icon { transition: var(--transition); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-5deg); }
.service-card:not(.feature):hover .service-icon { background: var(--navy-700); color: #fff; }
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-soft); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 27px; height: 27px; }
.service-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--navy-950); letter-spacing: -.01em; }
.service-card p { color: var(--muted); font-size: .93rem; flex-grow: 1; }

.service-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px;
  align-self: flex-start;
}

/* ============================================================
   MARCAS
   ============================================================ */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.brand-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 420px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease; filter: saturate(.85);
}
.brand-card:hover img { transform: scale(1.06); }
.brand-card::before {
  content: ""; position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-8px); transition: var(--transition);
}
.brand-card:hover::before { opacity: 1; transform: none; }
.brand-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,17,55,.12) 0%, rgba(16,17,55,.42) 55%, rgba(13,14,48,.92) 100%);
}
.brand-card-body { position: relative; z-index: 1; padding: 30px 28px; }
.brand-card-body .mk { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #A5B4FF; }
.brand-card-body h3 { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; margin: 6px 0 8px; letter-spacing: -.01em; }
.brand-card-body p { font-size: .9rem; color: rgba(255,255,255,.78); max-width: 300px; }

.brands-note { text-align: center; color: var(--muted); margin-top: 44px; font-size: .98rem; }
.brands-note strong { color: var(--navy-800); }

/* Marquee de marcas */
.marquee {
  margin-top: 40px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 60px; width: max-content;
  animation: marquee 36s linear infinite;
  animation-delay: -6s; /* arranca a mitja passada: cap logo tallat al carregar */
}
.brand-logo img { width: auto; display: block; }
.brands-legal {
  text-align: center; font-size: .76rem; color: var(--muted-light);
  max-width: 720px; margin: 30px auto 0; line-height: 1.5;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--muted-light); white-space: nowrap;
  transition: color .35s ease, transform .35s ease;
}
.brand-logo:hover { color: var(--navy-700); transform: translateY(-2px); }
.brand-logo svg { height: 32px; width: auto; flex-shrink: 0; }
.brand-logo .bw {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.4rem; letter-spacing: .01em;
}
.brand-logo .bw-i { font-style: italic; letter-spacing: -.01em; }
.brand-logo .bw-sp { letter-spacing: .18em; font-size: 1.25rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   POR QUÉ ELEGIRNOS (fondo navy)
   ============================================================ */
.why { background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; right: -220px; top: -220px; width: 640px; height: 640px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79,82,232,.25), transparent 65%);
}
.why .section-title { color: #fff; }
.why .section-lead { color: rgba(255,255,255,.7); }
.why .eyebrow { color: #A5B4FF; }
.why .eyebrow::before { background: #A5B4FF; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.why-item {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 30px 28px; background: rgba(255,255,255,.04);
  backdrop-filter: blur(4px); transition: var(--transition);
}
.why-item:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); transform: translateY(-4px); }
.why-item svg { width: 30px; height: 30px; color: #A5B4FF; margin-bottom: 16px; transition: transform .35s ease; }
.why-item:hover svg { transform: scale(1.15) rotate(-6deg); }
.why-item h3 { font-family: var(--font-head); font-size: 1.06rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: .9rem; color: rgba(255,255,255,.68); }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 20px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: -6px; right: 18px;
  font-family: var(--font-head); font-size: 6.5rem; font-weight: 700; line-height: 1;
  color: var(--accent-soft); pointer-events: none;
}
.testimonial > * { position: relative; }
.testimonial:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.testimonial .stars { display: flex; gap: 3px; color: #F5B942; }
.testimonial .stars svg { width: 17px; height: 17px; }
.testimonial blockquote { color: var(--text); font-size: .98rem; flex-grow: 1; }
.testimonial cite { font-style: normal; display: flex; align-items: center; gap: 12px; }
.testimonial cite .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.testimonial cite .who .n { font-weight: 600; font-size: .92rem; color: var(--navy-950); }
.testimonial cite .who .c { font-size: .8rem; color: var(--muted); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600) 60%, var(--accent));
  border-radius: calc(var(--radius) + 6px);
  padding: 64px 60px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; right: 8%; top: -40%; width: 320px; height: 320px;
  border: 60px solid rgba(255,255,255,.07); border-radius: 50%;
}
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; max-width: 560px; position: relative; }
.cta-banner p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 520px; position: relative; }
.cta-banner .btn { flex-shrink: 0; background: #fff; color: var(--navy-800); position: relative; }
.cta-banner .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy-950); margin-bottom: 7px; }
.form-group label .req { color: var(--accent); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg-alt); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 82, 232, .12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input.error, .form-group textarea.error { border-color: #E5484D; }

.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; }
.form-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--navy-700); flex-shrink: 0; }
.form-check label { font-size: .82rem; color: var(--muted); }
.form-check label a { color: var(--navy-700); text-decoration: underline; }

.form-msg { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; }
.form-msg.ok { display: block; background: #E9F9EF; color: #18794E; }
.form-msg.err { display: block; background: #FDE8E8; color: #CD2B31; }

/* Info de contacto */
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius-sm); transition: var(--transition);
}
.contact-item:hover { background: var(--bg-alt); }
.contact-item .ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.contact-item:hover .ico { background: var(--navy-700); color: #fff; transform: scale(1.08) rotate(-5deg); }
.contact-item .ico svg { width: 21px; height: 21px; }
.contact-item .t { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-item .v { font-weight: 600; color: var(--navy-950); font-size: .98rem; }
.contact-item .v a:hover { color: var(--accent); }
.contact-item .v small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

.contact-map {
  margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; filter: saturate(.8); }

.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 14px 26px; border-radius: 999px;
  background: #25D366; color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: var(--transition);
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }
.wa-btn svg { width: 20px; height: 20px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .45; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; right: -3%; bottom: -12%;
  width: clamp(300px, 30vw, 480px); aspect-ratio: 1;
  background: url("/assets/img/favicon-512.png") no-repeat center / contain;
  opacity: .05; pointer-events: none;
  filter: brightness(0) invert(1);
}
.footer > .container { position: relative; z-index: 1; }
.footer::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700) 0%, var(--accent) 50%, var(--navy-700) 100%);
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px;
  padding: 72px 0 56px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: .92rem; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer h4 {
  font-family: var(--font-head); color: #fff; font-size: .95rem; font-weight: 700;
  margin-bottom: 20px; letter-spacing: .02em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .9rem; transition: color .3s ease; }
.footer-col a:hover { color: #A5B4FF; }
.footer-col li { font-size: .9rem; }
.footer-col .fi { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .fi svg { width: 16px; height: 16px; margin-top: 4px; color: #A5B4FF; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   ANIMACIONES DE APARICIÓN
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .service-card.feature { grid-column: span 2; grid-row: auto; }
  .service-card.feature p { max-width: none; }
  .service-card:nth-child(2) { grid-column: span 2; }
  .service-card { min-height: 200px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-card { height: 360px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .about-media img { height: 460px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-menu { gap: 24px; }
}

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { height: 340px; }
  .about-media::before { display: none; }
  .about-card { left: 16px; bottom: 24px; }
  .brands-grid { grid-template-columns: 1fr; }
  .brand-card { height: 300px; }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 32px; }
  .contact-form { padding: 30px 24px; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 66px; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 100;
    background: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  }
  .navbar.menu-open .nav-menu { opacity: 1; visibility: visible; }
  .nav-link { color: var(--navy-950) !important; font-size: 1.35rem; font-family: var(--font-head); font-weight: 600; padding: 12px 0; }
  .nav-menu .nav-cta { display: inline-flex; margin-top: 18px; font-size: 1rem; padding: 14px 32px; }
  .nav-toggle { display: block; }
  .nav-logo { position: relative; z-index: 110; }
  .nav-right { position: relative; z-index: 110; }
  .nav-right .nav-cta { display: none; }
  .nav-logo img { height: 40px; }
  .navbar.menu-open .nav-logo .logo-white { display: none; }
  .navbar.menu-open .nav-logo .logo-dark { display: block; }
  .navbar.menu-open .lang-switch { background: var(--bg-alt); }
  .navbar.menu-open .lang-switch a { color: var(--muted); }
  .navbar.menu-open .lang-switch a.active { background: var(--navy-700); color: #fff; }

  .hero-content { padding: 120px 0 100px; }
  .hero-stats { margin-top: 52px; }
  .counters { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.feature, .service-card:nth-child(2) { grid-column: span 1; }
  .service-card { min-height: 0; }
  .watermark::before { display: none; }
  .marquee-track { gap: 40px; }
  .brand-logo .bw { font-size: 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trustbar .container { grid-template-columns: 1fr; gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-head { margin-bottom: 40px; }
}
