/* ==========================================================================
   ServiAires Medellín — Landing Page
   Glassmorphism · Dark & Gold theme
   ========================================================================== */

:root {
  --bg-0: #0a0a0c;
  --bg-1: #121014;
  --bg-2: #17151a;
  --gold: #c9a961;
  --gold-light: #e8d7a8;
  --gold-dim: rgba(201, 169, 97, 0.35);
  --ice: #5fd4ff;
  --ice-dim: rgba(95, 212, 255, 0.25);
  --text: #f5f2ea;
  --text-muted: #a9a6ad;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
/* overflow-x:hidden se repite en html Y body: en algunos navegadores de
   celular, si solo lo tiene body, la página igual se puede arrastrar hacia
   los lados dejando espacios vacíos — con los dos queda bloqueado de verdad. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  max-width: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  /* Cualquier texto largo sin espacios (un correo, un dominio) puede forzar
     una tarjeta o columna a ser más ancha que la pantalla; con esto el
     navegador corta la palabra en vez de empujar todo el diseño hacia el
     lado y dejar espacios en blanco al deslizar. */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- Loader inicial (aspa del logo girando) ---------- */
body.is-loading { overflow: hidden; }
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(60% 60% at 50% 45%, #14120f 0%, var(--bg-0) 70%);
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.35), transparent 70%);
  filter: blur(10px);
  animation: loader-pulse 2.2s ease-in-out infinite;
}
.page-loader-ring {
  position: absolute;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 2px solid rgba(201,169,97,0.18);
  border-top-color: var(--gold-light);
  border-right-color: var(--gold-light);
  animation: loader-spin-ring 1.3s linear infinite;
}
.page-loader-fan {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  filter: drop-shadow(0 6px 18px rgba(201,169,97,0.45));
  animation: loader-spin-fan 1.6s cubic-bezier(0.6, 0.05, 0.4, 0.95) infinite;
}
@keyframes loader-spin-fan { to { transform: rotate(360deg); } }
@keyframes loader-spin-ring { to { transform: rotate(-360deg); } }
@keyframes loader-pulse {
  0%, 100% { opacity: .55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-fan { animation: none; }
  .page-loader-ring { animation: none; }
  .page-loader-glow { animation: none; }
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  border: 1px solid var(--gold-dim);
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 2px var(--gold-dim);
}

/* ---------- Background ambient blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 22s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; background: var(--gold); top: -160px; left: -120px; animation-delay: 0s; }
.blob-2 { width: 460px; height: 460px; background: var(--ice); top: 40%; right: -180px; animation-delay: -7s; opacity: .22; }
.blob-3 { width: 420px; height: 420px; background: var(--gold); bottom: -180px; left: 30%; animation-delay: -14s; opacity: .18; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(0.95); }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass utility ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 9, 11, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px; height: 42px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 4px 16px -4px rgba(201,169,97,0.5);
}
.brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: background .25s, color .25s;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--gold-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #a9863f);
  color: #14110a;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 22px -8px rgba(201,169,97,0.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(201,169,97,0.8); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8,7,9,0.94);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  pointer-events: none;
}
.mobile-panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-panel a { font-size: 24px; font-weight: 600; font-family: 'Poppins',sans-serif; }
.mobile-panel .nav-cta { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../assets/placeholders/hero-bg.webp') center/cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* el fondo .webp de arriba se ve mientras el video carga / en navegadores sin soporte */
  display: none;
}
/* el video de fondo se activa en escritorio Y en móvil (ver script.js), cada uno con su propio
   archivo (hero-video.mp4 / hero-video-mobile.mp4); si no hay JS se queda la imagen fija */
.hero-video.is-active { display: block; }
/* Capa oscura SIEMPRE por encima del video (o de la imagen en móvil) y por debajo del
   texto/tarjetas, para que el título nunca se pierda contra lo que se vea de fondo.
   Antes ese oscurecimiento vivía dentro del fondo de la imagen (.hero-bg), así que al
   activarse el video en escritorio quedaba tapado y el texto perdía contraste. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(6,6,9,0.86) 0%, rgba(6,6,9,0.72) 28%, rgba(6,6,9,0.44) 52%, rgba(6,6,9,0.22) 74%, rgba(6,6,9,0.12) 100%),
    linear-gradient(180deg, rgba(6,6,9,0.12) 0%, rgba(6,6,9,0.5) 68%, var(--bg-0) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 60%, var(--ice));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 17.5px;
  max-width: 46ch;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, #29d366, #1fa851);
  color: #06210f;
  box-shadow: 0 10px 26px -8px rgba(41,211,102,0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(41,211,102,0.7); }
.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-bg-strong); transform: translateY(-3px); }

.hero-badges {
  display: flex;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px 2px var(--ice-dim);
}

.hero-card {
  position: relative;
  padding: 26px;
  text-align: center;
}
.hero-card img.icon-tile {
  width: 90px; margin: 0 auto 14px;
}
.hero-card .stat {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-card .stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.hero-float-cards { display: grid; gap: 18px; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee {
  display: inline-flex;
  gap: 46px;
  animation: scroll-left 32s linear infinite;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.marquee span { display: inline-flex; align-items: center; gap: 10px; }
.marquee span::after { content: "•"; color: var(--gold); margin-left: 46px; }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Section shell ---------- */
section { position: relative; padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 16px; }

/* reveal-on-scroll (solo si JS está activo; sin JS, todo se muestra normal) */
/* efecto de zoom-in + fade al aparecer cada sección/tarjeta al hacer scroll */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.93);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: transform, opacity;
}
html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* las cabeceras de sección hacen un zoom-out sutil (arrancan un poco más grandes) para variar el ritmo */
html.js [data-reveal="zoom-out"] { transform: translateY(0) scale(1.08); }
html.js [data-reveal="zoom-out"].is-visible { transform: translateY(0) scale(1); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 32px 26px;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-strong);
  border-color: var(--gold-dim);
}
.service-card .icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,169,97,0.16), rgba(95,212,255,0.08));
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.service-card .icon-wrap svg { width: 28px; height: 28px; }
.service-card:hover .icon-wrap {
  transform: scale(1.08) rotate(-4deg);
  color: var(--ice);
  border-color: var(--ice-dim);
}
.service-card h3 { font-size: 18.5px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--glass-border); }
.about-video {
  width: 100%;
  display: block;
  aspect-ratio: 900/1100;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: #0c0e12;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55);
}
.about-media .badge-float {
  position: absolute;
  bottom: -26px; right: -26px;
  padding: 18px 22px;
  text-align: center;
}
.feature-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text);
}
.feature-list .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a9863f);
  color: #14110a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  margin-top: 2px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat-box { padding: 22px 12px; text-align: center; }
.stat-box .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem; font-weight: 700;
  color: var(--gold-light);
}
.stat-box .label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.process-step { padding: 28px 22px; text-align: center; }
.process-step .num-badge {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 22px;
  background: linear-gradient(135deg, rgba(201,169,97,0.25), rgba(95,212,255,0.12));
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
}
.process-step h3 { font-size: 16.5px; }
.process-step p { font-size: 13.5px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/5;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: saturate(1) brightness(1);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(201,169,97,0.28), rgba(10,10,12,0.05) 55%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.gallery-item:hover { border-color: var(--gold-dim); box-shadow: 0 18px 40px -18px rgba(201,169,97,0.45); }
.gallery-item:hover img { transform: scale(1.1); filter: saturate(1.15) brightness(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 16px;
  font-size: 13px; font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  transform: translateY(0);
  transition: transform .4s var(--ease);
  z-index: 1;
}
.gallery-item:hover .gallery-caption { transform: translateY(-4px); }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi-card { padding: 28px; }
.testi-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 15px; }
.testi-quote { font-size: 14.5px; color: var(--text); margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-person .name { font-weight: 700; font-size: 14px; }
.testi-person .zone { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Coverage ---------- */
.zone-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zone-chip {
  padding: 10px 20px;
  font-size: 13.5px; font-weight: 600;
  border-radius: 100px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,169,97,0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(95,212,255,0.12), transparent 55%),
    var(--glass-bg-strong);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta-banner .btn { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}
.contact-info-card { padding: 32px; }
.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,169,97,0.25), rgba(95,212,255,0.12));
  border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-row .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-row .value { font-size: 15px; font-weight: 600; }

.form-card { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-dim);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 96px; }
/* El navegador dibuja el listado desplegable del <select> con su propio fondo
   (normalmente blanco), fuera del control de nuestro tema oscuro. Si no fijamos
   un fondo y color explícitos en las <option>, el texto claro del tema queda
   casi invisible sobre ese fondo blanco salvo en la opción seleccionada. */
.field select { color-scheme: dark; }
.field select option {
  background-color: #16181d;
  color: var(--text);
}
/* Campo trampa anti-spam: oculto de forma "segura" (sin mandarlo a -9999px,
   que en algunos navegadores alcanza a sumar al ancho de la página). */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.form-status { font-size: 13px; margin: 10px 0 0; min-height: 1.4em; }
.form-status.ok { color: #29d366; }
.form-status.err { color: #ff8a65; }
.form-status.loading { color: var(--gold-light); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  background: rgba(255,255,255,0.02);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; border-radius: 11px; }
.footer-brand strong { font-family: 'Poppins', sans-serif; font-size: 17px; }
.footer-col h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-light); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px; color: var(--text-muted);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--glass-bg-strong); transform: translateY(-3px); }

/* ---------- WhatsApp floating widget ---------- */
.wa-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #29d366, #1fa851);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(41,211,102,0.65);
  border: none;
  color: #06210f;
}
.wa-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(41,211,102,0.55);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: .8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
.wa-fab svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.wa-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #ff5252; color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-0);
}

/* Popup de chat — estilo claro tipo "burbuja de mensajería" con avatar ilustrado */
.wa-popup {
  position: fixed;
  right: 24px; bottom: 100px;
  z-index: 200;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #eef6fb;
  background-image: linear-gradient(160deg, #eef6fb 0%, #dcedf8 55%, #cfe6f6 100%);
  border: 1px solid rgba(10,30,50,0.1);
  box-shadow: 0 24px 60px -16px rgba(10,20,40,0.55), 0 2px 8px rgba(10,20,40,0.25);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  isolation: isolate;
}
.wa-popup.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }
.wa-popup-head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(10,30,50,0.1);
}
.wa-avatar-wrap { position: relative; width: 46px; height: 46px; flex: none; }
.wa-avatar-ill {
  width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 4px 12px -4px rgba(10,30,50,0.35);
  background: #fff;
  object-fit: cover;
  display: block;
}
.wa-avatar-wrap .status {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: #29d366; border: 2px solid #eef6fb;
}
.wa-popup-head .name { font-weight: 700; font-size: 14.5px; color: #16324a; }
.wa-popup-head .status-text { font-size: 12px; color: #1fa851; font-weight: 600; }
.wa-popup-close {
  margin-left: auto;
  background: none; border: none; color: #5c7a90;
  font-size: 18px; line-height: 1; padding: 6px;
}
.wa-popup-body { padding: 18px 20px 20px; }
.wa-row { display: flex; margin-bottom: 10px; }
.wa-row-out { justify-content: flex-end; }
.wa-bubble {
  position: relative;
  max-width: 84%;
  padding: 11px 14px 16px;
  font-size: 13.5px;
  line-height: 1.4;
}
.wa-bubble-in {
  background: #ffffff;
  color: #1c3040;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 2px 6px rgba(10,30,50,0.08);
}
.wa-bubble-out {
  background: linear-gradient(135deg, #4fb0e6, #2f7fd1);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 4px 14px -4px rgba(47,127,209,0.55);
}
.wa-time {
  position: absolute;
  bottom: 4px; right: 12px;
  font-size: 10px;
  opacity: 0.65;
}
.wa-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border-radius: 100px;
  background: linear-gradient(135deg, #29d366, #1fa851);
  color: #06210f;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px -8px rgba(41,211,102,0.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-send-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(41,211,102,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* En una sola columna el texto ocupa todo el ancho, así que oscurecemos parejo
     en vez de solo por el lado izquierdo (donde antes estaba el texto en escritorio) */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(6,6,9,0.62) 0%, rgba(6,6,9,0.5) 40%, rgba(6,6,9,0.62) 75%, var(--bg-0) 100%);
  }
  .hero-float-cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand span { font-size: 15px; }
  .brand small { font-size: 9.5px; }
  section { padding: 84px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-float-cards { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .wa-fab { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  .wa-popup { right: 16px; bottom: 88px; width: calc(100vw - 32px); }
}

@media (max-width: 480px) {
  .hero-float-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
