:root {
  /* Zona oscura */
  --bg: #0a0d1f;
  --bg-soft: #11152e;
  --bg-card: #141a36;
  --line: #242b52;
  --text: #eef0fb;
  --text-muted: #a3a8cc;

  /* Zona clara (secciones alternadas) */
  --light-bg: #ffffff;
  --light-bg-alt: #f7f8fb;
  --light-card: #f7f8fb;
  --light-text: #0a0d1f;
  --light-text-muted: rgba(10, 13, 31, .58);
  --light-line: rgba(10, 13, 31, .08);

  /* Acento único (antes eran los 3 colores del aro del logo a la vez — un
     solo dorado se ve más sobrio/corporativo, los 3 juntos se sentían festivos). */
  --gold: #d4a853;
  --gold-hover: #c49a48;
  --gold-soft: rgba(212, 168, 83, .12);

  --radius: 14px;
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Temas de sección (alternancia clara/oscura) ───────────
   Redefinen las MISMAS variables que ya usan los componentes
   (--text, --text-muted, --bg-card, --line, --bg-soft), así que
   cualquier tarjeta/lista/ícono dentro se adapta automáticamente
   sin tener que duplicar reglas por componente. */

.theme-light, .theme-light-alt {
  color: var(--light-text);
  --text: var(--light-text);
  --text-muted: var(--light-text-muted);
  --bg-card: var(--light-card);
  --line: var(--light-line);
}

.theme-light { background: var(--light-bg); --bg-soft: var(--light-bg-alt); }
.theme-light-alt { background: var(--light-bg-alt); --bg-card: #ffffff; --bg-soft: var(--light-bg-alt); }

/* ── Botones ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #0a0d1f;
  box-shadow: 0 8px 24px rgba(212, 168, 83, .25);
}

.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 168, 83, .35); }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-whatsapp {
  background: #25d366;
  color: #06210f;
}

.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 211, 102, .35); }

/* ── Foco accesible (navegación por teclado) ──────────────
   No depender solo de :hover — :focus-visible se activa con teclado/control
   por switch pero no con clic de mouse, así que no afecta el look normal. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible { outline-offset: 4px; }
.back-to-top:focus-visible { outline-offset: 2px; }

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 31, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-icon { width: 40px; height: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .5px; }
.brand-text small { font-size: .68rem; color: var(--text-muted); white-space: nowrap; }

.main-nav { display: flex; gap: 28px; }

.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--text); border-color: var(--gold); }

.header-cta { padding: 9px 18px; font-size: .85rem; }

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 240, 251, .06);
}

.language-switch-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.language-switch-btn.active {
  background: var(--gold);
  color: #0a0d1f;
}

.language-switch-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(690px, calc(82vh - 76px));
  padding: clamp(46px, 6vw, 82px) 0 clamp(58px, 7vw, 92px);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(10, 13, 31, .92) 0%, rgba(10, 13, 31, .72) 38%, rgba(10, 13, 31, .35) 100%),
    url("../images/hero-datacenter.jpg") 72% center / cover no-repeat;
}

/* Variante liviana del hero para páginas transaccionales (ej. gracias.html):
   mismo tratamiento de tipografía/alineación, sin la foto de fondo ni el
   alto casi de pantalla completa — no tiene sentido ese peso visual en una
   página de confirmación corta. */
.hero--simple {
  min-height: auto;
  padding: 90px 0 110px;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, .55), transparent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(212, 168, 83, .16), transparent 34%),
    linear-gradient(180deg, transparent 74%, var(--bg) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 83, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 83, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.68), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0;
}

.hero-logo {
  width: clamp(118px, 9vw, 148px);
  height: auto;
  margin: 0 0 12px;
  opacity: 1;
  filter: saturate(.8);
}

.hero-tagline {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.25vw, 4.05rem);
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 820px;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  border: 1px solid rgba(212, 168, 83, .34);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(10, 13, 31, .48);
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}


/* ── Secciones genéricas ───────────────────────────────── */

section { padding: 90px 0; }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 40px;
}

/* ── Cifras / credenciales ─────────────────────────────── */

.stats { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-item strong {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
}

.stat-item span { font-size: .85rem; color: var(--text-muted); }

/* ── Criterio tecnico ─────────────────────────────────── */

.field-proof {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 118px) 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 168, 83, .14), transparent 34%),
    linear-gradient(135deg, #0a0d1f 0%, #11162d 48%, #070913 100%);
  color: #eef0fb;
}

.field-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 240, 251, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 240, 251, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.field-proof-grid {
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.field-proof .section-title { margin-bottom: 18px; }

.field-proof-copy p:last-child {
  max-width: 58ch;
  color: rgba(238, 240, 251, .72);
  margin: 0;
}

.field-proof-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(238, 240, 251, .16);
  background: rgba(7, 9, 19, .42);
}

.field-proof-panel article {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid rgba(238, 240, 251, .16);
}

.field-proof-panel article:last-child { border-right: 0; }

.field-proof-panel span {
  display: inline-flex;
  margin-bottom: 58px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.field-proof-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.field-proof-panel p {
  margin: 0;
  color: rgba(238, 240, 251, .68);
  font-size: .9rem;
}
/* ── Método de trabajo ─────────────────────────────────── */

.delivery { padding: 82px 0; }

.delivery-inner {
  display: grid;
  grid-template-columns: .95fr 1.35fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.delivery-heading p:last-child {
  color: var(--text-muted);
  margin: -18px 0 0;
  max-width: 58ch;
}

.delivery-steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.delivery-steps li {
  min-height: 190px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212, 168, 83, .08), transparent 52%);
}

.delivery-steps strong {
  display: block;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: 24px;
}

.delivery-steps span {
  display: block;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 8px;
}

.delivery-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
}
/* ── Marcas / partners ─────────────────────────────────── */

.brands { padding: 50px 0; text-align: center; }

.brands-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.brands-marquee {
  display: flex;
  gap: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brands-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: brands-scroll 32s linear infinite;
}

.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track {
  animation-play-state: paused;
}

.brands-track img {
  height: 30px;
  max-width: 110px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .2s ease;
}

.brands-track img:hover { opacity: 1; }

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .brands-marquee { -webkit-mask-image: none; mask-image: none; }
  .brands-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .brands-track[aria-hidden="true"] { display: none; }

  /* Se conserva el feedback de color/borde en hover, solo se quita el
     desplazamiento (translateY/scale) para quienes prefieren menos movimiento. */
  .btn-primary:hover,
  .btn-whatsapp:hover,
  .back-to-top:hover,
  .service-card:hover,
  .case-card:hover,
  .client-logo:hover {
    transform: none;
  }

  .case-card:hover .case-photo img { transform: none; }
}

/* ── Casos de éxito ────────────────────────────────────── */

.cases { background: var(--bg-soft); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: 40px;
}

.section-heading .section-title { margin-bottom: 0; }

.section-heading > p {
  max-width: 48ch;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.case-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.case-photo {
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* La mayoría son fotos verticales de celular (postes, racks, paredes) — el
     sujeto suele estar en el tercio superior, no en el centro geométrico. */
  object-position: center 25%;
  transition: transform .4s ease;
}

/* Para fotos donde "cover" recorta demasiado contexto (operador pidió ver
   la foto completa en vez de un acercamiento), se muestra sin recortar. */
.case-photo.show-full img {
  object-fit: contain;
  object-position: center;
}

.case-card:hover .case-photo img { transform: scale(1.05); }

.case-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1fr;
}

.case-card--featured .case-photo { height: 100%; min-height: 320px; }

.case-body { padding: 18px 22px 22px; }

.case-card h3 { margin: 6px 0 6px; font-size: 1rem; }
.case-card p { margin: 0; font-size: .87rem; color: var(--text-muted); }

.case-card--featured h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.case-card--featured p { font-size: .95rem; max-width: 44ch; }

.case-tag {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Sectores atendidos ────────────────────────────────── */

.sectors {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 168, 83, .14), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.sectors::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.sectors-inner {
  position: relative;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.sectors-copy .section-title { margin-bottom: 18px; }

.sectors-intro {
  max-width: 48ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.sectors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-content: center;
  max-width: 760px;
  margin-left: auto;
}

.sectors-list span {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(10, 13, 31, .06);
}
/* ── Empresas que confían ──────────────────────────────── */

.clients { padding: 70px 0; }
.clients .section-kicker, .clients .section-title { text-align: center; }

.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Los 21 logos reales tienen estilos/colores muy distintos entre sí
   (algunos con fondo de color propio, otros transparentes) — la escala de
   grises por defecto + color al pasar el mouse es el patrón estándar para
   que un "muro de logos" así de variado se vea uniforme en vez de caótico. */
.client-logo {
  width: 130px;
  height: 64px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.client-logo:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 13, 31, .08); }

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* La escala de grises es solo un efecto de mouse — en touch (tablet/celular)
   no hay hover real, así que se quedarían grises para siempre si no se
   restringe a dispositivos que sí soportan hover (mouse/trackpad). */
@media (hover: hover) and (pointer: fine) {
  .client-logo img {
    filter: grayscale(1) opacity(.55);
    transition: filter .2s ease;
  }
  .client-logo:hover img { filter: grayscale(0) opacity(1); }
}

/* ── Servicios ─────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, color .35s ease;
}

/* Todas las tarjetas se ven igual por defecto y se invierten a oscuro al
   pasar el mouse — mismo efecto táctil que vimos en la referencia de
   Vercel, pero sin distinguir ninguna como "destacada" (decisión del
   operador: las 5 deben verse iguales).
   IMPORTANTE: usamos colores literales (no var(--text)/var(--bg)) a propósito
   — esta sección puede vivir en cualquier tema (claro u oscuro) según el orden
   de secciones, y el hover debe verse igual sin depender de la clase de tema
   del ancestro. */
.service-card:hover {
  transform: translateY(-4px);
  background: #0a0d1f;
  border-color: var(--gold);
  color: #eef0fb;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--gold-soft);
  color: var(--gold);
  transition: background .35s ease;
}

.service-card:hover .service-icon { background: rgba(212, 168, 83, .22); }

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { margin: 0 0 12px; font-size: 1.08rem; }

.service-card ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: .9rem; }
.service-card ul li { margin-bottom: 7px; }
.service-card:hover ul { color: rgba(238, 240, 251, .55); }

/* ── Nosotros ──────────────────────────────────────────── */

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.about p { color: var(--text-muted); }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.mv-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--gold); }
.mv-card p { margin: 0; font-size: .92rem; }

.about-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  border-radius: 50%;
  padding: 20px;
}

.about-figure svg { width: 100%; max-width: 360px; }

.about-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.about-stat-value {
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
}

.about-stat-label {
  font-size: .68rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .01em;
}

.about-stat--top { top: 12%; left: 50%; }
.about-stat--left { top: 30%; left: 18%; }
.about-stat--right { top: 70%; left: 82%; }

@media (max-width: 540px) {
  .about-stat-label { font-size: .6rem; }
}

.about-stats-mobile {
  display: none;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  text-align: center;
}

.about-stat-mobile-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stat-mobile-item span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Contacto ──────────────────────────────────────────── */

.contact { background: var(--bg-soft); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}

.contact-info p { color: var(--text-muted); }

.contact-list { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.contact-list li { display: flex; align-items: center; gap: 12px; }

.contact-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }

.contact-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label { font-size: .85rem; font-weight: 600; margin-top: 12px; color: var(--text-muted); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-submit { margin-top: 20px; justify-content: center; }

.form-status { font-size: .85rem; margin-top: 10px; min-height: 1.2em; }
.form-status.ok { color: #4ade80; }
.form-status.error { color: #f87171; }

.hidden-field { position: absolute; left: -9999px; }

/* ── Cierre comercial ─────────────────────────────────── */

.final-cta {
  padding: clamp(72px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 78% 50%, rgba(212, 168, 83, .18), transparent 24%),
    linear-gradient(135deg, rgba(212, 168, 83, .12), transparent 44%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.final-cta .section-title {
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3.05vw, 2.42rem);
}

.final-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 64px;
}
/* ── Footer ────────────────────────────────────────────── */

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 38px; }
.footer-brand strong { font-size: .95rem; }
.footer-brand p { margin: 2px 0 0; font-size: .78rem; color: var(--text-muted); font-style: italic; }

.footer-copy { color: var(--text-muted); font-size: .82rem; margin: 0; }

/* ── Volver arriba ─────────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; color: var(--gold); }
.back-to-top:hover { transform: translateY(-3px); }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 900px) {
  /* El logo + los 5 links + el botón de WhatsApp ya no caben en una sola
     fila a partir de aquí (medido: necesitan ~828px) — se pasa al menú
     hamburguesa antes de que se desborde horizontalmente. */
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .language-switch { margin-left: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner, .delivery-inner, .field-proof-grid, .sectors-inner, .final-cta-inner { grid-template-columns: 1fr; }
  .field-proof-panel { grid-template-columns: 1fr; }
  .field-proof-panel article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(238, 240, 251, .16); }
  .field-proof-panel article:last-child { border-bottom: 0; }
  .field-proof-panel span { margin-bottom: 24px; }
  .sectors-list { justify-content: flex-start; }
  .about-figure { display: none; }
  .about-stats-mobile { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card--featured { grid-column: span 2; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 48px; text-align: left; }
  .hero-proof { gap: 8px; }
  .hero-proof span { font-size: .72rem; }
  .services-grid { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--featured { grid-column: span 1; grid-template-columns: 1fr; }
  .case-card--featured .case-photo { min-height: 240px; }
  .delivery-steps { grid-template-columns: 1fr; }
  .brands-marquee, .brands-track { gap: 36px; }
  .brands-track img { height: 24px; max-width: 90px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .field-proof-panel article { padding: 24px; }
  .sectors-list span { width: 100%; text-align: center; }
  .final-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 540px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding-inline: 18px;
  }

  .header-inner {
    gap: 12px;
    height: 72px;
  }

  .brand {
    min-width: 0;
    margin-right: 0;
    gap: 8px;
    flex: 1 1 auto;
  }

  .brand-icon {
    width: 36px;
    flex: 0 0 36px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switch {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .language-switch-btn {
    padding: 7px 11px;
    font-size: .74rem;
  }

  .nav-toggle {
    flex: 0 0 36px;
  }

  .section-title,
  .section-heading .section-title {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .section-heading > p {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .contact-inner,
  .contact-info,
  .contact-form {
    min-width: 0;
    width: 100%;
  }

  .contact-form {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  .form-submit {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }

  .header-inner {
    gap: 9px;
  }

  .brand-icon {
    width: 34px;
    flex-basis: 34px;
  }

  .brand-text small {
    display: none;
  }

  .language-switch-btn {
    padding: 6px 9px;
  }
}


