/* =========================================================
   Central Power S.A.S. — Hoja de estilos
   Marca (documento "LOGO CENTRAL POWER - ESTRUCTURA COLOR"):
   - Tipografía: Raleway
   - "Central Power": #2E848F  · "Energía real": #6F6F6F
   - Rayo y círculo: degradado sobre #32A3A3
   ========================================================= */

:root {
  /* Marca */
  --teal: #2E848F;
  --teal-2: #32A3A3;
  --gray: #6F6F6F;
  /* Derivados de la marca (tintes y sombras del mismo tono) */
  --teal-ink: #1F5F67;          /* texto teal sobre blanco con contraste AA */
  --teal-glow: #6FD0CE;         /* acento legible sobre fondo oscuro */
  --ink: #0A1A1D;               /* fondo oscuro: extremo oscuro del degradado del logo */
  --ink-2: #102629;
  --ink-3: #18363A;
  --paper: #F4F8F8;
  --white: #FFFFFF;
  --text: #16282B;
  --muted: #55676A;
  --line: #DCE6E7;
  --line-dark: rgba(255, 255, 255, .12);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(10, 26, 29, .35);
  --ease: cubic-bezier(.22, .9, .27, 1);      /* desaceleración física */
  --ease-snap: cubic-bezier(.5, 0, .2, 1.2);
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .9em; display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--teal-2), transparent); }
.muted { color: var(--muted); }

.section-light { background: var(--white); padding: clamp(72px, 9vw, 128px) 0; }
.section-light:nth-of-type(even) { background: var(--paper); }
.section-dark { background: var(--ink); color: #E6EFEF; padding: clamp(72px, 9vw, 128px) 0; position: relative; isolation: isolate; overflow: hidden; }
.section-dark::before { /* rejilla técnica sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(111, 208, 206, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 208, 206, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-glow); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:last-child { color: inherit; opacity: .8; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }

/* ---------- Botones ---------- */
.btn { --bg: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s; }
.btn-primary { background: var(--teal-ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(46, 132, 143, .9); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(50, 163, 163, .9); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal-glow); background: rgba(111, 208, 206, .12); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn span[aria-hidden] { transition: transform .35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .4s var(--ease), border-color .4s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(10, 26, 29, .4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal-2); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--text); }
.header-phone small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); line-height: 1.2; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(50, 163, 163, .6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(50, 163, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(50, 163, 163, 0); } }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + 56px) 0 96px; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: var(--header-h) 0 0 0; z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 0%; transform-origin: 70% 0%; transform: scale(1.08); animation: kenburns 18s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(100deg, rgba(10, 26, 29, .96) 0%, rgba(10, 26, 29, .88) 34%, rgba(10, 26, 29, .3) 54%, rgba(10, 26, 29, .12) 100%),
  linear-gradient(0deg, rgba(10, 26, 29, .9), transparent 40%); }
@media (max-width: 960px) {
  .hero-media img { object-position: 74% 0%; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 26, 29, .97) 18%, rgba(10, 26, 29, .78) 55%, rgba(10, 26, 29, .45) 100%); }
}
@media (max-width: 640px) {
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 300px); }
  .hero-media { inset: var(--header-h) 0 auto 0; height: 330px; }
  .hero-media img { object-position: 76% 0%; transform-origin: 76% 0%; }
  .hero-shade { background: linear-gradient(180deg, transparent calc(var(--header-h) + 170px), var(--ink) calc(var(--header-h) + 330px)); }
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 90px; z-index: -1; }
.hero-wave path { fill: none; stroke: var(--teal-2); stroke-width: 1.5; stroke-dasharray: 2400; stroke-dashoffset: 2400; opacity: .55; animation: trace 4.5s .6s var(--ease) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: end; }
.hero .eyebrow { color: var(--teal-glow); }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .45em; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--teal-glow); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: #C9D8D9; max-width: 56ch; margin-bottom: 2em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: grid; gap: 14px; }
.float-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: rgba(16, 38, 41, .62); border: 1px solid var(--line-dark); backdrop-filter: blur(12px); font-size: .9rem; color: #BFD0D1; line-height: 1.35; }
.float-card strong { display: block; color: #fff; font-size: 1.05rem; }
.float-card:nth-child(2) { margin-left: 28px; }
.fc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--teal-2), var(--teal-ink)); flex: none; }
.fc-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Riesgo ---------- */
.risk-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.risk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.risk-list li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; background: var(--white); transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.risk-list li:hover { border-color: var(--teal-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.risk-list span { font-size: .8rem; font-weight: 800; color: var(--teal-ink); letter-spacing: .08em; }

/* ---------- Servicios ---------- */
.svc { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.svc-tabs { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 20px); }
.svc-tabs button { text-align: left; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .02); color: #C9D8D9; font: 600 1rem var(--font); cursor: pointer; display: grid; gap: 10px; transition: background-color .35s var(--ease), border-color .35s, color .35s, transform .35s var(--ease); }
.svc-tabs button:hover { border-color: rgba(111, 208, 206, .45); color: #fff; }
.svc-tabs button[aria-selected="true"] { background: linear-gradient(120deg, rgba(50, 163, 163, .22), rgba(50, 163, 163, .04)); border-color: var(--teal-2); color: #fff; transform: translateX(4px); }
.svc-pct { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; color: var(--teal-glow); }
.svc-pct i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.svc-pct i::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, var(--teal-ink), var(--teal-glow)); transform-origin: left; }
.svc-new { color: #BFD0D1; font-weight: 600; letter-spacing: .04em; }
.svc-panel { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-dark); min-height: 460px; }
.svc-panel[hidden] { display: none; }
.svc-panel.is-active { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.svc-fig { margin: 0; position: relative; overflow: hidden; }
.svc-fig img { width: 100%; height: 100%; object-fit: cover; }
.svc-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--ink-2)); }
.svc-fig-art { display: grid; place-items: center; background: radial-gradient(circle at 40% 40%, rgba(50, 163, 163, .25), transparent 60%), var(--ink-3); }
.svc-fig-art svg { width: 78%; fill: none; stroke: var(--teal-glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-fig-art .net circle { fill: var(--ink-2); }
.svc-fig-art .bolt { fill: var(--teal-2); stroke: none; }
.svc-fig-art .line { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
.svc-fig-art .sun { fill: rgba(111, 208, 206, .2); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.svc-body { padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; }
.svc-body p { color: #BFD0D1; }
.svc-body .btn { margin-top: auto; align-self: flex-start; }
.checks { display: grid; gap: 10px; margin: 6px 0 28px; }
.checks li { position: relative; padding-left: 30px; color: #DCE7E7; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(50, 163, 163, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FD0CE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Mantenimiento ---------- */
.maint-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.maint-photos { position: relative; padding-bottom: 18%; }
.maint-photos img { border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.mp-a { width: 78%; aspect-ratio: 3 / 4; }
.mp-b { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid var(--white); }
.section-light:nth-of-type(even) .mp-b { border-color: var(--paper); }
.maint-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.mt-card { padding: 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.mt-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal-ink), var(--teal-2)); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease); }
.mt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.mt-card:hover::before { transform: scaleX(1); }
.mt-num { font-size: .8rem; font-weight: 800; color: var(--teal-ink); letter-spacing: .1em; }
.mt-card h3 { margin: 6px 0 6px; }
.mt-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.maint-steps { counter-reset: s; display: grid; gap: 12px; margin-bottom: 30px; }
.maint-steps li { counter-increment: s; position: relative; padding: 5px 0 0 48px; min-height: 34px; color: var(--muted); }
.maint-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--teal-ink); border: 1.5px solid var(--teal-2); }
.maint-steps strong { color: var(--text); }

/* ---------- Método ---------- */
.timeline { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--teal-2), rgba(50, 163, 163, .1)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.timeline.is-in::before { transform: scaleX(1); }
.tl-step { position: relative; }
.tl-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink); border: 2px solid var(--teal-2); margin-bottom: 18px; position: relative; z-index: 1; transition: background-color .4s, transform .4s var(--ease); }
.tl-step:hover .tl-n { background: var(--teal); transform: scale(1.08); }
.tl-step h3 { font-size: 1.08rem; }
.tl-step p { font-size: .9rem; color: #AFC2C3; margin: 0; }
.warranty { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 18px; align-items: stretch; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(50, 163, 163, .16), rgba(50, 163, 163, .03)); border: 1px solid rgba(111, 208, 206, .3); }
.w-item { display: grid; gap: 4px; align-content: center; }
.w-item strong { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.w-item span { color: #BFD0D1; font-size: .95rem; }
.w-or { align-self: center; font-style: italic; font-weight: 700; color: var(--teal-glow); }
.w-ext { border-left: 1px solid var(--line-dark); padding-left: 22px; }
.w-ext strong { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); color: var(--teal-glow); }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 .9rem var(--font); color: var(--text); cursor: pointer; transition: all .3s var(--ease); }
.chip:hover { border-color: var(--teal-2); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.proj-intro { max-width: 60ch; margin-top: .6em; }
.featured { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 64px); padding: clamp(16px, 2vw, 22px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.feat-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px; gap: 10px; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.feat-main { grid-column: span 2; }
.feat-body { padding: 8px clamp(4px, 2vw, 20px) 8px 0; }
.feat-body .eyebrow { color: var(--teal-glow); }
.feat-body h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; margin-bottom: .5em; }
.feat-body > p { color: #C9D8D9; margin-bottom: 1.2em; }
.feat-scope { display: grid; gap: 10px; }
.feat-scope li { position: relative; padding-left: 28px; font-weight: 600; color: #E6EFEF; }
.feat-scope li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal-glow); background: rgba(111, 208, 206, .18); }
.projects .filters { margin-bottom: 22px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 14px; grid-auto-flow: dense; }
.gallery.is-collapsed .g-item.g-extra { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery-more[hidden] { display: none; }
.btn-ghost-dark { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .feat-media { grid-template-rows: 240px 160px; }
  .feat-body { padding: 4px 6px 10px; }
}
@media (max-width: 560px) {
  .feat-media { grid-template-rows: 200px 130px; }
}
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-cap { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(10, 26, 29, .92), transparent); color: #fff; display: grid; gap: 2px; }
.g-cap span { font-size: .78rem; color: #BFD0D1; font-weight: 600; }
.g-cap strong { font-size: 1.02rem; }
.g-item.is-hidden { display: none; }

/* ---------- Confianza ---------- */
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-bottom: clamp(48px, 6vw, 72px); }
.marquee-track { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { white-space: nowrap; padding: 18px 26px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); font-weight: 700; font-size: 1.05rem; color: #E6EFEF; letter-spacing: .02em; }
@keyframes marquee { to { transform: translateX(-100%); } }
.sub-title { font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-glow) !important; margin-bottom: 22px; }
.sub-title.dark { color: var(--teal-ink) !important; margin-top: clamp(48px, 6vw, 72px); }
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sectors li { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-dark); font-weight: 600; color: #E6EFEF; transition: border-color .35s, background-color .35s; }
.sectors li:hover { border-color: var(--teal-2); background: rgba(50, 163, 163, .08); }
.sectors svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--teal-glow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nosotros ---------- */
.about-top { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.lead-dark { font-size: 1.15rem; color: var(--muted); }
.about-fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { padding: clamp(26px, 3.5vw, 44px); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.mv-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 800; }
.mv-purpose { background: var(--ink); color: #C9D8D9; }
.mv-purpose h3 { color: #fff; }
.mv-purpose .eyebrow { color: var(--teal-glow); }
.mv-purpose::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(111, 208, 206, .25); box-shadow: 0 0 0 30px rgba(111, 208, 206, .04); }
.mv-ambition { background: linear-gradient(140deg, var(--teal-ink), var(--teal)); color: #E9F5F5; }
.mv-ambition h3 { color: #fff; }
.mv-ambition .eyebrow { color: #E9F5F5; }
.mv-ambition .eyebrow::before { background: #fff; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.values li { padding: 24px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal-2); }
.values h4 { font-size: 1.05rem; }
.values p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Cobertura ---------- */
.cov-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.cov-grid > div > p { color: #BFD0D1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0 0; }
.stats div { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.stats dt { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.stats dd { margin: 8px 0 0; font-size: .88rem; color: #AFC2C3; }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cities li { padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cities li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px rgba(50, 163, 163, .2); order: -1; }
.cities li small { margin-left: auto; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-glow); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 28px 0; }
.contact-list li { display: grid; gap: 2px; font-weight: 600; }
.contact-list span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.emergency { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--ink); color: #E6EFEF; text-decoration: none; transition: transform .35s var(--ease); }
.emergency:hover { transform: translateY(-3px); }
.emergency strong { color: #fff; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.need { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.need legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.need label { position: relative; cursor: pointer; }
.need input { position: absolute; opacity: 0; inset: 0; }
.need span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; transition: all .3s var(--ease); }
.need input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.need input:focus-visible + span { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.need-urgent input:checked + span { background: #B3261E; border-color: #B3261E; }
.need-urgent span { border-color: rgba(179, 38, 30, .4); color: #8C1D18; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea { font: 500 1rem var(--font); color: var(--text); padding: 13px 14px; border-radius: 10px; border: 1px solid #C8D6D7; background: var(--paper); transition: border-color .25s, box-shadow .25s, background-color .25s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(50, 163, 163, .18); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { border-color: #B3261E; }
.dyn { display: none; }
.dyn.is-on { display: block; animation: panelIn .45s var(--ease); }
.urgent-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FBEDEC; color: #8C1D18; font-weight: 600; font-size: .92rem; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--teal-ink); }
.form-status.err { color: #B3261E; }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); max-width: 40ch; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.footer-grid nav, .footer-grid > div:last-child { display: grid; gap: 8px; align-content: start; }
.footer-grid a { text-decoration: none; color: var(--text); }
.footer-grid a:hover { color: var(--teal-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }

/* ---------- Botón flotante ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; height: 56px; border-radius: 999px; background: #1F7A52; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 30px -10px rgba(10, 26, 29, .55); transition: transform .35s var(--ease); }
.fab:hover { transform: translateY(-3px) scale(1.02); }
.fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(10, 26, 29, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .nav-cta-mobile { display: block; margin-top: 14px; text-align: center; background: var(--teal-ink); color: #fff; border-radius: 999px; border: 0; }
  .hero-inner, .risk-grid, .maint-grid, .about-top, .cov-grid, .contact-grid, .mv { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: repeat(3, 1fr); }
  .float-card:nth-child(2) { margin-left: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc-tabs { position: static; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .svc-tabs button { scroll-snap-align: start; }
  .svc-tabs button[aria-selected="true"] { transform: none; }
  .svc-panel { grid-template-columns: 1fr; }
  .svc-fig { aspect-ratio: 16 / 10; }
  .svc-fig::after { background: linear-gradient(0deg, var(--ink-2), transparent 50%); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .warranty { grid-template-columns: 1fr auto 1fr; }
  .w-ext { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-dark); padding: 18px 0 0; }
  .about-fig { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .hero { padding-bottom: 72px; }
  .hero-badges { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .risk-list, .maint-types, .values, .sectors, .row2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .g-cap { padding: 30px 10px 10px; }
  .g-cap strong { font-size: .9rem; }
  .warranty { grid-template-columns: 1fr; text-align: left; }
  .w-or { display: none; }
  .fab span { display: none; }
  .fab { width: 56px; padding: 0; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
  .hero-wave path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
