/* =========================================================
   OYM Contratistas y Consultores S.A.C. — Landing informativa
   Paleta tomada del logo y del brochure de la empresa
   ========================================================= */

:root {
    --naranja: #FE6714;      /* engranaje del logo */
    --naranja-hondo: #C2470A;   /* para texto naranja sobre blanco (contraste AA) */
    --ambar: #FCA440;        /* naranja claro del brochure */
    --cielo: #1AA9E4;        /* círculo del logo */
    --noche: #021945;        /* azul marino del brochure */
    --noche-2: #0A2C66;
    --noche-3: #010E2A;
    --lavanda: #C0B2CB;      /* triángulos del brochure */
    --asfalto: #39424F;      /* carretera del logo */
    --papel: #F3F5F9;
    --tinta: #172235;
    --gris: #5A6577;
    --linea: #DCE1EA;
    --blanco: #FFFFFF;

    --f-titulo: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-texto: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

    --ancho: 1200px;
    --radio: 4px;
    --cabecera: 76px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }

[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.saltar {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--noche); color: var(--blanco); padding: 10px 16px; border-radius: var(--radio);
}
.saltar:focus { top: 12px; }

.envoltura { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }

/* ---------- Tipografía ---------- */
.titulo {
    font-family: var(--f-titulo);
    font-weight: 800;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--noche);
    max-width: 18ch;
    margin-bottom: 0.6em;
}
.titulo--centro { text-align: center; margin-inline: auto; }
.titulo--claro { color: var(--blanco); }

.destacado { font-size: 1.25rem; line-height: 1.5; color: var(--noche); font-weight: 500; }

.enlace {
    color: var(--naranja-hondo); font-weight: 700; text-decoration: underline;
    text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.enlace:hover { color: var(--noche); }

/* ---------- Botones ---------- */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 12px 26px;
    font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em;
    text-decoration: none; border: 2px solid transparent; border-radius: var(--radio);
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.boton:active { transform: translateY(1px); }
.boton--naranja { background: var(--naranja); color: var(--noche); }
.boton--naranja:hover { background: var(--ambar); }
.boton--linea { border-color: rgba(255, 255, 255, .55); color: var(--blanco); }
.boton--linea:hover { border-color: var(--blanco); background: rgba(255, 255, 255, .08); }
.boton--noche { background: var(--noche); color: var(--blanco); }
.boton--noche:hover { background: var(--noche-2); }

/* ---------- Triángulos del brochure ---------- */
.triangulo { position: absolute; display: block; pointer-events: none; }
.triangulo--lavanda { background: var(--lavanda); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.triangulo--noche { background: var(--noche); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* =========================================================
   CABECERA
   ========================================================= */
.cabecera {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    transition: box-shadow .25s;
}
.cabecera.es-flotante { box-shadow: 0 6px 24px rgba(2, 25, 69, .10); }

.cabecera__fila { display: flex; align-items: center; gap: 24px; height: var(--cabecera); }

.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--noche); margin-right: auto; }
.marca__logo { width: 56px; height: auto; }
.marca__texto { display: flex; flex-direction: column; line-height: 1; }
.marca__texto strong { font-family: var(--f-titulo); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.02em; }
.marca__texto small { font-family: var(--f-titulo); font-weight: 600; font-size: .86rem; color: var(--gris); margin-top: 3px; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu__lista { display: flex; gap: 26px; }
.menu__enlace {
    position: relative; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--tinta);
    padding: 6px 0;
}
.menu__enlace::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--naranja); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu__enlace:hover::after, .menu__enlace.es-activo::after { transform: scaleX(1); }
.menu__enlace.es-activo { color: var(--noche); }

.menu__telefono {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-family: var(--f-titulo); font-weight: 700; font-size: 1.15rem; color: var(--noche);
}
.menu__telefono svg { width: 18px; height: 18px; fill: var(--naranja); }
.menu__cta { min-height: 44px; padding: 8px 18px; font-size: 1.05rem; }

/* cable inferior de la cabecera: la energía avanza con el scroll */
.cabecera__cable { position: relative; height: 3px; background: var(--linea); overflow: hidden; }
.cabecera__energia {
    position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--naranja), var(--ambar));
}
.cabecera__energia::after {
    content: ""; position: absolute; right: 0; top: -3px; width: 26px; height: 9px;
    background: radial-gradient(closest-side, #fff7, transparent);
}

.menu-boton {
    display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
    border-radius: var(--radio); position: relative;
}
.menu-boton__barras, .menu-boton__barras::before, .menu-boton__barras::after {
    position: absolute; left: 12px; width: 24px; height: 2.5px; background: var(--noche);
    border-radius: 2px; transition: transform .25s, opacity .2s; content: "";
}
.menu-boton__barras { top: 23px; }
.menu-boton__barras::before { left: 0; top: -8px; }
.menu-boton__barras::after { left: 0; top: 8px; }
.menu-boton[aria-expanded="true"] .menu-boton__barras { background: transparent; }
.menu-boton[aria-expanded="true"] .menu-boton__barras::before { transform: translateY(8px) rotate(45deg); }
.menu-boton[aria-expanded="true"] .menu-boton__barras::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO: la línea de transmisión al atardecer
   ========================================================= */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    color: var(--blanco);
    background:
        radial-gradient(120% 70% at 50% 118%, rgba(254, 103, 20, .62) 0%, rgba(252, 164, 64, .22) 38%, transparent 66%),
        radial-gradient(60% 50% at 85% 10%, rgba(26, 169, 228, .22), transparent 70%),
        linear-gradient(180deg, var(--noche-3) 0%, var(--noche) 45%, var(--noche-2) 100%);
    padding: clamp(56px, 8vw, 104px) 0 clamp(190px, 26vw, 330px);
}

.hero__rejilla { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero__empresa {
    font-family: var(--f-titulo); font-weight: 600; font-size: 1.2rem; color: var(--ambar);
    margin-bottom: 14px;
}
.hero__titulo {
    font-family: var(--f-titulo); font-weight: 800;
    font-size: clamp(3.1rem, 7.4vw, 6.4rem);
    line-height: .92; letter-spacing: -0.015em;
    max-width: 11ch; margin-bottom: 26px;
    text-wrap: balance;
}
.hero__bajada { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 52ch; color: rgba(255, 255, 255, .86); margin-bottom: 32px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* Foto en triángulo: la silueta de la torre */
.hero__foto { position: relative; margin: 0; aspect-ratio: 1 / .94; }
.hero__foto img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hero__marco {
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
    transform: translate(18px, 14px);
}
.hero__marco polygon { fill: none; stroke: var(--naranja); stroke-width: 3; }
.hero__acento { width: 70px; height: 62px; left: -10px; top: 6%; z-index: 1; }

/* SVG de torres y conductores */
.hero__linea {
    position: absolute; left: 0; right: 0; bottom: -2px; z-index: 3;
    width: 100%; height: clamp(220px, 30vw, 380px);
}
.torre__trazo { fill: none; stroke: #010A1F; stroke-width: 2.4; stroke-linejoin: round; }
.torre__aislador { fill: none; stroke: #010A1F; stroke-width: 2; }
.torre__discos ellipse { fill: #010A1F; }
.linea__cable {
    fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 1.3;
    stroke-dasharray: 1000; stroke-dashoffset: 1000;
    animation: tender 2.4s cubic-bezier(.6, .1, .2, 1) forwards;
    animation-delay: calc(.25s + var(--i) * .12s);
}
.linea__pulso {
    fill: none; stroke: var(--ambar); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 14 986; stroke-dashoffset: 1000; opacity: 0;
    filter: drop-shadow(0 0 4px var(--naranja)) drop-shadow(0 0 10px rgba(254, 103, 20, .8));
    animation: energia 4.2s linear infinite;
    animation-delay: calc(2.6s + var(--i) * .55s);
}
@keyframes tender { to { stroke-dashoffset: 0; } }
@keyframes energia {
    0% { stroke-dashoffset: 1000; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Entrada del texto: un solo momento orquestado */
.hero__texto > * { animation: aparecer .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__texto > :nth-child(2) { animation-delay: .1s; }
.hero__texto > :nth-child(3) { animation-delay: .22s; }
.hero__texto > :nth-child(4) { animation-delay: .34s; }
.hero__foto { animation: aparecer 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FRENTES
   ========================================================= */
.frentes { background: var(--noche-3); color: var(--blanco); }
.frentes__rejilla { display: grid; grid-template-columns: repeat(4, 1fr); }
.frente {
    display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; align-content: start;
    padding: 30px 26px; text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .2s;
}
.frente:last-child { border-right: 1px solid rgba(255, 255, 255, .1); }
.frente:hover { background: rgba(255, 255, 255, .05); }
.frente__icono { grid-row: span 2; width: 44px; height: 44px; fill: none; stroke: var(--naranja); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.frente__titulo { font-family: var(--f-titulo); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.frente__texto { font-size: .95rem; color: rgba(255, 255, 255, .7); line-height: 1.45; }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.seccion { padding: clamp(72px, 9vw, 120px) 0; }

/* ---------- Nosotros ---------- */
.nosotros__rejilla { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.nosotros__texto > p:not(.destacado) { color: #3B4658; max-width: 62ch; }

.normas { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--linea); }
.normas__intro { font-size: .98rem; color: var(--gris); max-width: 60ch; }
.normas__lista { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.norma {
    display: flex; flex-direction: column; line-height: 1.15;
    padding: 12px 18px 12px 16px; border-left: 4px solid var(--naranja); background: var(--papel);
}
.norma strong { font-family: var(--f-titulo); font-weight: 800; font-size: 1.35rem; color: var(--noche); }
.norma span { font-size: .86rem; color: var(--gris); }

.nosotros__fotos { position: relative; aspect-ratio: 1 / 1.05; }
.tri-foto { position: absolute; overflow: hidden; }
.tri-foto img { width: 100%; height: 100%; object-fit: cover; }
.tri-foto--arriba { inset: 0 18% 22% 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tri-foto--abajo { inset: 40% 0 0 36%; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tri-foto--abajo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(254, 103, 20, .25), transparent 60%); }
.nosotros__acento1 { width: 64px; height: 56px; right: 6%; top: 4%; }
.nosotros__acento2 { width: 46px; height: 40px; left: 4%; bottom: 6%; }

/* ---------- Misión y visión ---------- */
.mision { padding-bottom: clamp(72px, 9vw, 120px); }
.mision__rejilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.panel { position: relative; padding: clamp(32px, 4vw, 52px); border-radius: var(--radio); overflow: hidden; }
.panel::after {
    content: ""; position: absolute; right: -30px; bottom: -36px; width: 200px; height: 176px;
    background: currentColor; opacity: .07; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.panel--naranja { background: var(--naranja); color: var(--noche); }
.panel--noche { background: var(--noche); color: var(--blanco); }
.panel__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; margin-bottom: 22px; }
.panel__lista { display: grid; gap: 14px; }
.panel__lista li { position: relative; padding-left: 28px; font-weight: 500; font-size: 1.06rem; line-height: 1.5; }
.panel__lista li::before {
    content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 10px;
    background: var(--noche); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.panel__vision { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.3; margin: 0; }

/* ---------- Valores colgados del cable ---------- */
.valores { background: var(--papel); overflow: hidden; }
.valores__tendido { position: relative; margin-top: 36px; }
.valores__cable { position: absolute; left: 0; top: 0; width: 100%; height: 80px; overflow: visible; }
.valores__cable path { fill: none; stroke: var(--noche); stroke-width: 2.5; }
.valores__lista { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.valor { position: relative; padding: calc(var(--caida) + 46px) 8px 0; }
/* cadena de aisladores */
.valor::before {
    content: ""; position: absolute; left: 50%; top: var(--caida); width: 16px; height: 46px; transform: translateX(-50%);
    background:
        linear-gradient(var(--noche), var(--noche)) center / 2px 100% no-repeat,
        repeating-linear-gradient(180deg, transparent 0 5px, var(--asfalto) 5px 9px) center 6px / 16px 32px no-repeat;
    border-radius: 3px;
}
.valor__tarjeta {
    position: relative; height: 100%;
    background: var(--blanco); padding: 26px 22px 24px; border-top: 4px solid var(--naranja);
    box-shadow: 0 10px 30px rgba(2, 25, 69, .07);
    transform-origin: 50% -46px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.valor:hover .valor__tarjeta { transform: rotate(-1.6deg); }
.valor:nth-child(even):hover .valor__tarjeta { transform: rotate(1.6deg); }
.valor__nombre { font-family: var(--f-titulo); font-weight: 800; font-size: 1.55rem; line-height: 1.05; color: var(--noche); margin-bottom: 10px; }
.valor__texto { font-size: .97rem; color: #46526A; margin: 0; line-height: 1.5; }

/* ---------- Servicios ---------- */
.servicios__cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.servicios__cabeza .titulo { margin-bottom: 0; }
.servicios__cabeza p { color: var(--gris); max-width: 46ch; margin: 0; }

.pestanas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 2px solid var(--linea); }
.pestana {
    position: relative; background: transparent; border: 0; cursor: pointer; text-align: left;
    padding: 18px 20px 16px; font-family: var(--f-titulo); font-weight: 700; font-size: 1.25rem; line-height: 1.1;
    color: var(--gris); transition: color .2s, background-color .2s;
}
.pestana::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--naranja);
    transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.pestana:hover { color: var(--noche); background: var(--papel); }
.pestana[aria-selected="true"] { color: var(--noche); }
.pestana[aria-selected="true"]::after { transform: scaleX(1); }

.servicio { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; padding-top: 40px; align-items: start; }
.servicio:not([hidden]) { animation: panel .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.servicio__foto { position: sticky; top: calc(var(--cabecera) + 24px); margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.servicio__foto img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
.servicio__foto::after {
    content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 30%;
    background: var(--naranja); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .95;
}
.servicio__titulo { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; color: var(--noche); margin-bottom: 12px; }
.servicio__intro { font-size: 1.12rem; color: #3B4658; max-width: 56ch; }
.servicio__grupos { display: grid; gap: 28px 36px; margin: 28px 0 32px; }
.servicio__grupos--2, .servicio__grupos--3 { grid-template-columns: 1fr 1fr; }
.servicio__grupos--3 .grupo:last-child { grid-column: 1 / -1; }
.grupo__titulo {
    font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; color: var(--naranja-hondo);
    padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--linea);
}
.grupo__lista { display: grid; gap: 9px; }
.grupo__lista li { position: relative; padding-left: 20px; font-size: .99rem; line-height: 1.45; color: #2C374A; }
.grupo__lista li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 8px;
    background: var(--naranja); clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Obras en campo ---------- */
.obras { background: var(--noche); color: var(--blanco); position: relative; }
.obras__cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.obras__cabeza .titulo { margin-bottom: 0; }
.obras__cabeza p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 48ch; }

.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; grid-auto-flow: dense; }
.galeria__item--alta { grid-row: span 2; }
.galeria__item--ancha { grid-column: span 2; }
.galeria__boton {
    position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
    overflow: hidden; background: var(--noche-3); border-radius: 2px;
}
.galeria__boton img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.galeria__boton:hover img, .galeria__boton:focus-visible img { transform: scale(1.05); }
.galeria__leyenda {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left;
    font-weight: 600; font-size: .95rem; line-height: 1.3;
    background: linear-gradient(180deg, transparent, rgba(1, 14, 42, .88));
}

.visor { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.visor::backdrop { background: rgba(1, 10, 31, .9); }
.visor__figura { margin: 0; }
.visor__imagen { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 2px; }
.visor__leyenda { color: var(--blanco); text-align: center; padding: 14px 0 0; font-weight: 600; }
.visor__control {
    position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--naranja); color: var(--noche); font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.visor__control--cerrar { top: 18px; right: 18px; }
.visor__control--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.visor__control--next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Sedes: perfil de elevación ---------- */
.sedes { background: linear-gradient(180deg, #E6F4FB 0%, var(--papel) 70%); }
.sedes__cabeza { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.sedes__cabeza .titulo { margin-bottom: 0; }
.sedes__cabeza p { color: var(--gris); margin: 0; }

.perfil { position: relative; margin: 30px 0 0; }
.perfil__svg { width: 100%; height: auto; display: block; }
.perfil__fondo { fill: var(--lavanda); opacity: .55; }
.perfil__terreno { fill: var(--noche); }
.perfil__cresta { fill: none; stroke: var(--cielo); stroke-width: 2; opacity: .7; }
.perfil__torre { fill: none; stroke: var(--noche); stroke-width: 2.2; stroke-linejoin: round; }
.perfil__cable { fill: none; stroke: var(--noche); stroke-width: 1.6; }
.perfil__pulso {
    fill: none; stroke: var(--naranja); stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 22 978; stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 5px rgba(254, 103, 20, .9));
    animation: energia 5.5s linear infinite;
}
.perfil__nodo { fill: var(--naranja); stroke: var(--blanco); stroke-width: 4; }
.perfil__etiqueta {
    position: absolute; display: flex; flex-direction: column; line-height: 1;
    font-family: var(--f-titulo); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.8rem); color: var(--noche);
}
.perfil__etiqueta small { font-weight: 600; font-size: .58em; color: var(--gris); margin-top: 4px; }
.perfil__etiqueta--lima { left: 4%; top: 50%; }
.perfil__etiqueta--juliaca { right: 2%; top: 4%; text-align: right; align-items: flex-end; }

.sedes__rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -2px; }
.sede { background: var(--blanco); padding: 30px 32px; border-top: 4px solid var(--cielo); }
.sede__nombre { font-family: var(--f-titulo); font-weight: 800; font-size: 1.7rem; color: var(--noche); line-height: 1; }
.sede__region { color: var(--gris); font-size: .95rem; margin: 6px 0 14px; }
.sede__direccion { font-style: normal; font-size: 1.08rem; margin-bottom: 16px; }

/* ---------- Contacto ---------- */
.contacto {
    background:
        radial-gradient(80% 90% at 0% 100%, rgba(254, 103, 20, .22), transparent 60%),
        var(--noche);
    color: var(--blanco);
}
.contacto__rejilla { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contacto__info > p { color: rgba(255, 255, 255, .75); max-width: 44ch; }
.datos { display: grid; gap: 22px; margin-top: 34px; }
.dato { display: flex; flex-direction: column; gap: 2px; }
.dato__rotulo { font-size: .9rem; color: var(--ambar); font-weight: 600; }
.dato__valor { font-size: 1.15rem; text-decoration: none; color: var(--blanco); word-break: break-word; }
a.dato__valor:hover { text-decoration: underline; }
.dato__valor--grande { font-family: var(--f-titulo); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }

.formulario {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
    background: var(--blanco); color: var(--tinta); padding: clamp(26px, 3.4vw, 42px); border-radius: var(--radio);
    border-top: 6px solid var(--naranja);
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo--completo { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .95rem; color: var(--noche); }
.opcional { font-weight: 400; color: var(--gris); }
.campo input, .campo select, .campo textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #C9D0DC; border-radius: var(--radio); background: var(--blanco);
    transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--cielo); box-shadow: 0 0 0 3px rgba(26, 169, 228, .25); }
.campo [aria-invalid="true"] { border-color: #C62828; }
.formulario__error { grid-column: 1 / -1; color: #B42318; font-weight: 600; margin: 0; }
.formulario__enviar { grid-column: 1 / -1; justify-self: start; }

/* =========================================================
   PIE
   ========================================================= */
.pie { position: relative; background: var(--noche-3); color: rgba(255, 255, 255, .78); padding: 70px 0 0; }
.pie__cable { position: absolute; top: 0; left: 0; width: 100%; height: 60px; }
.pie__cable path { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.pie__rejilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.pie__marca img { width: 110px; margin-bottom: 14px; }
.pie__nombre { font-family: var(--f-titulo); font-weight: 700; font-size: 1.25rem; color: var(--blanco); margin-bottom: 4px; }
.pie__eslogan { font-style: italic; color: var(--ambar); }
.pie__titulo { font-family: var(--f-titulo); font-weight: 700; font-size: 1.2rem; color: var(--blanco); margin-bottom: 14px; }
.pie__lista { display: grid; gap: 9px; font-size: .96rem; }
.pie__lista a { text-decoration: none; }
.pie__lista a:hover { color: var(--ambar); }
.pie__sede { display: block; color: var(--blanco); font-weight: 600; }
.pie__legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    padding: 20px 0 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .55);
}
.pie__legal p { margin: 0; }

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.whatsapp {
    position: fixed; right: 22px; bottom: 22px; z-index: 150;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.whatsapp__icono {
    position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
    background: #25D366; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .25s;
}
.whatsapp__icono::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
    animation: onda 2.6s ease-out infinite;
}
.whatsapp__icono svg { width: 34px; height: 34px; fill: var(--blanco); }
.whatsapp:hover .whatsapp__icono { transform: scale(1.07); }
.whatsapp__etiqueta {
    background: var(--blanco); color: var(--noche); font-weight: 700; font-size: .95rem;
    padding: 10px 16px; border-radius: 30px; box-shadow: 0 8px 22px rgba(2, 25, 69, .18);
    opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap;
}
.whatsapp:hover .whatsapp__etiqueta, .whatsapp:focus-visible .whatsapp__etiqueta, .whatsapp.es-saludo .whatsapp__etiqueta { opacity: 1; transform: none; }
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
    .menu__telefono { display: none; }
}

@media (max-width: 1024px) {
    .frentes__rejilla { grid-template-columns: 1fr 1fr; }
    .frente { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .frente:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, .1); }
    .valores__lista { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .valores__cable { display: none; }
    .valor { --caida: 0px !important; padding-top: 46px; }
    .valor::before { top: 0; }
    .valores__tendido { border-top: 2.5px solid var(--noche); padding-top: 0; }
    .pie__rejilla { grid-template-columns: 1fr 1fr; }
    .galeria { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    :root { --cabecera: 68px; }
    .menu-boton { display: block; }
    .menu {
        position: fixed; left: 0; right: 0; top: calc(var(--cabecera) + 3px); bottom: 0;
        flex-direction: column; align-items: stretch; gap: 0; padding: 20px 20px 40px;
        background: var(--blanco); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
    }
    .menu.es-abierto { transform: none; opacity: 1; visibility: visible; }
    .menu__lista { flex-direction: column; gap: 0; }
    .menu__enlace { display: block; padding: 16px 4px; font-family: var(--f-titulo); font-size: 1.6rem; font-weight: 700; border-bottom: 1px solid var(--linea); }
    .menu__enlace::after { display: none; }
    .menu__telefono { display: inline-flex; margin: 24px 0 14px; font-size: 1.4rem; }
    .menu__cta { min-height: 52px; }

    .hero__rejilla { grid-template-columns: 1fr; gap: 36px; }
    .hero__foto { max-width: 420px; width: 80%; justify-self: center; }
    .nosotros__rejilla, .mision__rejilla, .contacto__rejilla { grid-template-columns: 1fr; gap: 40px; }
    .nosotros__fotos { max-width: 520px; width: 100%; justify-self: center; }
    .servicios__cabeza, .obras__cabeza, .sedes__cabeza { grid-template-columns: 1fr; gap: 14px; }
    .pestanas { grid-template-columns: 1fr 1fr; border-bottom: 0; }
    .pestana { border-bottom: 2px solid var(--linea); }
    .servicio { grid-template-columns: 1fr; gap: 28px; }
    .servicio__foto { position: relative; top: 0; aspect-ratio: 16 / 9; }
    .sedes__rejilla { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .marca__texto small { display: none; }
    .frentes__rejilla { grid-template-columns: 1fr; }
    .frente { border-right: 1px solid rgba(255, 255, 255, .1); }
    .valores__lista { grid-template-columns: 1fr; }
    .servicio__grupos--2, .servicio__grupos--3 { grid-template-columns: 1fr; }
    .pestana { font-size: 1.08rem; padding: 14px 12px; }
    .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .galeria__item--ancha { grid-column: span 2; }
    .formulario { grid-template-columns: 1fr; }
    .perfil__etiqueta--lima { top: 40%; }
    .pie__rejilla { grid-template-columns: 1fr; }
    .whatsapp { right: 16px; bottom: 16px; }
    .whatsapp__etiqueta { display: none; }
    .hero__acciones .boton { flex: 1 1 100%; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .linea__cable { stroke-dashoffset: 0; }
    .linea__pulso, .perfil__pulso { display: none; }
}
