/* ==========================================================================
   CYS — Climatización y Electricidad · Landing
   Paleta y sistema de diseño basados en la presentación corporativa
   ========================================================================== */

:root {
  /* Marca */
  --navy-950: #06101F;
  --navy-900: #081428;
  --navy-800: #0B1E3F;
  --navy-700: #0F2A57;
  --navy-600: #133b7a;
  --blue-600: #1B4DA0;
  --blue-500: #2563EB;
  --blue-400: #3B82F6;
  --blue-200: #BBD3F2;

  --orange: #F39200;
  --orange-600: #E8821E;
  --orange-700: #cf7212;
  --gold: #F5B301;
  --teal: #15A28E;
  --teal-700: #0F8A78;

  --ink: #0E1A2B;
  --gray-800: #1F2A3A;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --bg: #F6F8FB;
  --white: #FFFFFF;

  /* Tipografía */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Estructura */
  --container: 1200px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(8, 20, 40, .06), 0 2px 6px rgba(8, 20, 40, .05);
  --shadow: 0 10px 30px -12px rgba(8, 20, 40, .22);
  --shadow-lg: 0 24px 60px -20px rgba(8, 20, 40, .35);

  --ring: 0 0 0 4px rgba(37, 99, 235, .25);
}

/* ---------- 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(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--navy { background: var(--navy-900); color: #E7EEF8; }
.section--soft { background: var(--bg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .eyebrow::before { background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: .8rem; color: inherit; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--gray-600); }
.section--navy .section-head p { color: #AFC0DA; }

.lead { font-size: 1.12rem; color: var(--gray-600); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--blue-600); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--pill);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: #1b1100; box-shadow: 0 12px 26px -10px rgba(243,146,0,.7); }
.btn--primary:hover { background: var(--orange-600); }
.btn--wa { --btn-bg: #25D366; --btn-fg: #06351a; box-shadow: 0 12px 26px -12px rgba(37,211,102,.7); }
.btn--wa:hover { background: #1ebe5a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; color: var(--blue-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 16, 31, .85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(7, 16, 31, .96); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; gap: .6rem; color: #fff; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; color: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: .02em; }
.brand__name b { color: var(--gold); font-weight: 800; }
.brand__tag { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-200); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: #D4DEEE; white-space: nowrap;
  padding: .5rem .6rem; border-radius: 10px; transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.nav__actions .btn--primary { font-size: .92rem; padding: .62rem 1.05rem; white-space: nowrap; }
.nav__access {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: #D4DEEE;
  padding: .5rem .78rem; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.22);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav__access svg { width: 16px; height: 16px; }
.nav__access:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
/* En la barra de escritorio el botón muestra "Acceso" (compacto); en el menú
   desplegable se muestra el texto completo "Acceso colaboradores". */
.nav__access-full { display: none; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; color: #fff; align-items: center; justify-content: center; }
.nav__toggle svg { width: 26px; height: 26px; }
.nav__toggle .ic-close { display: none; }
.nav.is-open .nav__toggle .ic-open { display: none; }
.nav.is-open .nav__toggle .ic-close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(1200px 600px at 78% -10%, rgba(37,99,235,.55), transparent 60%),
    radial-gradient(900px 700px at 8% 110%, rgba(21,162,142,.35), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
}
.hero__facets { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.hero__glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -120px; z-index: -1;
  background: radial-gradient(circle, rgba(243,146,0,.22), transparent 65%); filter: blur(10px); }

.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  color: #CBE0FF; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: .5rem .9rem; border-radius: var(--pill);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245,179,1,.18); }
/* Logro de sustentabilidad, destacado arriba (verde) */
.hero__eco {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .55rem;
  margin-top: .75rem;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .01em;
  color: #BFF3E8; background: rgba(21,162,142,.16); border: 1px solid rgba(21,162,142,.45);
  padding: .5rem .95rem; border-radius: var(--pill);
}
.hero__eco svg { width: 17px; height: 17px; color: #4FD8C0; flex: none; }
.hero__eco b { color: #fff; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; margin-top: 1.3rem; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--gold); }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #C5D4EC; max-width: 38ch; }
.hero__sub b { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__partners { margin-top: 2.4rem; }
.hero__partners span { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #8FA6C8; margin-bottom: .7rem; }
.hero__partners ul { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: center; }
.hero__partners li { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #93A8C9; opacity: .85; letter-spacing: .01em; }

/* Tarjeta lateral del hero */
.hero__card {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg);
  padding: 1.6rem; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero__card h3 { font-size: 1.05rem; color: #fff; display: flex; align-items: center; gap: .55rem; }
.hero__card h3 svg { width: 20px; height: 20px; color: var(--gold); }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.hstat { background: rgba(8,20,40,.4); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1rem; }
.hstat__num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: #fff; line-height: 1; }
.hstat__num .u { color: var(--orange); }
.hstat__label { font-size: .82rem; color: #A9BBD6; margin-top: .35rem; }
.hero__card .btn { margin-top: 1.2rem; }

/* Cinta inferior del hero */
.hero__ribbon { border-top: 1px solid rgba(255,255,255,.1); background: rgba(6,16,31,.55); }
.hero__ribbon ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.hero__ribbon li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #C9D6EC; }
.hero__ribbon svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.hero__ribbon b { color: #fff; font-family: var(--font-display); }

/* ==========================================================================
   Servicios
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  position: relative; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem 1.7rem; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--accent, var(--blue-500)), transparent 80%); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, var(--blue-500)) 14%, white); color: var(--accent, var(--blue-600)); margin-bottom: 1.2rem; }
.svc__icon svg { width: 30px; height: 30px; }
.svc h3 { font-size: 1.3rem; }
.svc > p { color: var(--gray-600); margin-top: .5rem; }
.svc ul { margin-top: 1.1rem; display: grid; gap: .6rem; }
.svc li { display: flex; gap: .6rem; font-size: .96rem; color: var(--gray-700); }
.svc li svg { width: 18px; height: 18px; color: var(--accent, var(--blue-600)); flex: none; margin-top: 3px; }
.svc--elec { --accent: var(--orange); }
.svc--clima { --accent: var(--blue-500); }
.svc--ef { --accent: var(--teal); }

/* ==========================================================================
   Capacidades técnicas (tabs)
   ========================================================================== */
.tabs { display: inline-flex; gap: .4rem; padding: .4rem; background: var(--gray-100); border-radius: var(--pill); margin-bottom: 2.2rem; }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: var(--pill);
  font-family: var(--font-display); font-weight: 600; color: var(--gray-600); transition: all .2s ease;
}
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cap {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cap__h { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.cap__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--navy-800); color: var(--gold); }
.cap__ic svg { width: 22px; height: 22px; }
.cap h4 { font-size: 1.04rem; }
.cap ul { display: grid; gap: .5rem; }
.cap li { display: flex; gap: .5rem; font-size: .92rem; color: var(--gray-600); }
.cap li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: .55rem; flex: none; }

/* ==========================================================================
   Mediciones profesionales
   ========================================================================== */
.med-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.med-grid .cap { display: flex; flex-direction: column; }
.med-grid .cap__ic { background: var(--teal); color: #fff; }
.med-grid .cap__h { margin-bottom: 1rem; }
.med__desc { color: var(--gray-600); font-size: .92rem; line-height: 1.5; margin: 0 0 1.2rem; }
.med__tool { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--teal-700); }
.med__tool span { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; margin-bottom: .25rem; }

/* ==========================================================================
   Estadísticas
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.stat__num .u { color: var(--gold); }
.stat__label { margin-top: .6rem; color: #AFC0DA; font-size: .96rem; }

/* ==========================================================================
   Obras
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  padding: .6rem 1.1rem; border-radius: var(--pill); font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); transition: all .2s ease;
}
.filter:hover { border-color: var(--blue-400); color: var(--blue-600); }
.filter.is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.filter .count { opacity: .65; font-weight: 500; }

.obras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.obra {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.obra:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.obra__top { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: .9rem 1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; overflow: hidden; }
.obra__top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease; }
.obra__top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to top, rgba(8,18,38,.82) 0%, rgba(8,18,38,.34) 48%, transparent 100%); }
.obra:hover .obra__top img { transform: scale(1.06); }
.obra__m2 { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.obra__m2 span { font-size: .8rem; font-weight: 600; opacity: .9; }
.obra__body { padding: 1rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.obra h4 { font-size: .98rem; line-height: 1.25; }
.obra__meta { margin-top: auto; }
.tagline-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { font-size: .72rem; font-weight: 600; font-family: var(--font-display); padding: .25rem .6rem; border-radius: var(--pill); }
.badge--elec { background: #FFF1DE; color: #9a5b00; }
.badge--clima { background: #E5EEFE; color: #1746a3; }
.obras-note { margin-top: 1.6rem; color: var(--gray-500); font-size: .92rem; text-align: center; }
.is-hidden { display: none !important; }

/* ==========================================================================
   Taller propio
   ========================================================================== */
.taller-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.taller-card { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-800); box-shadow: var(--shadow); }
.taller-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .5s ease; }
.taller-card:hover img { transform: scale(1.05); }
.taller-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.2rem .95rem;
  color: #fff; background: linear-gradient(to top, rgba(7,16,34,.9) 12%, rgba(7,16,34,.55) 55%, transparent 100%); }
.taller-card figcaption b { display: block; font-family: var(--font-display); font-size: 1.12rem; }
.taller-card figcaption span { display: block; margin-top: .25rem; font-size: .88rem; color: #C6D4EC; }

/* ==========================================================================
   Por qué elegirnos
   ========================================================================== */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why__item { padding: 1.8rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.why__num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--orange); color: #1b1100; margin-bottom: 1.1rem; }
.why__item h3 { color: #fff; font-size: 1.25rem; }
.why__item p { color: #AFC0DA; margin-top: .6rem; }

/* ==========================================================================
   Medio ambiente
   ========================================================================== */
.eco { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-800) 0%, var(--teal-700) 100%); color: #fff; border-radius: var(--radius-lg); }
.eco__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 5vw, 3.6rem); }
.eco__badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--pill); padding: .5rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.eco h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-top: 1.2rem; }
.eco p { color: #D6E8E4; margin-top: 1rem; font-size: 1.06rem; }
.eco__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.eco__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.eco__chip { position: absolute; left: 1.1rem; bottom: 1.1rem; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem .55rem .7rem; border-radius: var(--pill); background: rgba(7,16,34,.78);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: #CFF1EA; }
.eco__chip .n { font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: 0; color: #fff; }
.eco__chip .n small { color: var(--gold); font-size: .55em; }

/* ---------- Bloque Energía Solar (prueba propia + CTA) ---------- */
.solar-proof {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(21,162,142,.12), rgba(21,162,142,.04));
  border: 1px solid rgba(21,162,142,.30);
}
.solar-proof__ic {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(21,162,142,.7);
}
.solar-proof__ic svg { width: 28px; height: 28px; }
.solar-proof__txt { flex: 1 1 320px; }
.solar-proof__txt b { font-family: var(--font-display); color: var(--teal-700); }
.solar-proof__txt p { color: var(--gray-700); margin-top: .25rem; }
.solar-proof .btn { flex: none; }

/* ==========================================================================
   Clientes / Alianzas
   ========================================================================== */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.logos--clients { grid-template-columns: repeat(6, 1fr); }
.logo-chip {
  display: grid; place-items: center; text-align: center; min-height: 84px; padding: 1rem .8rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; color: var(--gray-700); font-size: .98rem; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.logo-chip span { display: block; font-weight: 500; font-size: .72rem; color: var(--gray-400); margin-top: .2rem; }
.logo-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy-800); }

.alianzas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.alianza { border-radius: var(--radius-lg); padding: 1.8rem; }
.alianza--elec { background: linear-gradient(160deg, #FFF6EA, #fff); border: 1px solid #F4D9AE; }
.alianza--clima { background: linear-gradient(160deg, #EEF4FF, #fff); border: 1px solid #C9DBFA; }
.alianza__h { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.alianza__h .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.alianza--elec .ic { background: var(--orange); }
.alianza--clima .ic { background: var(--blue-500); }
.alianza__h h3 { font-size: 1.3rem; }
.alianza__brands { display: flex; flex-wrap: wrap; gap: .6rem; }
.brand-pill { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--pill); padding: .5rem .95rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--gray-700); }

/* ==========================================================================
   Equipo
   ========================================================================== */
.team { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.team__big { background: linear-gradient(160deg, var(--orange), var(--gold)); border-radius: var(--radius-lg); padding: 2.4rem; color: #1b1100; }
.team__big .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 5rem); line-height: .9; }
.team__big .t { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: .4rem; }
.team__roles { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.5rem; }
.role { display: flex; align-items: center; gap: .7rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; }
.role svg { width: 26px; height: 26px; color: var(--blue-600); flex: none; }
.role b { font-family: var(--font-display); display: block; font-size: .98rem; }
.role small { color: var(--gray-500); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
.contact__info h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: #fff; }
.contact__info p { color: #AFC0DA; margin-top: 1rem; font-size: 1.06rem; }
.contact__methods { margin-top: 2rem; display: grid; gap: .9rem; }
.cmethod { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: border-color .2s ease, background .2s ease; }
.cmethod:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.cmethod__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.cmethod--wa .cmethod__ic { background: #25D366; color: #06351a; }
.cmethod--mail .cmethod__ic { background: var(--blue-500); }
.cmethod--loc .cmethod__ic { background: var(--teal); }
.cmethod small { display: block; color: #8FA6C8; font-size: .8rem; }
.cmethod b { font-family: var(--font-display); color: #fff; font-size: 1.05rem; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); } /* fija texto oscuro: la tarjeta blanca va dentro de .section--navy */
.form h3 { font-size: 1.4rem; }
.form p.muted { color: var(--gray-500); font-size: .92rem; margin-top: .3rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--gray-700); margin-bottom: .4rem; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__actions { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.form__note { font-size: .82rem; color: var(--gray-500); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: #9FB1CC; padding-block: 3.4rem 1.8rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__grid > * { min-width: 0; } /* permite que las columnas se encojan en vez de desbordar */
.footer .brand { margin-bottom: 1rem; }
.footer__about { font-size: .94rem; max-width: 36ch; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__links { display: grid; gap: .55rem; }
.footer__links a { font-size: .94rem; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: .7rem; font-size: .94rem; }
.footer__contact a { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; }
.footer__contact svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.footer__access { margin-top: 1.2rem; }
.footer__bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: #6F84A6; }

/* ==========================================================================
   CTA flotante móvil
   ========================================================================== */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; gap: .6rem; padding: .7rem;
  background: rgba(7,16,31,.96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); }
.mcta .btn { flex: 1; }

/* ==========================================================================
   Chat de soporte → WhatsApp
   ========================================================================== */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 70; }

.chat__launcher { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: none; cursor: pointer; background: #25D366; color: #06351a; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s ease, background .2s ease, color .2s ease; }
.chat__launcher:hover { transform: scale(1.07); }
.chat__launcher svg { width: 30px; height: 30px; }
.chat__launcher .ic-close { display: none; }
.chat.is-open .chat__launcher { background: var(--navy-800); color: #fff; }
.chat.is-open .chat__launcher .ic-chat { display: none; }
.chat.is-open .chat__launcher .ic-close { display: grid; place-items: center; }
.chat__ping { position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--orange); border: 2px solid #fff; }
.chat.is-open .chat__ping { display: none; }

.chat__panel { position: absolute; right: 0; bottom: 74px; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(8,18,38,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; }

.chat__header { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; }
.chat__avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem; }
.chat__id { flex: 1; min-width: 0; line-height: 1.25; }
.chat__id strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.chat__status { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: #C6D9F5; margin-top: .05rem; }
.chat__status i { width: 8px; height: 8px; border-radius: 50%; background: #25D366; animation: chatPulse 2s infinite; }
.chat__close { flex-shrink: 0; background: none; border: none; color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; opacity: .85; padding: 0 .15rem; }
.chat__close:hover { opacity: 1; }

.chat__body { padding: 1rem; max-height: 320px; overflow-y: auto; background: #F4F7FB; }
.chat__bubble { background: #fff; border: 1px solid var(--gray-200); border-radius: 4px 16px 16px 16px;
  padding: .8rem .9rem; font-size: .92rem; color: var(--gray-700); line-height: 1.45; box-shadow: 0 6px 16px -12px rgba(8,18,38,.4); }
.chat__quick { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.chat__quick button { text-align: left; background: #fff; border: 1px solid var(--blue-200); color: var(--blue-600);
  border-radius: 12px; padding: .6rem .8rem; font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chat__quick button:hover { background: rgba(37,99,235,.07); border-color: var(--blue-500); }

.chat__input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--gray-200); background: #fff; }
.chat__input input { flex: 1; min-width: 0; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: .65rem .8rem; font: inherit; font-size: .92rem; color: var(--gray-800); }
.chat__input input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.chat__input button { flex-shrink: 0; width: 44px; border: none; border-radius: 12px; background: #25D366;
  color: #06351a; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease; }
.chat__input button:hover { transform: scale(1.05); }
.chat__input button svg { width: 20px; height: 20px; }
.chat__foot { text-align: center; font-size: .72rem; color: var(--gray-400); padding: .55rem .7rem .7rem; background: #fff; }

@keyframes chatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   Animaciones de aparición
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__card { max-width: 520px; }
  .grid-3, .cap-grid, .med-grid, .why { grid-template-columns: 1fr 1fr; }
  .obras { grid-template-columns: 1fr 1fr 1fr; }
  .logos, .logos--clients { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* Nav: colapsa a menú hamburguesa apenas la barra completa deja de caber
   en el contenedor (máx 1200px). Cubre toda la zona donde antes se encimaban
   el logo y los links. */
@media (max-width: 1200px) {
  .nav__links, .nav__access { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; left: 0; right: 0; top: 74px; background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.12); padding: .8rem 22px 1.2rem; box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links a { padding: .85rem .6rem; font-size: 1.05rem; }
  .nav.is-open .nav__links .nav__access { display: inline-flex; justify-content: center; margin-top: .6rem; }
  .nav.is-open .nav__links .nav__access-short { display: none; }
  .nav.is-open .nav__links .nav__access-full { display: inline; }
}
@media (max-width: 860px) {
  .nav__actions .btn--primary { display: none; } /* CTA redundante con la barra fija .mcta */
  .eco__inner, .team, .contact { grid-template-columns: 1fr; }
  .taller-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .team__big { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mcta { display: flex; }
  .chat { right: 16px; bottom: 84px; }
  body { padding-bottom: 76px; }
  .alianzas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .cap-grid, .med-grid, .why, .obras, .hero__stats, .team__roles { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .logos, .logos--clients { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__ribbon ul { gap: .7rem; }
  .hero__ribbon li { width: calc(50% - .5rem); font-size: .82rem; }
  .section-head p { font-size: 1rem; }
}
