/* ==========================================================================
   GlobalServ (gserv.cl) — Hoja de estilos principal
   Administración de condominios y edificios en Chile
   ========================================================================== */

:root {
  /* Paleta de marca (extraída del isotipo original GlobalServ) */
  --navy-900: #16293F;
  --navy-800: #1E3A5C;
  --navy-700: #28496F;
  --green-700: #2E7D4F;
  --green-600: #3FA34D;
  --green-500: #6FBE4A;
  --green-400: #9FD45C;
  --tech-ink: #0B1622;
  --tech-blue: var(--green-400);
  --tech-blue-deep: var(--green-600);
  --gray-900: #1B2430;
  --gray-700: #45505C;
  --gray-500: #6B7480;
  --gray-300: #D7DCE1;
  --gray-100: #F4F6F7;
  --white: #FFFFFF;

  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 41, 63, 0.08);
  --shadow-lg: 0 20px 45px rgba(22, 41, 63, 0.16);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--gray-700); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .8em;
}

.section { padding: 76px 0; }
.section--alt { background: var(--gray-100); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #C7D2DD; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--showcase { max-width: 640px; margin-left: 0; margin-right: 0; text-align: left; }
.section-head--showcase .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--tech-blue-deep); }
.section-head--showcase .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--tech-blue-deep); flex-shrink: 0; }
.section-head--showcase h2 {
  font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.2; margin-bottom: .5em;
  background: linear-gradient(100deg, var(--navy-900) 35%, var(--tech-blue-deep) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.section-head--showcase p { color: var(--gray-500); font-size: 1.02rem; max-width: 540px; margin-bottom: 0; }

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: 0 0 0 rgba(22,41,63,0);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); line-height: 1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .05em; color: var(--green-700); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--gray-900); }
.nav-links a:hover, .nav-links a.is-active { color: var(--green-700); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 10px;
  min-width: 270px; list-style: none; margin: 8px 0 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.dropdown li a:hover { background: var(--gray-100); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: 13px 26px; border-radius: 30px; border: 2px solid transparent;
  cursor: pointer; transition: .25s cubic-bezier(.16,.84,.44,1);
}
.btn--primary { background: linear-gradient(135deg, var(--green-600), var(--green-400)); color: var(--white); }
.btn--primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--white); }
.btn--ghost { border-color: var(--gray-300); color: var(--navy-900); background: transparent; }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-2px); }
.btn--on-navy { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--on-navy:hover { border-color: var(--green-400); color: var(--green-400); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy-900); margin: 5px 0; }

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background-size: cover; background-position: center;
  padding: 110px 0 90px;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(16,29,46,.93), rgba(20,49,38,.78)); }
.hero .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { max-width: 600px; }
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: #DCE5EC; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-400); }
.hero-stats div span { font-size: .85rem; color: #C7D2DD; }

.hero-illustration { flex-shrink: 0; width: 300px; z-index: 1; }
.hero-illustration svg { width: 100%; height: auto; display: block; overflow: visible; }

.page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white); padding: 64px 0 56px;
}
.page-header .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-header-content { max-width: 680px; }
.page-header h1 { color: var(--white); margin-bottom: .3em; }
.page-header p.lead { font-size: 1.1rem; color: #DCE5EC; max-width: 620px; margin-bottom: 0; }

.header-cta { background: var(--gray-100); border-bottom: 1px solid var(--gray-300); }
.header-cta .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding: 20px 24px;
}
.header-cta p { margin: 0; font-weight: 600; color: var(--navy-900); }
.header-cta .btn { flex-shrink: 0; }

.page-illustration { flex-shrink: 0; width: 120px; opacity: .55; z-index: 1; }
.page-illustration svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ===== Ilustración edificio (hero / page-header) ===== */
.bld-ground { fill: rgba(0,0,0,.22); }
.bld-body, .bld-roof { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.55); stroke-width: 1.4; }
.bld-antenna { stroke: rgba(255,255,255,.55); stroke-width: 1.4; fill: none; }
.bld-antenna-tip { fill: rgba(255,255,255,.55); }
.bld-window { fill: var(--green-400); opacity: .22; }
.bld-conduit { fill: none; stroke: var(--green-400); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; opacity: .65; }
.bld-junction { fill: var(--green-400); opacity: .8; }

/* Indicadores flotantes (control / reportes / eficiencia / riesgo) sobre el hero */
.hero-badge-bg { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.22); stroke-width: 1; }
.hero-badge-icon { fill: none; stroke: var(--green-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-badge-dot { fill: var(--green-400); stroke: none; }
.hero-badge-label { font-family: var(--font-head); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; fill: #E7EEF4; text-anchor: middle; }

.breadcrumbs { font-size: .85rem; color: #AEBBC8; margin-bottom: 14px; }
.breadcrumbs a { color: #C7D2DD; }
.breadcrumbs a:hover { color: var(--white); }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 32px; transition: .3s cubic-bezier(.16,.84,.44,1); height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: transform .3s cubic-bezier(.16,.84,.44,1);
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--white); }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card .card-link { font-weight: 700; font-size: .88rem; }

/* ===== Tarjetas de servicios: panel inmersivo con fondo animado ===== */
.card--feature {
  position: relative; overflow: hidden; padding: 0; border: none;
  min-height: 460px; display: flex; color: var(--white); text-decoration: none;
  background: linear-gradient(160deg, var(--tech-ink), var(--navy-700));
}
.card--feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--feature.card-tech--comites { background: linear-gradient(160deg, var(--tech-ink), var(--tech-blue-deep)); }
.card--feature.card-tech--mantenimiento { background: linear-gradient(160deg, var(--tech-ink), var(--navy-800)); }

.card-feature-bg { position: absolute; inset: 0; }
.card-feature-overlay { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(8,16,26,.52), rgba(8,16,26,.8)); }
.card-feature-content { position: relative; z-index: 2; width: 100%; padding: 34px 32px; display: flex; flex-direction: column; }

.feature-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.feature-chip {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
}
.feature-chip svg { width: 19px; height: 19px; stroke: var(--white); }
.feature-pill {
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--tech-blue);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 12px; border-radius: 20px;
}
.card--feature h3 { color: var(--white); font-size: 1.28rem; margin-bottom: .5em; }
.card--feature p { color: #C7D8E6; font-size: .95rem; margin-bottom: 0; }
.feature-checklist {
  list-style: none; margin: auto 0 0; padding: 22px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.feature-checklist li { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: #DCE9F2; line-height: 1.4; }
.feature-checklist li::before {
  content: '✓'; flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; margin-top: 1px;
  background: rgba(159,212,92,.16); border: 1px solid rgba(159,212,92,.55); color: var(--tech-blue);
  font-size: .6rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.card--feature .card-link { color: var(--tech-blue); margin-top: 20px; display: inline-block; }
.card--feature .card-link:hover { color: var(--white); }

/* Control de Gestión: barras + scanline */
.tech-bars { position: absolute; left: 28px; right: 28px; bottom: 0; height: 230px; display: flex; align-items: flex-end; gap: 10px; }
.tech-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--tech-blue), var(--tech-blue-deep)); transform-origin: bottom; opacity: .55; }
.tech-bars span:nth-child(1) { height: 35%; }
.tech-bars span:nth-child(2) { height: 62%; }
.tech-bars span:nth-child(3) { height: 44%; }
.tech-bars span:nth-child(4) { height: 80%; }
.tech-bars span:nth-child(5) { height: 56%; }
.tech-scanline { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(159,212,92,.22), transparent); }

/* Asesorías a Comités: anillos de aprobación + check */
.tech-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tech-rings span { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1.5px solid rgba(159,212,92,.45); }
.tech-rings span:nth-child(1) { width: 70px; height: 70px; transform: translate(-50%,-50%); }
.tech-rings span:nth-child(2) { width: 112px; height: 112px; transform: translate(-50%,-50%); }
.tech-rings span:nth-child(3) { width: 154px; height: 154px; transform: translate(-50%,-50%); }
.tech-check { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--tech-blue); color: var(--tech-ink); display: flex; align-items: center; justify-content: center; opacity: .85; }
.tech-check svg { width: 24px; height: 24px; }

/* Mantenimiento de Instalaciones: circuito eléctrico */
.tech-circuit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; opacity: .8; }
.tech-circuit .circuit-base { stroke: rgba(159,212,92,.18); stroke-width: 2; }
.tech-circuit .pulse { stroke: var(--tech-blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 16 240; }
.tech-circuit circle { fill: var(--tech-blue); }

/* Optimización de Seguros y Auditorías: radar */
.tech-radar { position: absolute; top: 50%; left: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; border: 1.5px solid rgba(159,212,92,.35); box-shadow: 0 0 0 30px rgba(159,212,92,.05), 0 0 0 60px rgba(159,212,92,.03); overflow: hidden; opacity: .85; }
.tech-radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(159,212,92,.5), transparent 30%, transparent 100%); }
.tech-radar-dot { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--tech-blue); box-shadow: 0 0 12px 4px rgba(159,212,92,.65); }

/* ===== Blog: visual de portada animado por artículo ===== */
.post-card-visual {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(160deg, var(--tech-ink), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
}
.post-visual--registro { background: linear-gradient(160deg, var(--tech-ink), var(--tech-blue-deep)); }
.post-visual--costos { background: linear-gradient(160deg, var(--tech-ink), var(--navy-800)); }

.tech-seal { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.tech-seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(159,212,92,.45); }
.tech-seal-badge {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(159,212,92,.5);
  color: var(--tech-blue); display: flex; align-items: center; justify-content: center;
}
.tech-seal-badge svg { width: 22px; height: 22px; }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.icon-list li::before {
  content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-600); color: var(--white); font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .split-media { order: 2; }

/* ===== Clientes / logos ===== */
.logo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: center; }
.logo-strip img { max-height: 52px; width: auto; margin: 0 auto; filter: grayscale(15%); opacity: .9; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.logo-strip a { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); transition: border-color .25s ease, box-shadow .25s ease; }
.logo-strip a:hover { border-color: var(--green-600); box-shadow: var(--shadow); }
.logo-strip a:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* ===== Tabla / proceso ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%; color: var(--white);
  background: var(--navy-800); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--gray-300); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green-700); font-size: 1.4rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; }

/* ===== CTA banda ===== */
.cta-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-500));
  color: var(--white); border-radius: var(--radius); padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }
.cta-band .btn--primary { background: var(--white); color: var(--green-700); }

/* ===== Formulario contacto ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--navy-900); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); border-color: var(--green-500); }
.form-note { font-size: .8rem; color: var(--gray-500); margin-top: 10px; }

/* ===== Blog ===== */
.post-card img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/10; object-fit: cover; }
.post-card .card-body { border: 1px solid var(--gray-300); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 26px; }
.post-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: 8px; }
article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 1.6em; }
article.post ul, article.post ol { color: var(--gray-700); padding-left: 1.3em; }
article.post li { margin-bottom: .5em; }
.callout { background: var(--gray-100); border-left: 4px solid var(--green-600); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #B9C5D1; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #B9C5D1; font-size: .9rem; }
.footer-grid a:hover { color: var(--green-400); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: #93A1AF; font-size: .88rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: #7E8C9A;
}
.footer-bottom a { color: #7E8C9A; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag { display: inline-block; background: var(--gray-100); color: var(--navy-800); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin: 0 6px 6px 0; }
.muted { color: var(--gray-500); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-illustration, .page-illustration { display: none; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 18px 24px; gap: 16px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-300);
  }
  .nav.is-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 12px; display: none; }
  .nav.is-open .has-dropdown.is-open .dropdown { display: block; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero-stats { gap: 24px; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Animaciones ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero .container,
  .page-header .container {
    animation: fadeUpIn .7s cubic-bezier(.16,.84,.44,1) both;
  }

  /* Activado por JS (main.js) vía IntersectionObserver. Si JS no corre,
     estos elementos nunca reciben la clase .reveal y se ven normales. */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .step::before { transition: transform .3s cubic-bezier(.16,.84,.44,1); }
  .step:hover::before { transform: scale(1.1); }

  /* Ilustración de edificio: ventanas que se encienden + flujo de instalaciones */
  @keyframes windowGlow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
  .bld-window { animation: windowGlow 4s ease-in-out infinite; }

  @keyframes flowDash { to { stroke-dashoffset: -64; } }
  .bld-conduit { animation: flowDash 3s linear infinite; }
  .bld-conduit--b { animation-duration: 3.6s; animation-direction: reverse; }
  .bld-conduit--c { animation-duration: 4.2s; }
  .bld-conduit--d { animation-duration: 3.2s; animation-direction: reverse; }

  @keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  .hero-illustration svg, .page-illustration svg { animation: floatSlow 6s ease-in-out infinite; }

  @keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  .hero-badge { animation: badgeFloat 4.5s ease-in-out infinite; }

  /* Tarjetas de servicios: fondos animados */
  @keyframes barGrow { 0%, 100% { transform: scaleY(.86); } 50% { transform: scaleY(1); } }
  .tech-bars span { animation: barGrow 2.4s ease-in-out infinite; }
  .tech-bars span:nth-child(2) { animation-delay: .2s; }
  .tech-bars span:nth-child(3) { animation-delay: .4s; }
  .tech-bars span:nth-child(4) { animation-delay: .6s; }
  .tech-bars span:nth-child(5) { animation-delay: .8s; }

  @keyframes scanMove { from { left: -30%; } to { left: 130%; } }
  .tech-scanline { animation: scanMove 3.2s ease-in-out infinite; }

  @keyframes ringPulse {
    0% { transform: translate(-50%,-50%) scale(.75); opacity: 0; }
    40% { opacity: .9; }
    100% { transform: translate(-50%,-50%) scale(1.15); opacity: 0; }
  }
  .tech-rings span { animation: ringPulse 2.6s ease-out infinite; }
  .tech-rings span:nth-child(2) { animation-delay: .5s; }
  .tech-rings span:nth-child(3) { animation-delay: 1s; }

  @keyframes circuitFlow { to { stroke-dashoffset: -256; } }
  .tech-circuit .pulse { animation: circuitFlow 3.2s linear infinite; }
  .tech-circuit .pulse--b { animation-duration: 3.8s; animation-direction: reverse; }

  @keyframes radarSpin { to { transform: rotate(360deg); } }
  .tech-radar-sweep { animation: radarSpin 4s linear infinite; }
  .tech-seal-ring { animation: radarSpin 14s linear infinite; }

  @keyframes whatsappPulse {
    0% { transform: scale(.9); opacity: .55; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
  }
  .whatsapp-fab::before { content: ''; animation: whatsappPulse 2.4s ease-out infinite; }
}

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
  transition: transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 10px 24px rgba(0,0,0,.34); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); position: relative; z-index: 1; }
.whatsapp-fab::before {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0;
}
@media (max-width: 760px) {
  .whatsapp-fab { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}
