/* ============================================================================
   LATICON — Sistema de diseño
   Paleta derivada del verde de marca #106735 · Tipografía técnica-corporativa
   ========================================================================== */

:root {
  /* Marca */
  --brand:        #106735;   /* verde LATICON */
  --brand-700:    #0E5230;
  --brand-800:    #0A3D25;
  --brand-900:    #062417;   /* verde casi negro */
  --brand-bright: #22A85F;   /* acento energético (derivado) */
  --brand-300:    #6BD79E;

  /* Neutros */
  --ink:      #0E1512;
  --ink-2:    #46534D;
  --ink-3:    #6E7B75;
  --line:     #E4EDE8;
  --paper:    #FFFFFF;
  --paper-2:  #F6FAF8;
  --mint:     #EAF6EF;
  --mint-2:   #F2F9F5;

  /* Sistema */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(6, 36, 23, .06);
  --shadow: 0 18px 50px -20px rgba(6, 36, 23, .28);
  --shadow-lg: 0 40px 90px -30px rgba(6, 36, 23, .40);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ----------------------------- Reset ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------- Tipografía -------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.h-display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; }
.h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-bright); border-radius: 2px; }
.eyebrow.light { color: var(--brand-300); }
.eyebrow.center { justify-content: center; }

/* ----------------------------- Layout ------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.grad-text { color: var(--brand); }

/* ----------------------------- Botones ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(16,103,53,.7); }
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(34,168,95,.6); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ============================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo { width: 65px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color .3s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--brand-bright); transition: width .3s var(--ease); }
.nav a:hover { color: var(--brand); }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 14px; }

/* Switch de idioma */
.lang {
  display: inline-flex; align-items: center; padding: 4px; border-radius: 100px;
  background: var(--mint); border: 1px solid var(--line);
}
.lang button {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 100px; color: var(--ink-3); transition: all .25s var(--ease);
}
.lang button.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }

/* CTA fantasma del header (fondo blanco siempre) */
.header .btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.header .btn-ghost:hover { background: var(--mint); border-color: var(--mint); }
/* Sombra sutil al hacer scroll */
.header.scrolled { box-shadow: 0 10px 34px -20px rgba(6,36,23,.35); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.header.open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header.open .burger span:nth-child(2) { opacity: 0; }
.header.open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,36,23,.72) 0%, rgba(6,36,23,.30) 32%, rgba(6,36,23,.55) 72%, rgba(6,36,23,.92) 100%),
    linear-gradient(115deg, rgba(10,61,37,.66) 0%, rgba(16,103,53,.12) 55%, rgba(6,36,23,.2) 100%);
}
.hero__overlay::after { /* grano/textura sutil */
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); padding-block: 132px 78px; }
.hero__content { max-width: 880px; }
.hero .eyebrow { color: var(--brand-300); }
.hero h1 { color: #fff; margin: 22px 0 24px; text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.hero h1 em { font-style: normal; color: var(--brand-300); }
.hero .lead { color: rgba(255,255,255,.9); max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Pilares sincronizados con el video */
.hero__pillars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pillar {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: .76rem; letter-spacing: .01em;
  color: rgba(255,255,255,.82); white-space: nowrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 13px; border-radius: 100px; backdrop-filter: blur(8px);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar i { font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-300); transition: color .35s var(--ease); }
.pillar:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.pillar.active { background: var(--brand); border-color: var(--brand-bright); color: #fff; box-shadow: 0 10px 26px -10px rgba(16,103,53,.8); }
.pillar.active i { color: #fff; opacity: .85; }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); font-family: var(--font-display); }
.hero__trust strong { color: #fff; font-weight: 600; }
.hero__trust .hero__stars { color: var(--brand-300); }
.scroll-cue { position: absolute; right: 44px; bottom: 26px; z-index: 2; display: grid; place-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.scroll-cue .mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ============================================================================
   FRANJA DE CLIENTES
   ========================================================================== */
.clients { background: var(--paper); border-bottom: 1px solid var(--line); }
.clients__inner { padding-block: 42px; }
.clients__label { text-align: center; font-family: var(--font-display); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.clients__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 74px); }
.clients__row img { height: clamp(30px, 4.4vw, 46px); width: auto; filter: grayscale(1) opacity(.62); transition: filter .4s var(--ease), transform .4s var(--ease); }
.clients__row img:hover { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* ============================================================================
   NOSOTROS
   ========================================================================== */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.about__media { position: relative; }
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 62%; height: 62%; border: 1px solid var(--brand-300); border-radius: var(--radius-lg); z-index: -1; opacity: .5; }
.about__badge {
  position: absolute; left: -22px; bottom: 34px; background: var(--brand-900); color: #fff;
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__badge b { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; color: var(--brand-300); }
.about__badge span { font-size: .82rem; color: rgba(255,255,255,.75); }
.about__text .lead { margin: 20px 0; }
.about__text p + p { margin-top: 16px; }
.vm { display: grid; gap: 16px; margin-top: 30px; }
.vm__card { display: flex; gap: 16px; padding: 20px 22px; background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.vm__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vm__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.vm__ico svg { width: 24px; height: 24px; stroke: #fff; }
.vm__card h4 { font-size: 1.02rem; margin-bottom: 3px; }
.vm__card p { font-size: .92rem; }

/* Stats */
.stats { background: var(--brand-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 40px); }
.stat { text-align: center; padding: 10px; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); display: block; line-height: 1; background: linear-gradient(180deg, #fff, var(--brand-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }
.stats__grid .stat { position: relative; }
.stats__grid .stat:not(:last-child)::after { content: ""; position: absolute; right: calc(var(--gutter) * -.5 / 2); top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,.12); }

/* ============================================================================
   SERVICIOS
   ========================================================================== */
.services { background: var(--paper-2); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.svc + .svc { margin-top: clamp(48px, 7vw, 100px); }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.svc__media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__num { position: absolute; top: 18px; left: 20px; font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .1em; color: #fff; background: rgba(6,36,23,.5); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.2); }
.svc__body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 14px 0 14px; }
.svc__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: .84rem; font-weight: 500; color: var(--brand-800); background: var(--mint); border: 1px solid var(--line); padding: 8px 15px; border-radius: 100px; transition: all .3s var(--ease); }
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }

/* --- Soporte transversal: activos estratégicos --- */
.assets-band { margin-top: clamp(56px, 8vw, 110px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.assets-band__head { max-width: 680px; margin-bottom: 30px; }
.assets-band__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 10px; }
.assets-band__head p { font-size: .98rem; }
.assets-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.asset-card { padding: 24px 22px; background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.asset-card .feature__ico { margin-bottom: 16px; background: var(--paper); }
.asset-card:hover .feature__ico { background: var(--brand); }
.asset-card:hover .feature__ico svg { stroke: #fff; }
.asset-card h4 { font-size: 1.04rem; margin-bottom: 6px; }
.asset-card p { font-size: .9rem; }

/* --- Banner EPC Partnering --- */
.epc {
  margin-top: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 200% at 100% 0%, rgba(34,168,95,.25), transparent 55%),
    linear-gradient(120deg, var(--brand-900), var(--brand-800));
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.epc::before { content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.epc__body { max-width: 640px; }
.epc__body h3 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 12px 0 12px; }
.epc__body p { color: rgba(255,255,255,.82); font-size: .98rem; }
.epc .btn { flex: none; }

/* ============================================================================
   DIFERENCIADORES
   ========================================================================== */
.why { background: var(--paper); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--mint); display: grid; place-items: center; margin-bottom: 20px; transition: background .4s var(--ease); }
.feature__ico svg { width: 27px; height: 27px; stroke: var(--brand); transition: stroke .4s var(--ease); }
.feature:hover .feature__ico { background: var(--brand); }
.feature:hover .feature__ico svg { stroke: #fff; }
.feature h4 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { font-size: .94rem; }

/* ============================================================================
   CUMPLIMIENTO (compliance)
   ========================================================================== */
.compliance {
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(34,168,95,.14), transparent 55%),
    var(--brand-900);
  color: #fff;
}
.compliance .section-head h2 { color: #fff; }
.compliance .lead { color: rgba(255,255,255,.75); }
.comp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comp-card {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.comp-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); border-color: rgba(107,215,158,.45); }
.comp-card__ico { width: 52px; height: 52px; border-radius: 13px; background: rgba(34,168,95,.18); border: 1px solid rgba(107,215,158,.3); display: grid; place-items: center; margin-bottom: 18px; transition: background .4s var(--ease); }
.comp-card__ico svg { width: 26px; height: 26px; stroke: var(--brand-300); }
.comp-card:hover .comp-card__ico { background: var(--brand); }
.comp-card:hover .comp-card__ico svg { stroke: #fff; }
.comp-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.comp-card p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* ============================================================================
   RESEÑAS DE GOOGLE
   ========================================================================== */
.reviews { background: var(--mint-2); }
.reviews__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; align-items: stretch; }
.gcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gcard__g { width: 44px; height: 44px; margin: 0 auto 14px; }
.gcard__rating b { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--ink); }
.stars { display: inline-flex; gap: 3px; margin: 10px 0 6px; }
.stars svg { width: 22px; height: 22px; fill: #FBBC04; }
.stars.sm svg { width: 16px; height: 16px; }
.gcard__label { display: block; font-size: .84rem; color: var(--ink-3); margin-bottom: 22px; }
.gcard .btn { width: 100%; }
.gcard__note { display: block; margin-top: 14px; font-size: .76rem; color: var(--ink-3); }

.rev__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rev__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--a, var(--brand)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.rev__head b { display: block; font-size: .96rem; font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.rev__head small { color: var(--ink-3); font-size: .8rem; }
.rev__g { width: 22px; height: 22px; margin-left: auto; flex: none; }
.rev p { font-size: .94rem; color: var(--ink-2); margin-top: 8px; }

.reviews__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 42px; }
.reviews__all a { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: 1rem; transition: color .3s var(--ease); }
.reviews__all:hover a { color: var(--brand-bright); }
.reviews__all svg { width: 18px; height: 18px; stroke: var(--brand); transition: transform .3s var(--ease); }
.reviews__all:hover svg { transform: translateX(4px); }

/* ============================================================================
   PROYECTOS (galería)
   ========================================================================== */
.projects { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; cursor: pointer; background: var(--brand-800); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6,36,23,.85)); opacity: 0; transition: opacity .4s var(--ease); }
.gallery figure figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure:hover::after { opacity: 1; }
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* Caso destacado en la sección de proyectos del homepage */
.featured-project {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  margin-top: clamp(40px, 5vw, 60px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  color: inherit; text-decoration: none;
}
.featured-project:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.featured-project__media { overflow: hidden; aspect-ratio: 4/3; }
.featured-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured-project:hover .featured-project__media img { transform: scale(1.05); }
.featured-project__body { padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-project__tag { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.featured-project h3 { color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.featured-project p { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.featured-project__meta { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); font-family: var(--font-display); }
.featured-project__meta b { color: var(--ink); font-weight: 700; }
.featured-project__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: .96rem; transition: gap .3s var(--ease); }
.featured-project:hover .featured-project__cta { gap: 14px; color: var(--brand-bright); }
.featured-project__cta svg { width: 18px; height: 18px; stroke: currentColor; }
@media (max-width: 900px) { .featured-project { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6,20,13,.94); display: grid; place-items: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: background .3s; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }

/* ============================================================================
   UBICACIONES
   ========================================================================== */
.locations { background: var(--paper); }
.loc__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin-inline: auto; }
.loc { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--paper); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.loc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.loc__map { height: 120px; margin-bottom: 22px; display: flex; align-items: center; }
.loc__map svg, .loc__map img { height: 100%; width: auto; opacity: .9; }
.loc__tag { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.loc h4 { font-size: 1.2rem; margin: 6px 0 10px; }
.loc p { font-size: .94rem; }
.loc.main { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.loc.main h4 { color: #fff; } .loc.main p { color: rgba(255,255,255,.78); } .loc.main .loc__tag { color: var(--brand-300); }
.loc.main .loc__map svg, .loc.main .loc__map img { filter: brightness(0) invert(1); opacity: .8; }

/* ============================================================================
   CONTACTO
   ========================================================================== */
.contact { background: var(--mint-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; }
.contact__info .cinfo { flex: 1; }
.contact__info .lead { margin: 18px 0 32px; }
.cinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cinfo__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.cinfo__item:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.cinfo__item--wide { grid-column: 1 / -1; }
.cinfo__item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cinfo .ci-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--mint-2); border: 1px solid var(--line); display: grid; place-items: center; }
.cinfo .ci-ico svg { width: 20px; height: 20px; stroke: var(--brand); }
.cinfo b { font-family: var(--font-display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; font-weight: 700; margin-bottom: 6px; }
.cinfo a, .cinfo span { color: var(--ink); font-weight: 500; line-height: 1.5; font-size: .9rem; }
.cinfo span { word-break: break-word; }
.cinfo a { color: var(--brand); text-decoration: none; transition: color .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; font-size: .82rem; letter-spacing: -.01em; }
.cinfo__branches { display: flex; flex-direction: column; gap: 14px; }
.cinfo__branch { display: block; }
.cinfo__sub { display: block; font-family: var(--font-display); font-size: .72rem; font-weight: 700; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 2px; }
.cinfo a:hover { color: var(--brand-bright); text-decoration: underline; }
@media (max-width: 640px) { .cinfo { grid-template-columns: 1fr; } }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.socials a svg { width: 20px; height: 20px; fill: var(--brand); transition: fill .3s; }
.socials a:hover svg { fill: #fff; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.form .field:has(textarea) { flex: 1; display: flex; flex-direction: column; }
.form textarea { flex: 1; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--paper-2); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(16,103,53,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { text-align: center; font-size: .82rem; color: var(--ink-3); margin-top: 14px; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--brand-900); color: rgba(255,255,255,.72); padding-block: clamp(56px, 7vw, 84px) 34px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer__brand p { font-size: .92rem; max-width: 300px; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul li { font-size: .92rem; transition: color .3s; }
.footer ul a:hover { color: var(--brand-300); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__bottom a:hover { color: var(--brand-300); }

/* ============================================================================
   ANIMACIONES (scroll reveal)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
.only-mobile { display: none; }

@media (max-width: 1080px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .comp__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .reviews__grid { grid-template-columns: 1fr; gap: 22px; }
  .gcard { position: static; display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 8px 26px; text-align: center; }
  .rev__list { grid-template-columns: repeat(2, 1fr); }
  .gcard__g { margin: 0; }
  .gcard .btn { width: auto; }
  .gcard__label, .gcard__note { width: 100%; margin: 0; }
}

@media (max-width: 900px) {
  .nav, .header .btn-ghost.desktop { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .brand__logo { width: auto; height: 44px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .about__media img { height: auto; aspect-ratio: 4/5; }
  .svc, .svc:nth-child(even) .svc__media { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc__media { order: 0; }
  .svc__media { order: 0 !important; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stats__grid .stat::after { display: none !important; }
  .loc__grid { grid-template-columns: 1fr; }
  .assets-band__grid { grid-template-columns: 1fr; }
  .epc { flex-direction: column; align-items: flex-start; }

  /* Menú móvil */
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px); padding: 14px var(--gutter) 28px;
    box-shadow: var(--shadow); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease); display: flex;
  }
  .header.open .nav { transform: translateY(0); }
  .nav a { color: var(--ink) !important; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 15px 28px; border: 0; }
  .nav .btn-primary, .nav .btn-primary:hover { color: #fff !important; background: var(--brand); text-align: center; }
  .only-mobile { display: inline-flex; }
}

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .about__badge { left: 12px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .rev__list { grid-template-columns: 1fr; }
  .comp__grid { grid-template-columns: 1fr; }
  .hero__pillars { gap: 8px; }
  .pillar { font-size: .76rem; padding: 8px 13px; }
  .pillar i { display: none; }
}
