/* =========================================================
   Electricidad Avanzada 2000, S.L. — Hoja de estilos
   Colores tomados de los logotipos corporativos:
   azul símbolo #00549A · azul logotipo #00437A · gris #737578
   ========================================================= */

:root {
  /* Marca */
  --azul: #00549A;
  --azul-700: #00437A;
  --azul-800: #0A2E52;
  --azul-900: #071B2F;
  --azul-950: #04111F;
  --azul-300: #7DB8EC;
  --azul-100: #DCEAF7;
  --azul-50: #EFF5FB;
  --gris: #737578;
  --gris-400: #9FA8B4;
  --gris-200: #E2E6EB;
  --gris-100: #F3F5F8;
  --blanco: #FFFFFF;

  /* Texto */
  --tinta: #0E1B28;
  --texto: #3B4651;
  --texto-2: #65707C;

  /* Tipografía */
  --f-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  /* Medidas */
  --header-h: 84px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--tinta); font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--azul-300); outline-offset: 3px; }
::selection { background: var(--azul); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--azul); color: #fff; font-family: var(--f-display); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Elementos de texto ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  font-family: var(--f-display); font-weight: 500; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--azul);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--azul-300); }

.titulo { font-weight: 300; font-size: clamp(2rem, 3.7vw, 3.25rem); }
.titulo strong { font-weight: 500; color: var(--azul); }
.titulo--light { color: #fff; }
.titulo--light strong { color: var(--azul-300); }

.lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.7; color: var(--texto); }
.muted { color: var(--texto-2); }

/* ---------- Botones (motivo de esquina inspirado en el símbolo) ---------- */
.btn {
  --btn-c: var(--tinta);
  --btn-corner: var(--azul);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 32px 17px;
  border: 1px solid var(--btn-c);
  color: var(--btn-c);
  font-family: var(--f-display); font-weight: 500; font-size: .92rem; letter-spacing: .04em;
  background-image: linear-gradient(135deg, transparent calc(100% - 15px), var(--btn-corner) calc(100% - 15px));
  background-color: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  isolation: isolate;
}
.btn svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover { background-color: var(--btn-c); color: var(--blanco); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --btn-c: #fff; --btn-corner: var(--azul-300); }
.btn--light:hover { color: var(--azul-900); }
.btn--solid { --btn-c: var(--azul); --btn-corner: var(--azul-300); background-color: var(--azul); color: #fff; }
.btn--solid:hover { background-color: var(--azul-700); border-color: var(--azul-700); }
.btn--white { --btn-c: #fff; --btn-corner: var(--azul-300); background-color: #fff; color: var(--azul-700); }
.btn--white:hover { background-color: transparent; color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: .9rem; letter-spacing: .04em; color: var(--azul);
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   Cabecera
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, height .3s;
}
.header.is-scrolled { border-color: var(--gris-200); box-shadow: 0 6px 24px rgba(7, 27, 47, .06); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__sym { height: 52px; width: auto; }
.brand__word { height: 46px; width: auto; }
.brand--footer .brand__sym { height: 64px; }
.brand--footer .brand__word { height: 54px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-family: var(--f-display); font-size: .93rem; font-weight: 400; color: var(--tinta);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--azul); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link .chev { width: 9px; height: 9px; opacity: .6; transition: transform .25s; }

.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px;
  padding: 14px 0; background: #fff;
  border-top: 2px solid var(--azul);
  box-shadow: 0 18px 50px rgba(7, 27, 47, .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .chev, .nav__item:focus-within .chev { transform: rotate(180deg); }
.nav__drop a { display: flex; align-items: baseline; gap: 12px; padding: 9px 24px; font-size: .95rem; color: var(--texto); transition: background .2s, color .2s; }
.nav__drop a span { font-family: var(--f-display); font-size: .72rem; color: var(--gris-400); letter-spacing: .08em; }
.nav__drop a:hover { background: var(--azul-50); color: var(--azul); }

.header__cta { margin-left: 18px; padding: 13px 26px 14px; }
.header__cta[aria-current="page"] { background-color: var(--tinta); color: #fff; }

.burger { display: none; width: 46px; height: 46px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--tinta); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero de portada (escenas animadas / vídeo)
   ========================================================= */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 600px; max-height: 1100px;
  overflow: hidden;
  background: var(--azul-950);
  color: #fff;
}
.hero__scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__scene.is-active { opacity: 1; }
.hero__media, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img, .hero__media video { transform: scale(1.06); }
.hero__scene.is-active .hero__media img { animation: kenburns var(--scene-dur, 8s) linear forwards; }
.hero__scene:nth-child(even).is-active .hero__media img { animation-name: kenburns-b; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.6%, -1%, 0); } }
@keyframes kenburns-b { from { transform: scale(1.16) translate3d(1.4%, 0, 0); } to { transform: scale(1.03) translate3d(0, -.6%, 0); } }

.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 17, 31, .86) 0%, rgba(4, 17, 31, .55) 42%, rgba(4, 17, 31, .12) 78%),
    linear-gradient(0deg, rgba(4, 17, 31, .75) 0%, rgba(4, 17, 31, 0) 38%);
}
.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: screen; }

.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 110px; }
.hero__copy { position: relative; max-width: 760px; min-height: 330px; }
.hero__text { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.hero__text.is-active { pointer-events: auto; }
.hero__kicker { margin-bottom: 26px; }
.hero h1, .hero .hero__h {
  color: #fff; font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.7rem); line-height: 1.04; letter-spacing: -.02em;
}
.hero__h strong { font-weight: 500; color: var(--azul-300); }
.hero__h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero__h .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero__text.is-active .hero__h .w > span { transform: none; }
.hero__p {
  max-width: 560px; margin-top: 26px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255, 255, 255, .82);
  opacity: 0; transform: translateY(14px); transition: opacity .8s .5s, transform .8s .5s var(--ease);
}
.hero__text.is-active .hero__p { opacity: 1; transform: none; }
.hero__text:not(.is-active) .hero__h .w > span { transition-duration: .5s; transform: translateY(-110%); }
.hero__text:not(.is-active) .hero__p { transition-delay: 0s; transition-duration: .4s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; position: relative; z-index: 3; }

.hero__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(0deg, rgba(4, 17, 31, .55), rgba(4, 17, 31, 0)); }
.hero__bar-in { display: flex; align-items: stretch; }
.hero__dots { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__dot {
  position: relative; padding: 22px 22px 24px 0; text-align: left;
  font-family: var(--f-display); font-size: .82rem; letter-spacing: .04em; color: rgba(255, 255, 255, .55);
  transition: color .3s;
}
.hero__dot b { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .14em; color: rgba(255, 255, 255, .4); margin-bottom: 4px; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 22px; top: -1px; height: 2px; background: var(--azul-300); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active { color: #fff; }
.hero__dot.is-active b { color: var(--azul-300); }
.hero__dot.is-active::before { animation: dotfill var(--scene-dur, 8s) linear forwards; }
.hero.is-paused .hero__dot.is-active::before { animation-play-state: paused; }
.hero__dot:hover { color: #fff; }
@keyframes dotfill { to { transform: scaleX(1); } }

.hero__pause { flex-shrink: 0; align-self: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.hero__pause:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause .i-play { display: none; }
.hero.is-paused .hero__pause .i-play { display: block; }
.hero.is-paused .hero__pause .i-pause { display: none; }

/* =========================================================
   Secciones genéricas
   ========================================================= */
.sec { padding: var(--sec-y) 0; position: relative; }
.sec--gris { background: var(--gris-100); }
.sec--dark { background: var(--azul-900); color: rgba(255, 255, 255, .78); }
.sec--dark .titulo { color: #fff; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec__head .titulo { max-width: 760px; }
.sec__head p { max-width: 460px; margin: 0; }

/* Intro */
.intro { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro__body p:last-of-type { margin-bottom: 34px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--gris-200); }
.fact { padding: 32px 28px 0 0; position: relative; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--gris-200); }
.fact__n { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--azul); margin-bottom: 14px; }
.fact__n small { font-size: .45em; font-weight: 400; color: var(--gris); margin-left: 4px; }
.fact__t { font-family: var(--f-display); font-weight: 500; color: var(--tinta); font-size: 1.02rem; margin-bottom: 6px; }
.fact__d { font-size: .95rem; color: var(--texto-2); margin: 0; }

/* Statement con imagen (al estilo CYMI) */
.statement { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--azul-950); }
.statement__bg { position: absolute; inset: -8% 0; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 17, 31, .9) 0%, rgba(4, 17, 31, .55) 55%, rgba(4, 17, 31, .25) 100%); }
.statement .container { position: relative; z-index: 2; }
.statement__h { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.08; max-width: 900px; letter-spacing: -.02em; }
.statement__h strong { font-weight: 500; color: var(--azul-300); }
.statement__p { max-width: 560px; margin: 28px 0 38px; color: rgba(255, 255, 255, .8); font-size: 1.15rem; }

/* Tarjetas de áreas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area {
  position: relative; display: flex; flex-direction: column;
  background: #fff; overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.area:hover { box-shadow: 0 26px 60px rgba(7, 27, 47, .14); transform: translateY(-4px); }
.area__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--azul-800); }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.area:hover .area__img img { transform: scale(1.07); }
.area__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 17, 31, 0) 50%, rgba(4, 17, 31, .55) 100%); }
.area__num { position: absolute; z-index: 2; left: 26px; bottom: 18px; font-family: var(--f-display); font-weight: 500; font-size: .8rem; letter-spacing: .2em; color: #fff; }
.area__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 30px 28px 32px; }
.area__body::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, var(--azul) 50%);
  transition: width .4s var(--ease), height .4s var(--ease);
}
.area:hover .area__body::after { width: 34px; height: 34px; }
.area__t { font-size: 1.35rem; font-weight: 500; margin-bottom: 12px; }
.area__d { font-size: .98rem; color: var(--texto-2); flex: 1; }
.area__bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.area:hover .area__bar { transform: scaleX(1); }
.area__link::before { content: ""; position: absolute; inset: 0; z-index: 3; }

/* Para quién trabajamos */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gris-200); border-bottom: 1px solid var(--gris-200); }
.client { padding: 44px 32px 46px; transition: background .35s; }
.client + .client { border-left: 1px solid var(--gris-200); }
.client:hover { background: var(--azul-50); }
.client svg { width: 44px; height: 44px; color: var(--azul); margin-bottom: 26px; stroke-width: 1.25; }
.client h3 { font-size: 1.18rem; font-weight: 500; margin-bottom: 10px; }
.client p { font-size: .96rem; color: var(--texto-2); margin: 0; }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: paso; }
.steps__line { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: rgba(255, 255, 255, .14); }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--azul-300), var(--azul)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.steps.is-in .steps__line span { transform: scaleX(1); }
.step { position: relative; padding-top: 0; }
.step__n {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 30px;
  background: var(--azul-900); border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--f-display); font-weight: 500; color: var(--azul-300); letter-spacing: .06em;
  transition: border-color .6s, background .6s;
}
.steps.is-in .step__n { border-color: var(--azul-300); }
.step h3 { color: #fff; font-size: 1.22rem; font-weight: 500; margin-bottom: 12px; }
.step p { font-size: .97rem; color: rgba(255, 255, 255, .66); margin: 0; }

/* Compromiso (imagen + lista) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split__img { position: relative; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__img::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 46%; height: 46%; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); pointer-events: none; }
.split__badge {
  position: absolute; left: -1px; bottom: 40px; padding: 22px 28px; background: var(--azul); color: #fff; max-width: 280px;
  font-family: var(--f-display); font-size: 1rem; line-height: 1.35;
}
.split__badge b { display: block; font-size: .72rem; letter-spacing: .2em; font-weight: 500; color: var(--azul-100); margin-bottom: 6px; text-transform: uppercase; }
.checks { margin-top: 34px; display: grid; gap: 4px; }
.check { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--gris-200); }
.check:last-child { border-bottom: 1px solid var(--gris-200); }
.check svg { width: 26px; height: 26px; color: var(--azul); margin-top: 2px; }
.check h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.check p { margin: 0; font-size: .96rem; color: var(--texto-2); }

/* Franja CTA */
.cta { position: relative; overflow: hidden; background: var(--azul); color: #fff; padding: clamp(64px, 8vw, 110px) 0; }
.cta__mark { position: absolute; right: -40px; top: 50%; height: 170%; width: auto; transform: translateY(-50%) rotate(8deg); opacity: .1; pointer-events: none; }
.cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { color: #fff; font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 640px; }
.cta p { color: rgba(255, 255, 255, .82); margin: 16px 0 0; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.cta__tel { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; color: #fff; padding: 10px 0; }
.cta__tel svg { width: 22px; height: 22px; }

/* =========================================================
   Pie de página
   ========================================================= */
.footer { background: var(--azul-950); color: rgba(255, 255, 255, .62); font-size: .96rem; }
.footer__top { padding-top: clamp(64px, 8vw, 96px); padding-bottom: 56px; display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1.3fr; gap: 48px; }
.footer__claim { margin-top: 26px; max-width: 300px; line-height: 1.6; }
.footer h4 { color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; }
.footer__contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.footer__contact svg { width: 17px; height: 17px; margin-top: 4px; color: var(--azul-300); }
.footer__bottom { position: relative; padding-top: 26px; padding-bottom: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: .86rem; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, .1); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__legal button { padding: 0; font-size: inherit; line-height: inherit; transition: color .2s; }
.footer__legal button:hover { color: #fff; }

/* =========================================================
   Páginas interiores
   ========================================================= */
.page-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--azul-950); color: #fff; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s linear forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 17, 31, .88) 0%, rgba(4, 17, 31, .5) 60%, rgba(4, 17, 31, .2) 100%), linear-gradient(0deg, rgba(4, 17, 31, .6), transparent 50%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 84px); }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.02em; max-width: 880px; }
.page-hero h1 strong { font-weight: 500; color: var(--azul-300); }
.page-hero p { max-width: 640px; margin: 22px 0 0; color: rgba(255, 255, 255, .82); font-size: 1.15rem; }
.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font-family: var(--f-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: var(--azul-300); }

/* Subnavegación interna (botones al estilo CYMI) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--gris-200); }
.subnav ul { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul li:first-child a { padding-left: 0; }
.subnav a { display: block; white-space: nowrap; padding: 20px 16px; font-family: var(--f-display); font-size: .9rem; color: var(--texto-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover, .subnav a.is-active { color: var(--azul); border-color: var(--azul); }

/* Bloques de área detallada */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.detail + .detail { margin-top: clamp(80px, 10vw, 140px); }
.detail:nth-of-type(even) .detail__img { order: 2; }
.detail__img { position: relative; }
.detail__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.detail__img::before { content: ""; position: absolute; left: -16px; top: -16px; width: 40%; height: 40%; border-left: 2px solid var(--azul); border-top: 2px solid var(--azul); }
.detail__num { font-family: var(--f-display); font-weight: 300; font-size: 4.2rem; line-height: 1; color: var(--azul-100); margin-bottom: 12px; }
.detail h2 { font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 20px; }
.detail__cnae { display: inline-block; margin-bottom: 22px; padding: 5px 12px; background: var(--azul-50); color: var(--azul-700); font-family: var(--f-display); font-size: .75rem; letter-spacing: .12em; }
.ticks { margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ticks li { position: relative; padding-left: 26px; font-size: .98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--azul); }

/* Valores / tarjetas sencillas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; padding: 40px 34px 42px; background: #fff; border: 1px solid var(--gris-200); transition: border-color .3s, box-shadow .3s; }
.card:hover { border-color: var(--azul-100); box-shadow: 0 18px 46px rgba(7, 27, 47, .08); }
.card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; background: linear-gradient(135deg, transparent 50%, var(--azul) 50%); }
.card svg { width: 38px; height: 38px; color: var(--azul); margin-bottom: 24px; stroke-width: 1.3; }
.card h3 { font-size: 1.22rem; font-weight: 500; margin-bottom: 12px; }
.card p { margin: 0; font-size: .97rem; color: var(--texto-2); }
.sec--dark .card { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); }
.sec--dark .card h3 { color: #fff; }
.sec--dark .card p { color: rgba(255, 255, 255, .66); }
.sec--dark .card svg { color: var(--azul-300); }

/* Texto largo (legal, empresa) */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400; margin: 64px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 500; margin: 34px 0 12px; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--azul); }
.prose .tabla { margin: 0 0 1.4em; overflow-x: auto; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--gris-200); text-align: left; vertical-align: top; }
.prose th { background: var(--azul-50); color: var(--tinta); font-family: var(--f-display); font-weight: 500; }
.prose a, .prose .link-btn { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; }
.link-btn { padding: 0; font-size: inherit; line-height: inherit; }
.pend { background: #FFF4D6; color: #6A4B00; padding: 1px 6px; font-size: .92em; }

/* =========================================================
   Contacto
   ========================================================= */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.info-list { display: grid; gap: 0; margin-top: 34px; }
.info { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--gris-200); }
.info:last-child { border-bottom: 1px solid var(--gris-200); }
.info__ic { width: 48px; height: 48px; display: grid; place-items: center; background: var(--azul-50); color: var(--azul); }
.info__ic svg { width: 20px; height: 20px; }
.info h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--texto-2); margin-bottom: 4px; }
.info p, .info a { margin: 0; color: var(--tinta); font-size: 1.05rem; }
.info a:hover { color: var(--azul); }

.form { background: #fff; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--gris-200); position: relative; }
.form::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, var(--azul) 50%); }
.form h2 { font-size: 1.7rem; font-weight: 400; margin-bottom: 8px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-top: 30px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--tinta); }
.field label i { font-style: normal; color: var(--azul); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--gris-200); border-radius: 0; background: var(--gris-100);
  font: inherit; font-size: 1rem; color: var(--tinta); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px rgba(0, 84, 154, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field__err { display: none; font-size: .84rem; color: #B03A2E; }
.field.has-error .field__err { display: block; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--texto-2); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--azul); flex-shrink: 0; }
.consent a { color: var(--azul); text-decoration: underline; text-underline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__note { font-size: .86rem; color: var(--texto-2); margin: 0; }
.form__ok { display: none; margin-top: 20px; padding: 16px 18px; background: var(--azul-50); border-left: 3px solid var(--azul); color: var(--tinta); font-size: .95rem; }
.form__ok.is-visible { display: block; }

.map { position: relative; margin-top: 34px; aspect-ratio: 16 / 10; background: var(--azul-900); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; padding: 28px; color: #fff;
  background-image: linear-gradient(rgba(125, 184, 236, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 184, 236, .08) 1px, transparent 1px);
  background-size: 34px 34px; }
.map__pin { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; }
.map__pin::before, .map__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--azul-300); animation: ping 2.4s ease-out infinite; }
.map__pin::after { animation-delay: 1.2s; }
.map__pin img { width: 22px; height: auto; position: relative; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map__ph p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .7); max-width: 420px; }
.map__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.map__btns .btn, .map__dir .btn { padding: 12px 22px 13px; font-size: .85rem; }
.map__dir { margin-top: 16px; }

/* =========================================================
   Animaciones de aparición
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }
.no-js .reveal { opacity: 1; transform: none; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; background: var(--azul-900); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--azul); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed; left: 22px; bottom: 22px; z-index: 120;
  width: min(480px, calc(100% - 44px));
  max-height: calc(100vh - 44px); overflow-y: auto;
  padding: 28px 28px 26px;
  background: var(--azul-950); border-top: 3px solid var(--azul);
  color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.6;
  box-shadow: 0 18px 50px rgba(4, 17, 31, .35);
  opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookies.is-visible { opacity: 1; transform: none; }
.cookies::after { content: ""; position: absolute; right: 0; bottom: 0; border-left: 22px solid transparent; border-bottom: 22px solid var(--azul); }
.cookies h2 { margin-bottom: 10px; color: #fff; font-size: 1.2rem; font-weight: 500; }
.cookies p { margin-bottom: 20px; }
.cookies a { color: var(--azul-300); text-decoration: underline; text-underline-offset: 3px; }
.cookies a:hover { color: #fff; }
.cookies__btns { display: flex; gap: 12px; }
.cookies__btns .btn { flex: 1 1 0; justify-content: center; padding: 14px 16px 15px; white-space: nowrap; }
.cookies__cfg { margin-top: 16px; padding: 0; color: var(--azul-300); font-family: var(--f-display); font-size: .9rem; letter-spacing: .03em; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.cookies__cfg:hover { color: #fff; }
.cookies__prefs > .cookies__btns { margin-top: 20px; }
.cookies__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
label.cookies__cat { cursor: pointer; }
.cookies__cat b { display: block; margin-bottom: 2px; color: #fff; font-family: var(--f-display); font-weight: 500; }
.cookies__cat span { display: block; font-size: .86rem; line-height: 1.5; }
.cookies__cat em { flex-shrink: 0; margin-top: 2px; color: var(--azul-300); font-size: .78rem; font-style: normal; white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 42px; height: 24px; margin: 2px 0 0; border-radius: 12px; background: rgba(255, 255, 255, .24); cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch:checked { background: var(--azul); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--azul-300); outline-offset: 3px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .header__cta { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .brand__sym { height: 42px; }
  .brand__word { height: 36px; }
  .header { backdrop-filter: none; background: #fff; }
  .burger { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px var(--gutter) 40px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--gris-200); }
  .nav__link { width: 100%; padding: 18px 0; font-size: 1.15rem; }
  .nav__link::after { display: none; }
  .nav__link .chev { display: none; }
  .nav__drop { position: static; min-width: 0; padding: 0 0 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__drop::before { display: none; }
  .nav__drop a { padding: 8px 0 8px 14px; }
  .header__cta { display: inline-flex; margin: 28px 0 0; justify-content: center; }

  .intro, .split, .contact, .detail { grid-template-columns: 1fr; }
  .detail:nth-of-type(even) .detail__img { order: 0; }
  .areas, .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { margin-top: 32px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .client:nth-child(3) { border-left: 0; }
  .client:nth-child(n+3) { border-top: 1px solid var(--gris-200); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__line { display: none; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .split__img img { aspect-ratio: 16 / 11; }
  .hero__dot { padding-right: 14px; font-size: .76rem; }
  .hero__dot::before { right: 14px; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .areas, .cards, .facts, .clients, .steps, .ticks, .form__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding-left: 0; border-left: 0; }
  .fact + .fact { margin-top: 28px; }
  .client + .client { border-left: 0; border-top: 1px solid var(--gris-200); }
  .client { padding: 34px 4px; }
  .hero { min-height: 560px; }
  .hero__content { padding-bottom: 96px; }
  .hero__copy { min-height: 360px; }
  .hero__dots { grid-template-columns: repeat(4, 1fr); }
  .hero__dot { padding: 18px 8px 20px 0; font-size: 0; }
  .hero__dot b { font-size: .72rem; margin: 0; }
  .hero__dot::before { right: 8px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .split__img::after { right: -10px; bottom: -10px; }
  .detail__img::before { left: -10px; top: -10px; }
  .split__badge { position: relative; left: 0; bottom: 0; max-width: none; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
  .brand__word { height: 32px; }
  .brand__sym { height: 38px; }
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 24px); padding: 22px 20px 20px; }
  .cookies__btns .btn { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* El Hero sigue pasando imágenes con suavidad aunque el sistema reduzca las animaciones */
  .hero__scene { transition-duration: 1.6s !important; }
  .hero__scene.is-active .hero__media img { animation-duration: var(--scene-dur, 8s) !important; }
  .hero__dot.is-active::before { animation-duration: var(--scene-dur, 8s) !important; }
  .hero__h .w > span { transition-duration: 1s !important; }
  .hero__p { transition-duration: .8s !important; }
}
