/* ============================================================
   MAXIMUROS · MAXIREJAS — SISTEMA DE DISEÑO
   Versión: 2.0.0  ·  "Industrial Precision"
   ─────────────────────────────────────────────────────────
   Marca principal : #0171bc
   Línea Muros      : #024bac (azul)
   Línea Rejas      : #09502f (verde)
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Marca paraguas */
  --brand:        #0171bc;
  --brand-dark:   #015a96;
  --brand-light:  #2b97da;
  --brand-glow:   rgba(1,113,188,.35);

  /* Línea MUROS (azul profundo) */
  --muros:        #024bac;
  --muros-dark:   #013a85;
  --muros-light:  #1c6ad6;

  /* Línea REJAS (verde) */
  --rejas:        #09502f;
  --rejas-dark:   #063a22;
  --rejas-light:  #0e7344;

  /* Neutros (acero / concreto) */
  --ink:          #0f1318;
  --ink-2:        #161b22;
  --ink-3:        #1f262f;
  --ink-4:        #2b333d;
  --steel:        #5d6775;
  --steel-2:      #8b96a5;
  --steel-3:      #b8c0cc;
  --concrete:     #eceff4;
  --paper:        #f6f8fb;
  --white:        #ffffff;

  /* Tipografía */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Radios */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 34px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(15,19,24,.06), 0 2px 4px rgba(15,19,24,.04);
  --sh-md: 0 4px 12px rgba(15,19,24,.08), 0 8px 28px rgba(15,19,24,.06);
  --sh-lg: 0 10px 30px rgba(15,19,24,.10), 0 24px 60px rgba(15,19,24,.10);
  --sh-brand: 0 10px 34px rgba(1,113,188,.32);
  --sh-muros: 0 10px 34px rgba(2,75,172,.30);
  --sh-rejas: 0 10px 34px rgba(9,80,47,.30);

  /* Movimiento */
  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --t:         .28s var(--ease);
  --t-slow:    .55s var(--ease-out);

  /* Layout */
  --container: 1240px;
  --gutter:    clamp(1.1rem, 4vw, 2.2rem);

  /* Patrón blueprint reutilizable */
  --grid-line: rgba(1,113,188,.07);
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::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);
  font-size: clamp(15px, 1.04vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }
::selection { background: var(--brand); color: var(--white); }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── HELPERS DE COLOR ───────────────────────────────────────── */
.text--brand { color: var(--brand); }
.text--muros { color: var(--muros); }
.text--rejas { color: var(--rejas-light); }
.text--accent { color: var(--brand-light); }

/* ─── ENCABEZADO DE SECCIÓN (técnico, numerado) ──────────────── */
.section-header {
  max-width: 720px;
  margin-bottom: clamp(2.6rem, 5vw, 4.4rem);
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.section-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--brand);
}
.section-header--center .section-eyebrow::before { display: none; }

.section-eyebrow__num {
  color: var(--steel-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--ink);
  text-transform: uppercase;
}

.section-desc {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  color: var(--steel);
  max-width: 58ch;
  line-height: 1.7;
}
.section-header--center .section-desc { margin-inline: auto; }

/* ─── BOTONES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .01em;
  padding: .82rem 1.7rem;
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
  transition: background var(--t), color var(--t),
              transform var(--t), box-shadow var(--t), border-color var(--t);
}
.btn i { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--sh-brand);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--brand-glow);
}

.btn--wsp {
  background: #1faf54;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(31,175,84,.32);
}
.btn--wsp:hover {
  background: #199048;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31,175,84,.4);
}

.btn--outline {
  background: rgba(255,255,255,.04);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-3px);
}

.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--concrete);
  background: var(--white);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-3px);
}

.btn--nav {
  background: var(--brand);
  color: var(--white);
  padding: .58rem 1.3rem;
  font-size: .86rem;
}
.btn--nav:hover { background: var(--brand-dark); }

.btn--lg { padding: .98rem 2.1rem; font-size: 1.04rem; }
.btn--xl { padding: 1.15rem 2.8rem; font-size: 1.14rem; border-radius: var(--r-md); }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(15,19,24,.55) 0%, transparent 100%);
  transition: background var(--t), box-shadow var(--t), padding var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(15,19,24,.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  padding: .6rem 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo img {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
  transition: transform var(--t), opacity var(--t);
}
.navbar__logo:hover img { transform: scale(1.04); opacity: .9; }

/* Links desktop */
.navbar__links {
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* Separador antes de Cotizar */
.navbar__links .btn--nav {
  margin-left: .8rem;
}

.navbar__links a:not(.btn) {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.78);
  position: relative;
  padding: .45rem .85rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.navbar__links a:not(.btn):hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.navbar__links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

/* Punto indicador activo */
.navbar__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 99px;
  background: var(--brand-light);
  opacity: 0;
  transition: opacity var(--t);
}
.navbar__links a.active::after { opacity: 1; }

/* Botón Cotizar */
.btn--nav {
  background: var(--brand);
  color: var(--white);
  padding: .55rem 1.3rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 16px rgba(1,113,188,.35);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn--nav:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1,113,188,.45);
}

/* ── Hamburger ── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 1010;
  transition: background var(--t);
}
.navbar__hamburger:hover { background: rgba(255,255,255,.14); }
.navbar__hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
}
.navbar__hamburger.open { opacity: 0; pointer-events: none; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

/* ── Carousel de fondo ── */
.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide--active { opacity: 1; }

.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  will-change: transform;
}

/* Zoom Ken Burns — activo mientras el slide está visible */
.hero__slide--active img {
  animation: heroZoom 3s linear forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,19,24,.75) 0%,
    rgba(15,19,24,.55) 50%,
    rgba(2,75,172,.35) 100%
  );
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
}

/* ── Contenido — centrado ── */
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 4rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Doble marca pills */
.hero__brands {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.6rem;
  animation: fadeUp .7s .05s both;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem .85rem;
  border-radius: 99px;
  border: 1px solid;
  backdrop-filter: blur(8px);
}
.brand-pill i { font-size: .7rem; }
.brand-pill--muros {
  color: #8ec0ff;
  background: rgba(2,75,172,.18);
  border-color: rgba(46,124,224,.45);
}
.brand-pill--rejas {
  color: #7fd6a6;
  background: rgba(9,80,47,.22);
  border-color: rgba(14,115,68,.5);
}
.hero__brands-plus { color: var(--steel-2); font-weight: 300; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7.2vw, 5.8rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: fadeUp .7s .2s both;
}
.hero__title .accent-bar {
  display: inline-block;
  position: relative;
}
.hero__title .accent-bar::after {
  content: '';
  position: absolute;
  left: 0; bottom: -.12em;
  width: 100%; height: .1em;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 2px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 2.2rem;
  animation: fadeUp .7s .35s both;
}
.hero__subtitle strong { color: var(--white); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp .7s .5s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.12);
  animation: fadeUp .7s .65s both;
  width: 100%;
  max-width: 680px;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .86rem;
  color: rgba(255,255,255,.7);
}
.hero__meta-item i { color: var(--brand-light); font-size: 1rem; }

/* ── Dots ── */
.hero__dots {
  display: flex;
  gap: .55rem;
  margin-top: 2rem;
  animation: fadeUp .7s .75s both;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--t), width var(--t);
}
.hero__dot--active {
  background: var(--white);
  width: 24px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: 1.1rem;
  animation: bounce 2.2s infinite;
  z-index: 1;
}

/* ── Animación zoom Ken Burns ── */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.10); }
}

/* ─── STATS ──────────────────────────────────────────────────── */
.stats {
  position: relative;
  background: var(--ink-2);
  padding: clamp(2.4rem, 4vw, 3.2rem) 0;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  color: var(--white);
  padding: 1rem;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 50%;
  background: rgba(255,255,255,.1);
}
.stat-item__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .05em;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-item__suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--brand-light);
}
.stat-item__label {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  margin-top: .5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ─── DOS LÍNEAS / UNA EMPRESA ───────────────────────────────── */
.lines {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--white);
}
.lines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1rem;
}
.line-panel {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  overflow: hidden;
  color: var(--white);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.line-panel:hover { transform: translateY(-6px); }
.line-panel__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.line-panel__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.line-panel:hover .line-panel__bg img { transform: scale(1.07); }
.line-panel__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.line-panel--muros { box-shadow: var(--sh-muros); }
.line-panel--muros .line-panel__veil {
  background: linear-gradient(160deg, rgba(2,75,172,.6) 0%, rgba(1,29,67,.94) 100%);
}
.line-panel--rejas { box-shadow: var(--sh-rejas); }
.line-panel--rejas .line-panel__veil {
  background: linear-gradient(160deg, rgba(9,80,47,.6) 0%, rgba(4,26,15,.94) 100%);
}

.line-panel__tag {
  align-self: flex-start;
  margin-bottom: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}
.line-panel__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: .5rem;
}
.line-panel__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .4rem;
}
.line-panel__desc {
  font-size: .94rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 1.3rem;
}
.line-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.line-panel__list span {
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.line-panel__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--white);
  width: fit-content;
  transition: gap var(--t);
}
.line-panel__link:hover { gap: .85rem; }
.line-panel__link i { transition: transform var(--t); }

/* ─── SERVICIOS ──────────────────────────────────────────────── */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper);
  position: relative;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.1rem 1.9rem;
  border: 1px solid var(--concrete);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  --c: var(--brand);
  --c-light: var(--brand-light);
}
.service-card--muros { --c: var(--muros); --c-light: var(--muros-light); }
.service-card--rejas { --c: var(--rejas); --c-light: var(--rejas-light); }

.service-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--c), var(--c-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow);
}
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in srgb, var(--c) 22%, transparent);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card__num {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--concrete);
  line-height: 1;
  transition: color var(--t);
  z-index: 0;
}
.service-card:hover .service-card__num {
  color: color-mix(in srgb, var(--c) 14%, var(--concrete));
}

.service-card__icon {
  position: relative;
  width: 56px; height: 56px;
  background: linear-gradient(140deg, var(--c), var(--c-light));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.4rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent);
  transition: transform var(--t);
}
.service-card:hover .service-card__icon { transform: translateY(-3px) rotate(-4deg); }

.service-card__line {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  padding: .2rem .55rem;
  border-radius: var(--r-xs);
  margin-bottom: .7rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .65rem;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.service-card__desc {
  font-size: .92rem;
  color: var(--steel);
  line-height: 1.62;
  margin-bottom: 1.3rem;
}
.service-card__features { display: flex; flex-direction: column; gap: .5rem; }
.service-card__features li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .87rem;
  color: var(--ink-3);
  font-weight: 500;
}
.service-card__features li i {
  color: var(--c);
  font-size: .82rem;
  flex-shrink: 0;
}

.service-card__badge {
  position: absolute;
  top: 1.3rem; right: 1.4rem;
  z-index: 2;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  padding: .28rem .7rem;
  border-radius: 99px;
}

/* ─── BENEFICIOS ─────────────────────────────────────────────── */
.benefits {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--white);
}
.benefits__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.benefits__media { position: relative; }
.benefits__img {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  width: 100%;
  aspect-ratio: 7/5;
  object-fit: cover;
}
.benefits__frame {
  position: absolute;
  inset: -14px -14px auto auto;
  width: 60%; height: 60%;
  border: 2px solid var(--brand);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: .35;
}
.benefits__badge-float {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.5rem;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: .9rem;
  border: 1px solid var(--concrete);
}
.benefits__badge-float i { font-size: 2.1rem; color: var(--brand); }
.benefits__badge-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.benefits__badge-float span { font-size: .8rem; color: var(--steel); }

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-top: 1.9rem;
}
.benefit-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.benefit-item__icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--paper);
  border: 1px solid var(--concrete);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--brand);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.benefit-item:hover .benefit-item__icon {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.benefit-item h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .25rem;
}
.benefit-item p { font-size: .89rem; color: var(--steel); line-height: 1.55; }

/* ─── GALERÍA ────────────────────────────────────────────────── */
.gallery {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  margin: 0;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery__item:hover img { transform: scale(1.07); }

.gallery__zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: .95rem;
  opacity: 0;
  transform: scale(.7);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
  z-index: 2;
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(15,19,24,.9) 0%, transparent 100%);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  padding: 2.4rem 1.1rem 1rem;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ─── PROCESO ────────────────────────────────────────────────── */
.process {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .7;
}
.process .container { position: relative; }
.process .section-eyebrow { color: var(--brand-light); }
.process .section-eyebrow::before { background: var(--brand-light); }
.process .section-title { color: var(--white); }
.process .section-desc { color: var(--steel-2); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.process__step {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 2.1rem 1.7rem;
  transition: background var(--t), border-color var(--t), transform var(--t);
  overflow: hidden;
}
.process__step:hover {
  background: rgba(1,113,188,.12);
  border-color: rgba(1,113,188,.35);
  transform: translateY(-5px);
}
.process__step-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(255,255,255,.06);
  line-height: 1;
  position: absolute;
  top: .8rem; right: 1.2rem;
}
.process__step-icon {
  width: 54px; height: 54px;
  background: linear-gradient(140deg, var(--brand), var(--brand-light));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.3rem;
  box-shadow: 0 8px 22px var(--brand-glow);
}
.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.process__step p { font-size: .88rem; color: rgba(255,255,255,.56); line-height: 1.6; }

/* ─── SOBRE NOSOTROS ─────────────────────────────────────────── */
.about {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--white);
}
.about__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.about__content p { color: var(--steel); line-height: 1.78; margin-top: 1rem; }
.about__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.9rem;
}
.about__highlight {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--concrete);
  padding: .5rem 1.05rem;
  border-radius: 99px;
  transition: border-color var(--t), transform var(--t);
}
.about__highlight i { color: var(--brand); }
.about__highlight:hover { border-color: var(--brand); transform: translateY(-2px); }

.about__media { position: relative; }
.about__img {
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  width: 100%;
  aspect-ratio: 6/7;
  object-fit: cover;
}
.about__frame {
  position: absolute;
  inset: auto auto -16px -16px;
  width: 55%; height: 55%;
  border: 2px solid var(--rejas-light);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: .4;
}

/* ─── TESTIMONIOS ────────────────────────────────────────────── */
.testimonials {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--concrete);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.2rem;
  border: 1px solid transparent;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.testimonial-card__quote {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  font-size: 1.7rem;
  color: var(--concrete);
  line-height: 1;
}
.testimonial-card--featured .testimonial-card__quote { color: color-mix(in srgb, var(--brand) 20%, var(--concrete)); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.testimonial-card--featured {
  border-color: var(--brand);
  box-shadow: var(--sh-brand);
}
.testimonial-card__stars {
  color: #f6a609;
  font-size: .92rem;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
}
.testimonial-card__text {
  font-size: .95rem;
  color: var(--ink-3);
  line-height: 1.72;
  margin-bottom: 1.5rem;
}
.testimonial-card__author { display: flex; align-items: center; gap: .9rem; }
.testimonial-card__avatar {
  width: 46px; height: 46px;
  min-width: 46px;
  background: linear-gradient(140deg, var(--brand), var(--muros-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  color: var(--white);
}
.testimonial-card__author cite {
  font-size: .93rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
  display: block;
}
.testimonial-card__author span { font-size: .8rem; color: var(--steel); }

/* ─── CTA FINAL ──────────────────────────────────────────────── */
.cta-final {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--muros-dark);
}
.cta-final__bg { position: absolute; inset: 0; z-index: 0; }
.cta-final__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cta-final__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.cta-final__content { position: relative; z-index: 1; }
.cta-final__icon {
  font-size: 2.8rem;
  margin: 0 auto 1.3rem;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.cta-final__subtitle {
  font-size: 1.12rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.3rem;
  max-width: 52ch;
  margin-inline: auto;
}
.cta-final__note {
  margin-top: 1.3rem;
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.footer__brand img { margin-bottom: 1.1rem; height: 50px; width: auto; }
.footer__brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 30ch;
}
.footer__lines {
  display: flex;
  gap: .5rem;
  margin-top: 1.1rem;
}
.footer__lines span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .25rem .7rem;
  border-radius: 99px;
}
.footer__lines .fl--muros { color: #8ec0ff; background: rgba(2,75,172,.2); }
.footer__lines .fl--rejas { color: #7fd6a6; background: rgba(9,80,47,.28); }

.footer__social { display: flex; gap: .65rem; margin-top: 1.3rem; }
.footer__social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.footer__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}
.footer__col h3 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--t), padding-left var(--t);
}
.footer__col ul li a:hover { color: var(--white); padding-left: .35rem; }
.footer__contact address { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact a, .footer__contact span {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--t);
}
.footer__contact a:hover { color: var(--white); }
.footer__contact i { color: var(--brand-light); width: 15px; text-align: center; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.3rem 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer__bottom a { color: var(--brand-light); transition: color var(--t); }
.footer__bottom a:hover { color: var(--white); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────── */
.wsp-float {
  position: fixed;
  bottom: 1.8rem; right: 1.8rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #1faf54;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  box-shadow: 0 8px 26px rgba(31,175,84,.45);
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  text-decoration: none;
}
.wsp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 34px rgba(31,175,84,.6);
}
.wsp-float::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(31,175,84,.25);
  animation: pulse-wsp 2.6s infinite;
  z-index: -1;
}
.wsp-float__tooltip {
  position: absolute;
  right: calc(100% + .8rem);
  background: var(--ink);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .4rem .85rem;
  border-radius: var(--r-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity var(--t), transform var(--t);
}
.wsp-float__tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
.wsp-float:hover .wsp-float__tooltip { opacity: 1; transform: translateX(0); }

/* ─── ANIMACIONES ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes pulse-wsp {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .benefits__inner,
  .about__inner,
  .lines__grid {
    grid-template-columns: 1fr;
  }
  .benefits__media { order: 1; }
  .benefits__content { order: 2; }
  .benefits__badge-float { bottom: -1rem; left: 0; }
  .about__media { order: 1; max-width: 460px; }
  .about__content { order: 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ── Elementos mobile: ocultos en desktop ── */
.navbar__mobile-head,
.navbar__mobile-foot { display: none; }

@media (max-width: 640px) {
  /* Panel deslizante desde la derecha */
  .navbar__links {
    display: flex;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(88vw, 340px);
    background: var(--ink-2);
    border-left: 1px solid rgba(255,255,255,.07);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 1005;
    padding: 0;
    transform: translateX(100%);
    transition: transform .38s var(--ease-out);
    box-shadow: -16px 0 60px rgba(0,0,0,.55);
  }
  .navbar__links.open { transform: translateX(0); }

  /* Cabecera: logo + X */
  .navbar__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
  }
  .navbar__mobile-head img { height: 36px; width: auto; }

  .navbar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--white);
    font-size: 1rem;
    transition: background var(--t);
  }
  .navbar__close:hover { background: rgba(255,255,255,.14); }

  /* Links del menú */
  .navbar__links a:not(.btn) {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.7);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: color var(--t), background var(--t), padding-left var(--t);
    background: transparent;
  }
  .navbar__links a:not(.btn):hover,
  .navbar__links a.active {
    color: var(--white);
    background: rgba(1,113,188,.12);
    padding-left: 2rem;
  }
  .navbar__links a.active {
    border-left: 3px solid var(--brand-light);
  }
  .navbar__links a:not(.btn)::after { display: none; }

  /* Ocultar btn--nav (Cotizar) — se reemplaza por el CTA de abajo */
  .navbar__links .btn--nav { display: none; }

  /* Pie: CTA WhatsApp */
  .navbar__mobile-foot {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: auto;
  }
  .navbar__mobile-foot .btn--wsp {
    width: 100%;
    justify-content: center;
    padding: .9rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--r-md);
  }
  .navbar__mobile-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.38);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
  }
  .navbar__mobile-sub i { color: var(--rejas-light); font-size: .72rem; }

  .navbar__hamburger { display: flex; }

  /* Overlay oscuro detrás del panel */
  .navbar__links::before {
    content: '';
    position: fixed;
    inset: 0;
    right: min(88vw, 340px);
    background: rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .38s var(--ease-out);
    pointer-events: none;
  }
  .navbar__links.open::before { opacity: 1; pointer-events: auto; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { gap: 1rem 1.5rem; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 200px);
  }

  .services__grid,
  .process__steps,
  .testimonials__grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2)::after { display: none; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .wsp-float { width: 54px; height: 54px; font-size: 1.55rem; bottom: 1.2rem; right: 1.2rem; }
}

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