/*!
 * egp.css — diseño 2026 de egpiconstrucciones.com
 *
 * Lo usan tres tipos de pagina:
 *   - El inicio y /proyectos/ (body.egp): paginas hechas a mano, sin Elementor.
 *   - Las paginas de Elementor (fichas de proyecto, nosotros, contacto, blog):
 *     solo toman de aqui el encabezado (.egp-header), el menu (.egp-menu) y el
 *     pie (.egp-footer). Por eso todo va con clase propia y nada toca etiquetas
 *     sueltas fuera de body.egp: asi no se mueve el diseño de Elementor.
 * El kit de Elementor pinta los <a>, <button> y <h*> con especificidad (0,1,1)
 * a (0,2,1); los selectores del encabezado y el pie van con dos clases o mas
 * para ganarle sin !important.
 *
 * Colores y tipografias: los de la marca (kit de Elementor 1755).
 */

/* ---- Tipografias (archivos locales en /_external) ---- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../_external/fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yygg_vb.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../_external/fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko40yygg_vbd-E.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../_external/fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../_external/fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Marca ---- */
:root {
  --egp-azul: #044887;
  --egp-azul-hondo: #03396b;      /* azul de marca, un paso mas oscuro: hover */
  --egp-tinta: #0F2740;          /* texto: azul marino (antes casi negro) */
  --egp-azul-claro: #E8F0F8;      /* azul de marca al 9 % sobre blanco */
  --egp-cian: #10A0D6;
  --egp-arena: #B89F7E;
  --egp-arena-osc: #A4845A;
  --egp-arena-clara: #EFEAE3;     /* arena al 22 % sobre blanco */
  --egp-pizarra: #374755;
  --egp-acero: #566E84;
  --egp-niebla: #F2F5F7;
  --egp-linea: #DDE5EA;
  --egp-wa: #25D366;
  --egp-wa-texto: #06301a;

  --egp-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --egp-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --egp-ancho: 1240px;
  --egp-margen: clamp(20px, 4vw, 48px);
  --egp-barra: 76px;
  --egp-suave: cubic-bezier(.2, .7, .1, 1);
  --egp-sec: clamp(76px, 9vw, 136px);
}
@media (max-width: 860px) {
  :root { --egp-barra: 64px; }
}

/* ================================================================== *
 * Base de las paginas nuevas (body.egp)
 * ================================================================== */
.egp {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--egp-sans);
  color: var(--egp-tinta);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Reinicio con :where() (especificidad 0): cualquier clase de componente le gana */
:where(.egp) *, :where(.egp) *::before, :where(.egp) *::after { box-sizing: border-box; }
:where(.egp) :where(img, svg, picture) { display: block; max-width: 100%; }
:where(.egp) img { height: auto; }
:where(.egp) :where(h1, h2, h3, h4) {
  margin: 0;
  font-family: var(--egp-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: inherit;
  text-wrap: balance;
}
:where(.egp) p { margin: 0; text-wrap: pretty; }
:where(.egp) :where(ul, ol, dl, dd, figure) { margin: 0; padding: 0; list-style: none; }
:where(.egp) a { color: inherit; }
:where(.egp) :where(button, select) { font: inherit; color: inherit; }
.egp :target { scroll-margin-top: calc(var(--egp-barra) + 16px); }
html:has(body.egp) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(body.egp) { scroll-behavior: auto; }
}

.egp-wrap {
  width: min(100% - 2 * var(--egp-margen), var(--egp-ancho));
  margin-inline: auto;
}

.egp-saltar {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10001;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--egp-tinta);
  font: 600 15px/1 var(--egp-sans);
  text-decoration: none;
}
.egp-saltar:focus { top: 12px; }

/* Foco visible en todo lo nuevo */
.egp :focus-visible,
.egp-header :focus-visible,
.egp-menu :focus-visible,
.egp-footer :focus-visible {
  outline: 3px solid var(--egp-cian);
  outline-offset: 3px;
}

.egp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Botones ---- */
a.egp-btn,
button.egp-btn,
.egp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: .85em 1.45em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .975rem/1.1 var(--egp-sans);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--egp-suave);
}
.egp-btn svg { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.egp-btn:active { transform: translateY(1px); }

.egp-btn.egp-btn--azul,
.egp-btn.egp-btn--azul:focus { background: var(--egp-azul); color: #fff; }
.egp-btn.egp-btn--azul:hover { background: var(--egp-azul-hondo); color: #fff; }

.egp-btn.egp-btn--wa,
.egp-btn.egp-btn--wa:focus { background: var(--egp-wa); color: var(--egp-wa-texto); }
.egp-btn.egp-btn--wa:hover { background: #1fc25c; color: var(--egp-wa-texto); box-shadow: 0 10px 26px rgba(37, 211, 102, .32); }
/* El icono de WhatsApp saluda al pasar el mouse (como el boton flotante) */
.egp-btn.egp-btn--wa:hover svg,
.egp-btn.egp-btn--wa:focus-visible svg { animation: egp-wa-saludo .8s ease-in-out; }
.egp-btn--wa svg { transform-origin: 50% 55%; }
@keyframes egp-wa-saludo {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(13deg); }
  60% { transform: rotate(-9deg); }
  80% { transform: rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .egp-btn.egp-btn--wa:hover svg,
  .egp-btn.egp-btn--wa:focus-visible svg { animation: none; }
}

.egp-btn.egp-btn--claro,
.egp-btn.egp-btn--claro:focus { background: #fff; color: var(--egp-tinta); }
.egp-btn.egp-btn--claro:hover { background: var(--egp-azul-claro); color: var(--egp-azul); }

.egp-btn.egp-btn--linea,
.egp-btn.egp-btn--linea:focus { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.egp-btn.egp-btn--linea:hover { background: #fff; color: var(--egp-tinta); border-color: #fff; }

.egp-btn.egp-btn--borde,
.egp-btn.egp-btn--borde:focus { background: transparent; color: var(--egp-tinta); border-color: #c5d2db; }
.egp-btn.egp-btn--borde:hover { background: var(--egp-azul); color: #fff; border-color: var(--egp-azul); }

/* Solo icono (WhatsApp de cada tarjeta) */
.egp-btn.egp-btn--icono { width: 50px; padding: 0; }

/* ================================================================== *
 * Encabezado (todas las paginas)
 * ================================================================== */
.egp-header,
.egp-header *,
.egp-menu,
.egp-menu *,
.egp-footer,
.egp-footer * { box-sizing: border-box; }

.egp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9995;
  color: #fff;
  font-family: var(--egp-sans);
  transition: transform .45s var(--egp-suave), background-color .35s ease, box-shadow .35s ease;
}
/* Sombra suave arriba para leer el menu sobre cualquier foto */
.egp-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px;
  background: linear-gradient(rgba(2, 36, 68, .5), rgba(2, 36, 68, 0));
  pointer-events: none;
  transition: opacity .35s ease;
}
.egp-header.is-solido {
  background: rgba(4, 72, 135, .94);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.egp-header.con-panel {
  background: var(--egp-azul-hondo);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.egp-header.is-solido::before,
.egp-header.con-panel::before { opacity: 0; }
.egp-header.is-oculto { transform: translateY(-100%); }
body.egp-menu-abierto .egp-header { transform: none; }

.egp-header__barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--egp-barra);
  width: min(100% - 2 * var(--egp-margen), 1360px);
  margin-inline: auto;
}

/* Marca: el icono del logo recortado del PNG + el nombre en texto */
.egp-header a.egp-marca,
.egp-footer a.egp-marca,
.egp-menu a.egp-marca {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  flex: none;
}
.egp-marca__icono {
  --alto: 38px;
  position: relative;
  display: block;
  width: calc(var(--alto) * 159 / 232);
  height: var(--alto);
  overflow: hidden;
  flex: none;
}
.egp-marca__icono img {
  position: absolute;
  left: calc(var(--alto) * -179 / 232);
  top: calc(var(--alto) * -146 / 232);
  width: calc(var(--alto) * 512 / 232);
  max-width: none;
  height: auto;
}
.egp-marca__nombre {
  display: flex;
  flex-direction: column;
  font: 700 1.125rem/1 var(--egp-display);
  letter-spacing: -.02em;
}
.egp-marca__nombre small {
  margin-top: 4px;
  font: 500 .6875rem/1 var(--egp-sans);
  letter-spacing: .01em;
  opacity: .78;
}

/* Navegacion de escritorio */
.egp-nav { margin-left: auto; }
.egp-nav__lista {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.egp-header a.egp-nav__enlace,
.egp-header button.egp-nav__enlace,
.egp-header button.egp-nav__enlace:hover,
.egp-header button.egp-nav__enlace:focus {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font: 500 .9375rem/1 var(--egp-sans);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.egp-header a.egp-nav__enlace:hover,
.egp-header button.egp-nav__enlace:hover,
.egp-header button.egp-nav__enlace[aria-expanded="true"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
.egp-header .egp-nav__enlace[aria-current] { color: #fff; }
.egp-header .egp-nav__enlace[aria-current]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--egp-cian);
}
.egp-nav__flecha {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .3s var(--egp-suave);
}
.egp-header [aria-expanded="true"] .egp-nav__flecha { transform: rotate(180deg); }

.egp-header__acciones { display: flex; align-items: center; gap: 10px; flex: none; }
.egp-header a.egp-btn { min-height: 44px; padding: .7em 1.2em; font-size: .9rem; }

/* Panel "Proyectos" (escritorio) */
.egp-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 26px 0 30px;
  background: var(--egp-azul-hondo);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .35s var(--egp-suave), visibility 0s linear .35s;
}
.egp-mega.is-abierto {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .35s var(--egp-suave), visibility 0s;
}
.egp-mega__interior {
  width: min(100% - 2 * var(--egp-margen), 1360px);
  margin-inline: auto;
}
.egp-mega__lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.egp-header a.egp-mega__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease;
}
.egp-header a.egp-mega__item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.egp-mega__item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  max-width: none;
}
.egp-mega__nombre { display: block; font: 600 .9375rem/1.25 var(--egp-display); letter-spacing: -.01em; }
.egp-mega__lugar { display: block; margin-top: 3px; font: 400 .8125rem/1.3 var(--egp-sans); color: rgba(255, 255, 255, .64); }
.egp-mega__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}
.egp-header a.egp-mega__todos { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--egp-cian); }
.egp-header a.egp-mega__todos:hover { color: var(--egp-cian); }

/* Boton de menu (movil) */
.egp-header button.egp-hamburguesa,
.egp-header button.egp-hamburguesa:hover,
.egp-header button.egp-hamburguesa:focus {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(4, 72, 135, .35);
  color: #fff;
  cursor: pointer;
}
.egp-hamburguesa span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--egp-suave), opacity .2s ease;
}
.egp-hamburguesa span:nth-child(1) { top: 16px; }
.egp-hamburguesa span:nth-child(2) { top: 22px; }
.egp-hamburguesa span:nth-child(3) { top: 28px; }
.egp-hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.egp-hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.egp-hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .egp-nav, .egp-header__acciones { display: none; }
  .egp-header button.egp-hamburguesa,
  .egp-header button.egp-hamburguesa:hover,
  .egp-header button.egp-hamburguesa:focus { display: block; }
  .egp-mega { display: none; }
}
@media (max-width: 420px) {
  .egp-marca__nombre small { display: none; }
}

/* ---- Menu de pantalla completa (movil y tableta) ---- */
.egp-menu {
  position: fixed;
  inset: 0;
  z-index: 9994;
  display: flex;
  flex-direction: column;
  padding: calc(var(--egp-barra) + 12px) var(--egp-margen) calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--egp-azul);
  color: #fff;
  font-family: var(--egp-sans);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.egp-menu.is-abierto { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
body.egp-menu-abierto { overflow: hidden; }
.egp-menu__principal { margin: 0; padding: 0; list-style: none; }
.egp-menu__principal > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.egp-menu a.egp-menu__enlace {
  display: block;
  padding: 16px 0;
  color: #fff;
  font: 700 1.625rem/1.15 var(--egp-display);
  letter-spacing: -.02em;
  text-decoration: none;
}
.egp-menu a.egp-menu__enlace[aria-current="page"] { color: var(--egp-cian); }
.egp-menu__proyectos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.egp-menu a.egp-menu__proyecto {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, .78);
  font-size: .975rem;
  line-height: 1.3;
  text-decoration: none;
}
.egp-menu a.egp-menu__proyecto small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.egp-menu__contacto { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.egp-menu__contacto .egp-btn { width: 100%; }
.egp-menu__datos { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.egp-menu__datos a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.egp-menu__datos a:hover { color: #fff; }
.egp-menu.is-abierto .egp-menu__principal > li {
  animation: egp-entra .5s var(--egp-suave) both;
}
.egp-menu.is-abierto .egp-menu__principal > li:nth-child(2) { animation-delay: .04s; }
.egp-menu.is-abierto .egp-menu__principal > li:nth-child(3) { animation-delay: .08s; }
.egp-menu.is-abierto .egp-menu__principal > li:nth-child(4) { animation-delay: .12s; }
.egp-menu.is-abierto .egp-menu__principal > li:nth-child(5) { animation-delay: .16s; }
@keyframes egp-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 1081px) { .egp-menu { display: none; } }

/* ================================================================== *
 * Pie (todas las paginas)
 * ================================================================== */
.egp-footer {
  position: relative;
  background: var(--egp-azul);
  color: rgba(255, 255, 255, .72);
  font: 400 .9375rem/1.6 var(--egp-sans);
  padding: clamp(56px, 7vw, 88px) 0 28px;
}
.egp-footer__grid {
  width: min(100% - 2 * var(--egp-margen), var(--egp-ancho));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr 1.1fr;
  gap: 40px;
}
.egp-footer__texto { max-width: 34ch; margin: 18px 0 22px; }
.egp-footer__titulo {
  margin: 0 0 14px;
  color: #fff;
  font: 600 .9375rem/1.3 var(--egp-display);
  letter-spacing: 0;
}
.egp-footer__lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.egp-footer a.egp-footer__enlace,
.egp-footer address a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s ease;
}
.egp-footer a.egp-footer__enlace:hover,
.egp-footer address a:hover { color: #fff; }
.egp-footer address { font-style: normal; display: grid; gap: 8px; margin-bottom: 20px; }
.egp-footer__redes { display: flex; gap: 10px; }
.egp-footer a.egp-footer__red {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.egp-footer a.egp-footer__red:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; }
.egp-footer__red svg { width: 18px; height: 18px; fill: currentColor; }
.egp-footer__base {
  width: min(100% - 2 * var(--egp-margen), var(--egp-ancho));
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .66);
}
.egp-footer__base p { margin: 0; }
@media (max-width: 980px) {
  .egp-footer__grid { grid-template-columns: 1fr 1fr; }
  .egp-footer__marca { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .egp-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  /* Espacio para el boton flotante de WhatsApp */
  .egp-footer { padding-bottom: 96px; }
}

/* ================================================================== *
 * Secciones comunes
 * ================================================================== */
.egp-sec { padding-block: var(--egp-sec); }
.egp-sec--niebla { background: var(--egp-niebla); }
.egp-sec--tinta { background: var(--egp-azul); color: #fff; }
.egp-sec--azul { background: var(--egp-azul); color: #fff; }

.egp-cab { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.egp-cab__titulo { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.5rem); }
.egp-cab__texto {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--egp-pizarra);
}
.egp-sec--tinta .egp-cab__texto,
.egp-sec--azul .egp-cab__texto { color: rgba(255, 255, 255, .78); }

/* Revelado de imagenes al hacer scroll (lo activa egp.js; sin JS se ve todo) */
.egp-js [data-revelar] {
  clip-path: inset(0 0 100% 0 round 18px);
  transition: clip-path 1.1s var(--egp-suave);
}
.egp-js [data-revelar].is-visible { clip-path: inset(0 0 0 0 round 18px); }
.egp-js [data-revelar] img { transform: scale(1.12); transition: transform 1.6s var(--egp-suave); }
.egp-js [data-revelar].is-visible img { transform: none; }

/* ================================================================== *
 * Portada (inicio)
 * ================================================================== */
.egp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--egp-barra) + clamp(32px, 6vh, 72px));
  color: #fff;
  overflow: hidden;
  background: var(--egp-azul);
}
.egp-hero__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.egp-hero__fondo picture { display: block; height: 100%; }
.egp-hero__fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  will-change: transform;
}
.egp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 36, 68, .78) 0%, rgba(2, 36, 68, .45) 45%, rgba(2, 36, 68, .1) 75%),
    linear-gradient(0deg, rgba(2, 36, 68, .85) 0%, rgba(2, 36, 68, 0) 38%);
}
.egp-hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-bottom: clamp(32px, 5vh, 56px);
}
.egp-hero__marca {
  font: 600 1rem/1.3 var(--egp-sans);
  color: rgba(255, 255, 255, .86);
  margin-bottom: 22px;
}
.egp-hero__titulo {
  font-size: clamp(2.5rem, 1rem + 4.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
.egp-hero__linea { display: block; overflow: hidden; padding-bottom: .06em; }
.egp-hero__linea > span { display: block; }
.egp-hero__lead {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
}
.egp-hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Formulario de Yave en la portada */
.egp-hero__form {
  background: #fff;
  color: var(--egp-tinta);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
}
.egp-form-yave #yave-form-egp { min-height: 440px; }
/* Yave inyecta sus estilos con #yave-form-egp .yf-* (1,1,0): aqui van con (1,2,0)
   para llevar el formulario a la tipografia y los colores de la marca. */
.egp-form-yave #yave-form-egp .yf-wrap { padding: 22px 22px 20px; font-family: var(--egp-sans); }
.egp-form-yave #yave-form-egp .yf-title { font-family: var(--egp-display); font-size: 1.5rem; letter-spacing: -.02em; color: var(--egp-tinta); }
.egp-form-yave #yave-form-egp .yf-subtitle { color: var(--egp-acero); }
.egp-form-yave #yave-form-egp .yf-label { color: var(--egp-pizarra); }
.egp-form-yave #yave-form-egp .yf-input { min-height: 46px; border-color: #cfd9e1; border-radius: 10px; font-size: 15px; }
.egp-form-yave #yave-form-egp .yf-input:focus { border-color: var(--egp-azul); box-shadow: 0 0 0 3px rgba(4, 72, 135, .15); }
.egp-form-yave #yave-form-egp .yf-btn {
  min-height: 50px;
  border-radius: 999px;
  background: var(--egp-azul);
  font-family: var(--egp-sans);
  font-weight: 600;
  font-size: .975rem;
  transition: background-color .25s ease;
}
.egp-form-yave #yave-form-egp .yf-btn:hover { background: var(--egp-azul-hondo); }
@media (max-width: 760px) {
  /* 16 px: el iPhone no hace zoom al tocar el campo */
  .egp-form-yave #yave-form-egp .yf-input { font-size: 16px; }
}

/* Franja de destinos al pie de la portada */
.egp-destinos-barra {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(2, 36, 68, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.egp-destinos-barra__lista {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.egp-destinos-barra__lista li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.egp a.egp-destinos-barra__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(12px, 2vw, 28px);
  text-decoration: none;
  transition: background-color .25s ease;
}
.egp a.egp-destinos-barra__item:hover { background: rgba(255, 255, 255, .08); }
.egp-destinos-barra__nombre { font: 600 1rem/1.25 var(--egp-display); letter-spacing: -.01em; }
.egp-destinos-barra__cuenta { font-size: .875rem; color: rgba(255, 255, 255, .66); white-space: nowrap; }
.egp-destinos-barra__lista li:first-child .egp-destinos-barra__item { padding-left: 0; }

/* Entrada de la portada: la unica animacion que no pide el visitante */
@media (prefers-reduced-motion: no-preference) {
  .egp-js .egp-hero__fondo img { animation: egp-acerca 2.4s var(--egp-suave) both; }
  .egp-js .egp-hero__linea > span { animation: egp-sube 1s var(--egp-suave) both; }
  .egp-js .egp-hero__linea:nth-child(2) > span { animation-delay: .08s; }
  .egp-js .egp-hero__linea:nth-child(3) > span { animation-delay: .16s; }
  .egp-js .egp-hero__marca,
  .egp-js .egp-hero__lead,
  .egp-js .egp-hero__acciones { animation: egp-aparece .9s ease .35s both; }
  .egp-js .egp-hero__form { animation: egp-flota 1.1s var(--egp-suave) .25s both; }
  .egp-js .egp-destinos-barra { animation: egp-aparece .9s ease .55s both; }
}
@keyframes egp-acerca { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes egp-sube { from { transform: translateY(105%); } to { transform: none; } }
/* Desde .01 y no 0: Chrome no cuenta como LCP lo que se pinto con opacidad 0,
   y el texto de la portada quedaba fuera; el LCP caia en el formulario de Yave
   (que llega tarde, desde otro dominio). A la vista es identico. */
@keyframes egp-aparece { from { opacity: .01; } to { opacity: 1; } }
@keyframes egp-flota { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .egp-hero { min-height: 0; }
  .egp-hero__grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .egp-hero::after {
    background: linear-gradient(0deg, rgba(2, 36, 68, .92) 0%, rgba(2, 36, 68, .55) 45%, rgba(2, 36, 68, .35) 100%);
  }
  .egp-hero__form { max-width: 520px; }
  .egp-destinos-barra__lista {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .egp-destinos-barra__lista::-webkit-scrollbar { display: none; }
  .egp-destinos-barra__lista li { flex: 0 0 auto; scroll-snap-align: start; }
  .egp-destinos-barra__lista li:first-child .egp-destinos-barra__item { padding-left: var(--egp-margen); }
  .egp-destinos-barra .egp-wrap { width: 100%; }
}

/* Portada corta (/proyectos/) */
.egp-hero--corta { min-height: 0; padding-bottom: 0; }
.egp-hero--corta .egp-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(420px, 62vh, 640px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.egp-hero--corta .egp-hero__titulo { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.75rem); max-width: 16ch; }

/* ================================================================== *
 * Proyectos: filtros y tarjetas
 * ================================================================== */
.egp-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 14px;
}
.egp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.egp button.egp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--egp-linea);
  border-radius: 999px;
  background: #fff;
  color: var(--egp-pizarra);
  font: 500 .9375rem/1 var(--egp-sans);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.egp button.egp-chip:hover { border-color: var(--egp-acero); color: var(--egp-tinta); }
.egp button.egp-chip[aria-pressed="true"] { background: var(--egp-azul); border-color: var(--egp-azul); color: #fff; }
.egp-chip__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--egp-niebla);
  color: var(--egp-pizarra);
  font-size: .75rem;
  font-weight: 600;
}
.egp-chip[aria-pressed="true"] .egp-chip__n { background: rgba(255, 255, 255, .16); color: #fff; }

.egp-orden { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--egp-acero); }
.egp-orden select {
  min-height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--egp-linea);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23374755' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 11px;
  -webkit-appearance: none;
  appearance: none;
  color: var(--egp-tinta);
  cursor: pointer;
}
.egp-estado { min-height: 1.6em; margin-bottom: 24px; font-size: .9375rem; color: var(--egp-acero); }

.egp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 4.5vw, 64px) clamp(18px, 2.2vw, 32px);
}
.egp-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
}
.egp-card[hidden] { display: none; }
.egp-grid:not(.is-filtrado) .egp-card--destacada { grid-column: span 6; }
/* 9 proyectos: 2 destacadas + 7 deja la ultima tarjeta sola en su fila; va centrada */
.egp-grid:not(.is-filtrado) > .egp-card:nth-child(9):last-child { grid-column: 5 / span 4; }

.egp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--egp-linea);
  isolation: isolate;
}
.egp-grid:not(.is-filtrado) .egp-card--destacada .egp-card__media { aspect-ratio: 16 / 10; }
.egp-card__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 1.2s var(--egp-suave);
}
.egp-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 36, 68, .7) 0%, rgba(2, 36, 68, 0) 50%);
}
.egp-card__logo {
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(14px, 1.8vw, 22px);
  z-index: 2;
  width: auto !important;
  height: var(--logo, 54px) !important;
  max-width: 62%;
  object-fit: contain;
  object-position: left bottom;
  transition: transform .6s var(--egp-suave);
}
.egp-grid:not(.is-filtrado) .egp-card--destacada .egp-card__logo { height: calc(var(--logo, 54px) * 1.25) !important; }
/* Va fuera del enlace de la foto (aria-hidden) para que el lector de pantalla lo anuncie;
   se ubica sobre la esquina de la foto, que empieza en el borde superior de la tarjeta. */
/* Precio y area en el texto de la tarjeta (sin etiquetas sobre la foto) */
.egp-card__precio {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 4px;
  color: var(--egp-acero);
  font-size: .9375rem;
}
.egp-card__precio strong { font: 700 1.25rem/1.2 var(--egp-display); letter-spacing: -.02em; color: var(--egp-azul); }
.egp-card__precio span { flex-basis: 100%; font-size: .875rem; }
.egp-card__cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 2px 0; }
.egp-card__lugar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--egp-acero);
}
.egp-card__lugar svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.egp-card__titulo { font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem); letter-spacing: -.03em; }
.egp-card__titulo a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--egp-suave); }
.egp-card__texto { color: var(--egp-pizarra); font-size: .98rem; line-height: 1.55; max-width: 56ch; }
.egp-card__acciones { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.egp-card__acciones .egp-btn--azul { flex: 1; max-width: 240px; }

@media (hover: hover) {
  .egp-card:hover .egp-card__foto { transform: scale(1.06); }
  .egp-card:hover .egp-card__logo { transform: translateY(-5px); }
  .egp-card:hover .egp-card__titulo a { background-size: 100% 2px; }
}
.egp-card.is-entrando { animation: egp-flota .6s var(--egp-suave) both; }

/* Filtro y orden: las tarjetas se deslizan a su nuevo lugar (View Transitions) */
.egp-header { view-transition-name: egp-encabezado; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .3s; }

@media (max-width: 1020px) {
  .egp-card,
  .egp-grid:not(.is-filtrado) .egp-card--destacada { grid-column: span 6; }
  .egp-grid:not(.is-filtrado) .egp-card--destacada .egp-card__media { aspect-ratio: 4 / 3; }
  .egp-grid:not(.is-filtrado) > .egp-card:nth-child(9):last-child { grid-column: 4 / span 6; }
}
@media (max-width: 640px) {
  .egp-card,
  .egp-grid:not(.is-filtrado) .egp-card--destacada,
  .egp-grid:not(.is-filtrado) > .egp-card:nth-child(9):last-child { grid-column: 1 / -1; }
  .egp-filtros { align-items: stretch; }
  .egp-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--egp-margen)); padding-inline: var(--egp-margen); scrollbar-width: none; }
  .egp-chips::-webkit-scrollbar { display: none; }
  .egp button.egp-chip { flex: none; }
}

/* ---- Otros proyectos (/proyectos/) ---- */
.egp-otros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.egp a.egp-otro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--egp-linea);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease;
}
.egp a.egp-otro:hover { border-color: var(--egp-acero); }
.egp-otro img { width: 180px; height: 128px; object-fit: cover; border-radius: 12px; }
.egp-otro__nombre { font: 700 1.25rem/1.15 var(--egp-display); letter-spacing: -.02em; }
.egp-otro__texto { margin-top: 6px; font-size: .9375rem; color: var(--egp-pizarra); line-height: 1.5; }
@media (max-width: 760px) {
  .egp-otros { grid-template-columns: 1fr; }
  .egp a.egp-otro { grid-template-columns: 112px 1fr; gap: 14px; }
  .egp-otro img { width: 112px; height: 96px; }
}

/* ================================================================== *
 * Comparador por presupuesto: el titulo y el deslizador comparten la
 * cabeza, y la lista es compacta para que todo quepa en una pantalla.
 * ================================================================== */
.egp-sec.egp-sec--compacta:has(> .egp-presu) { padding-block: clamp(32px, 3vw, 44px); }
.egp-presu__cabeza {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 16px clamp(28px, 4vw, 64px);
  margin-bottom: 18px;
}
.egp-presu__titulo { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); }
.egp-presu__intro { margin-top: 10px; max-width: 46ch; font-size: 1rem; line-height: 1.55; color: var(--egp-pizarra); }
.egp-presu__control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 16px;
  padding: 14px 20px 12px;
  border-radius: 18px;
  background: var(--egp-azul-claro);
}
.egp-presu__control[hidden] { display: none; }
.egp-presu__label { font-size: .9375rem; color: var(--egp-pizarra); }
.egp-presu__valor {
  font: 800 clamp(1.5rem, 1.2rem + .9vw, 2rem)/1.1 var(--egp-display);
  letter-spacing: -.03em;
  color: var(--egp-azul);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.egp-presu__control input[type=range] { grid-column: 1 / -1; }
.egp-presu__estado { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.4; color: var(--egp-pizarra); }
.egp-presu__estado strong { color: var(--egp-azul); }
.egp-presu input[type=range] {
  --p: 100%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.egp-presu input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--egp-azul) var(--p), #c3d3e1 var(--p)); }
.egp-presu input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: #c3d3e1; }
.egp-presu input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--egp-azul); }
.egp-presu input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; background: #fff; border: 4px solid var(--egp-azul);
  box-shadow: 0 6px 14px rgba(4, 72, 135, .3);
}
.egp-presu input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--egp-azul); }
.egp-presu input[type=range]:focus-visible { outline: 3px solid var(--egp-cian); outline-offset: 4px; border-radius: 8px; }

.egp-presu__lista { border: 1px solid var(--egp-linea); border-radius: 20px; background: #fff; overflow: hidden; }
.egp-presu__fila + .egp-presu__fila { border-top: 1px solid var(--egp-linea); }
.egp a.egp-presu__enlace {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.15fr) auto 18px;
  align-items: center;
  gap: 16px;
  padding: 7px clamp(14px, 2vw, 22px);
  text-decoration: none;
  transition: background-color .2s ease, opacity .35s ease, filter .35s ease;
}
.egp a.egp-presu__enlace:hover { background: #f7fafc; }
.egp-presu__enlace img { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; }
.egp-presu__nombre strong { display: block; font: 700 1rem/1.25 var(--egp-display); letter-spacing: -.01em; color: var(--egp-tinta); }
.egp-presu__nombre span, .egp-presu__area, .egp-presu__pago { font-size: .8125rem; line-height: 1.35; color: var(--egp-acero); }
.egp-presu__precio { font: 700 1.0625rem/1.2 var(--egp-display); color: var(--egp-azul); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.egp-presu__ir { width: 18px; height: 18px; fill: none; stroke: var(--egp-azul); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--egp-suave); }
.egp a.egp-presu__enlace:hover .egp-presu__ir { transform: translateX(4px); }
.egp-presu__fila.is-fuera .egp-presu__enlace { opacity: .38; filter: grayscale(.6); }
.egp-aviso { margin-top: 18px; font-size: .875rem; color: var(--egp-acero); max-width: 80ch; }
.egp-presu .egp-aviso { margin-top: 10px; font-size: .8125rem; }
@media (max-width: 860px) {
  .egp-presu__cabeza { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .egp-presu__intro { margin-top: 6px; font-size: .9375rem; }
  .egp-presu__control { padding: 12px 16px 10px; }
  .egp a.egp-presu__enlace { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 1px 12px; padding: 7px 14px; }
  .egp-presu__enlace img { grid-row: span 2; width: 44px; height: 44px; }
  .egp-presu__nombre strong { font-size: .9375rem; }
  .egp-presu__nombre span, .egp-presu__area, .egp-presu__ir { display: none; }
  .egp-presu__pago { grid-column: 2; grid-row: 2; }
  .egp-presu__precio { grid-column: 3; grid-row: 1 / span 2; font-size: .9375rem; }
}
/* Celular: nombre en una linea; debajo, el precio y la forma de pago. La
   introduccion se oculta porque el estado del deslizador dice lo mismo. */
@media (max-width: 560px) {
  .egp-presu__intro { display: none; }
  .egp-presu__label { font-size: .875rem; }
  .egp-presu__valor { font-size: 1.3125rem; }
  .egp a.egp-presu__enlace { grid-template-columns: 44px auto minmax(0, 1fr); gap: 1px 8px; padding-inline: 12px; }
  .egp-presu__nombre { grid-column: 2 / -1; grid-row: 1; min-width: 0; }
  .egp-presu__nombre strong { overflow: hidden; font-family: var(--egp-sans); font-size: .9375rem; white-space: nowrap; text-overflow: ellipsis; }
  .egp-presu__precio { grid-column: 2; grid-row: 2; text-align: left; font-size: .84375rem; }
  .egp-presu__pago { grid-column: 3; grid-row: 2; overflow: hidden; font-size: .71875rem; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
}

/* ================================================================== *
 * Maqueta virtual (inicio): franja azul con el trazo de un plano y las
 * dos maquetas como tarjetas con foto; los puntos laten sobre los lotes.
 * ================================================================== */
.egp-maqueta-sec {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(110% 90% at 88% 0%, #0b5aa2 0%, var(--egp-azul) 48%, var(--egp-azul-hondo) 100%);
}
.egp-maqueta-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 80% at 12% 8%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 12% 8%, #000 0%, transparent 78%);
  pointer-events: none;
}
.egp-maqueta { position: relative; }
.egp-maqueta__cabeza {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px clamp(32px, 5vw, 80px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.egp-maqueta-sec .egp-maqueta__titulo { max-width: 15ch; font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem); color: #fff; }
.egp-maqueta__intro { max-width: 48ch; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.egp-maqueta__puntos { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.egp-maqueta__puntos li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; color: #fff; }
.egp-maqueta__puntos svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8fd6f2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.egp-maqueta__lista { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.egp a.egp-maqueta__item {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 2 / 1;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--egp-azul-hondo);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 30px 60px -32px rgba(1, 18, 36, .75), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .4s var(--egp-suave), box-shadow .4s ease;
}
.egp-maqueta__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 1.4s var(--egp-suave);
}
.egp a.egp-maqueta__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 36, 68, 0) 38%, rgba(2, 36, 68, .55) 66%, rgba(2, 36, 68, .9) 100%);
}
.egp-maqueta__info { position: absolute; left: 22px; right: 200px; bottom: 20px; }
.egp-maqueta__nombre { display: block; font: 700 1.375rem/1.2 var(--egp-display); letter-spacing: -.02em; color: #fff; }
.egp-maqueta__texto { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.egp-maqueta__ir {
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  background: #fff;
  color: var(--egp-azul);
  font-size: .9375rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.egp-maqueta__ir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--egp-suave); }
@media (hover: hover) {
  .egp a.egp-maqueta__item:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(1, 18, 36, .85), inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .egp a.egp-maqueta__item:hover .egp-maqueta__img { transform: scale(1.06); }
  .egp a.egp-maqueta__item:hover .egp-maqueta__ir { background: var(--egp-cian); color: #fff; }
  .egp a.egp-maqueta__item:hover .egp-maqueta__ir svg { transform: translateX(4px); }
}
.egp a.egp-maqueta__item:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 1100px) {
  .egp-maqueta__info { right: 22px; bottom: 74px; }
  .egp-maqueta__ir { left: 22px; right: auto; bottom: 20px; }
  .egp a.egp-maqueta__item { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .egp-maqueta__cabeza { grid-template-columns: 1fr; }
  /* En celular las dos maquetas se deslizan de lado: la segunda asoma */
  .egp-maqueta__lista {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(86%, 420px);
    gap: 12px;
    margin-inline: calc(-1 * var(--egp-margen));
    padding: 4px var(--egp-margen) 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--egp-margen);
    scrollbar-width: none;
  }
  .egp-maqueta__lista::-webkit-scrollbar { display: none; }
  .egp a.egp-maqueta__item { scroll-snap-align: start; aspect-ratio: 4 / 3.4; min-height: 0; }
  .egp-maqueta__nombre { font-size: 1.1875rem; }
  .egp-maqueta__texto { font-size: .875rem; }
  .egp-maqueta__info { left: 18px; right: 18px; bottom: 68px; }
  .egp-maqueta__ir { left: 18px; bottom: 16px; padding: 9px 14px; font-size: .875rem; }
}

/* ================================================================== *
 * Destinos
 * ================================================================== */
.egp-destinos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.egp-destino {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(460px, 42vw, 560px);
  padding: 24px 22px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.egp-destino > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.egp-destino::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 36, 68, .94) 0%, rgba(2, 36, 68, .72) 48%, rgba(2, 36, 68, .1) 82%);
}
.egp-destino__cuenta { font-size: .875rem; color: rgba(255, 255, 255, .72); margin-bottom: 8px; }
.egp-destino__nombre { font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem); letter-spacing: -.03em; }
.egp-destino__texto { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.egp-destino__proyectos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.egp a.egp-destino__proyecto {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.egp a.egp-destino__proyecto:hover { background: #fff; color: var(--egp-azul); }
@media (max-width: 1020px) {
  .egp-destinos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 340px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--egp-margen));
    padding-inline: var(--egp-margen);
    scroll-padding-inline: var(--egp-margen);
    scrollbar-width: none;
  }
  .egp-destinos::-webkit-scrollbar { display: none; }
  .egp-destino { scroll-snap-align: start; min-height: 480px; }
}

/* ================================================================== *
 * Por que EGP
 * ================================================================== */
.egp-porque { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.egp-porque__foto { position: relative; margin: 0; }
.egp-porque__foto .egp-porque__img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.egp-porque__foto img { width: 100%; height: 100%; object-fit: cover; }
.egp-cifras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 6px;
  border-top: 1px solid var(--egp-linea);
}
.egp-cifra { padding: 20px 16px 0 0; }
.egp-cifra + .egp-cifra { padding-left: 20px; border-left: 1px solid var(--egp-linea); }
.egp-cifra dt { order: 2; margin-top: 6px; font-size: .875rem; line-height: 1.35; color: var(--egp-acero); }
.egp-cifra { display: flex; flex-direction: column; }
.egp-cifra dd { order: 1; margin: 0; font: 800 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1 var(--egp-display); letter-spacing: -.04em; color: var(--egp-azul); font-variant-numeric: tabular-nums; }
.egp-pilares { display: grid; gap: 22px; margin: 34px 0 36px; }
.egp-cifras + .egp-btn { margin-top: 30px; }
.egp-pilar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.egp-pilar__icono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--egp-azul-claro); color: var(--egp-azul); }
.egp-pilar__icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.egp-pilar__titulo { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.25; }
.egp-pilar__texto { margin-top: 6px; color: var(--egp-pizarra); font-size: .98rem; line-height: 1.55; }
/* Version compacta (nov-2026): foto chica, titulo en dos lineas y los pilares en
   una fila debajo, para que la seccion quepa en una pantalla */
.egp-sec.egp-sec--compacta { padding-block: clamp(48px, 4.5vw, 64px); }
.egp-porque { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); }
.egp-porque__foto .egp-porque__img { max-height: 360px; }
.egp-porque .egp-cab__titulo { font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.375rem); max-width: 30ch; }
.egp-porque .egp-cab__texto { margin-top: 14px; font-size: 1rem; max-width: 64ch; }
.egp-porque .egp-cifras { margin: 18px 0 20px; }
.egp-porque .egp-cifra { padding-top: 14px; }
.egp-porque .egp-cifra dd { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); }
.egp-pilares.egp-pilares--fila {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 36px);
  margin: clamp(24px, 3vw, 32px) auto 0;
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--egp-linea);
}
.egp-pilares--fila .egp-pilar__texto { font-size: .9rem; line-height: 1.5; }
@media (max-width: 900px) {
  .egp-porque { grid-template-columns: 1fr; }
  .egp-porque__foto { max-width: 520px; }
  /* En el celular la foto va apaisada para no ocupar media pantalla */
  .egp-porque__foto .egp-porque__img { aspect-ratio: 16 / 10; max-height: none; }
  .egp-porque__foto img { object-position: 50% 30%; }
  .egp-pilares.egp-pilares--fila { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .egp-cifras { grid-template-columns: 1fr; }
  .egp-cifra + .egp-cifra { padding-left: 0; border-left: 0; border-top: 1px solid var(--egp-linea); padding-bottom: 4px; }
  .egp-cifra { padding: 16px 0 0; flex-direction: row; align-items: baseline; gap: 14px; }
  .egp-cifra dd { min-width: 110px; }
}

/* ================================================================== *
 * Como separar tu lote (franja azul, animada)
 * Al llegar a la seccion la linea se llena y los pasos aparecen en orden;
 * despues un punto recorre la linea y resalta un paso a la vez (egp.js).
 * ================================================================== */
.egp-pasos {
  --actual: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(40px, 5vw, 56px);
}
/* La linea va de centro a centro de los iconos */
.egp-pasos::before,
.egp-pasos::after {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
}
.egp-pasos::after {
  background: var(--egp-cian);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.8s var(--egp-suave);
}
.egp-pasos.is-activo::after { transform: scaleX(1); }
.egp-pasos__punto {
  position: absolute;
  top: 29px;
  left: calc(100% / 6 + var(--actual) * 100% / 3);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(16, 160, 214, .35);
  opacity: 0;
  transition: left .9s var(--egp-suave), opacity .4s ease;
  z-index: 1;
}
.egp-pasos.is-ciclo .egp-pasos__punto { opacity: 1; }
/* z-index 2: el paso queda encima del punto que recorre la linea (z-index 1) */
.egp-paso { position: relative; z-index: 2; text-align: center; padding: 0 6px; }
.egp-paso__icono {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--egp-azul);
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  transition: background-color .4s ease, border-color .4s ease, transform .5s var(--egp-suave), box-shadow .4s ease;
}
.egp-paso__icono svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.egp-paso__numero {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--egp-azul);
  font: 700 .8125rem/1 var(--egp-display);
}
.egp-paso.is-actual .egp-paso__icono,
.egp-pasos:not(.is-ciclo) .egp-paso:hover .egp-paso__icono {
  background: #fff;
  border-color: #fff;
  color: var(--egp-azul);
  transform: scale(1.08);
  box-shadow: 0 0 0 10px rgba(16, 160, 214, .25);
}
.egp-paso__titulo { font-size: 1.375rem; letter-spacing: -.02em; }
.egp-paso__texto { margin: 10px auto 0; color: rgba(255, 255, 255, .82); line-height: 1.55; max-width: 32ch; }
/* Entrada en orden, solo con JS y sin "reducir movimiento" */
@media (prefers-reduced-motion: no-preference) {
  .egp-js .egp-pasos .egp-paso { opacity: 0; transform: translateY(18px); }
  .egp-js .egp-pasos.is-activo .egp-paso { animation: egp-paso-entra .7s var(--egp-suave) both; animation-delay: calc(var(--i) * .55s + .1s); }
}
@keyframes egp-paso-entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.egp-pasos-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.egp-sec--azul .egp-cab { margin-inline: auto; text-align: center; }
.egp-sec--azul .egp-cab__texto { margin-inline: auto; }
@media (max-width: 820px) {
  .egp-pasos { grid-template-columns: 1fr; gap: 28px; }
  .egp-pasos::before, .egp-pasos::after { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; }
  .egp-pasos::after { transform: scaleY(0); transform-origin: center top; }
  .egp-pasos.is-activo::after { transform: scaleY(1); }
  .egp-pasos__punto { display: none; }
  .egp-paso { display: grid; grid-template-columns: 72px 1fr; gap: 4px 18px; text-align: left; padding: 0; }
  .egp-paso__icono { grid-row: span 2; margin: 0; }
  .egp-paso__titulo { align-self: end; }
  .egp-paso__texto { margin: 0; }
  .egp-pasos-acciones { justify-content: flex-start; }
  .egp-sec--azul .egp-cab { text-align: left; margin-inline: 0; }
}

/* ================================================================== *
 * Preguntas frecuentes
 * ================================================================== */
.egp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.egp-faq__cab { position: sticky; top: calc(var(--egp-barra) + 32px); }
.egp-faq__lista { border-top: 1px solid var(--egp-linea); }
.egp-faq details { border-bottom: 1px solid var(--egp-linea); }
.egp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font: 600 clamp(1.0625rem, 1rem + .3vw, 1.25rem)/1.35 var(--egp-display);
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}
.egp-faq summary::-webkit-details-marker { display: none; }
.egp-faq summary:hover { color: var(--egp-azul); }
.egp-faq__signo { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--egp-linea); }
.egp-faq__signo::before,
.egp-faq__signo::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--egp-suave); }
.egp-faq__signo::after { transform: rotate(90deg); }
.egp-faq details[open] .egp-faq__signo::after { transform: rotate(0deg); }
.egp-faq__respuesta { padding: 0 48px 24px 0; color: var(--egp-pizarra); line-height: 1.65; max-width: 68ch; }
.egp-faq__respuesta a { color: var(--egp-azul); text-underline-offset: 3px; }
.egp-faq details[open] .egp-faq__respuesta { animation: egp-aparece .4s ease both; }
@media (max-width: 860px) {
  .egp-faq { grid-template-columns: 1fr; }
  .egp-faq__cab { position: static; }
  .egp-faq__respuesta { padding-right: 0; }
}

/* ================================================================== *
 * Cierre: hablar con un asesor
 * ================================================================== */
.egp-cierre {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 11vw, 150px);
  background: var(--egp-azul);
  color: #fff;
}
.egp-cierre > picture,
.egp-cierre > img { position: absolute; inset: 0; z-index: -2; }
/* Solo la foto de fondo: el formulario de Yave del cierre trae su propio logo */
.egp-cierre > img,
.egp-cierre > picture img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.egp-cierre::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--egp-azul) 0%, rgba(4, 72, 135, .55) 55%, rgba(4, 72, 135, .7) 100%);
}
.egp-cierre__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.egp-cierre__titulo { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.egp-cierre__texto { margin-top: 20px; max-width: 54ch; color: rgba(255, 255, 255, .8); font-size: 1.0625rem; line-height: 1.6; }
.egp-cierre__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.egp-cierre__datos { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.egp-cierre__dato { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.egp-cierre__dato dt { font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.egp-cierre__dato dd { margin: 4px 0 0; font: 600 1.0625rem/1.4 var(--egp-display); }
.egp-cierre__dato a { text-decoration: none; }
.egp-cierre__dato a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--egp-cian); }
/* minmax(0, 1fr) y no 1fr: con 1fr el boton largo de WhatsApp (sin saltos
   de linea) ensanchaba la columna y a 320 px el texto se salia por la derecha */
@media (max-width: 860px) { .egp-cierre__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .egp-cierre .egp-btn { max-width: 100%; white-space: normal; text-align: center; } }

/* Cierre con formulario (fichas): el texto a la izquierda, la tarjeta del formulario a la derecha */
.egp-cierre--form .egp-cierre__grid { align-items: center; }
.egp-cierre--form .egp-cierre__titulo { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.egp-form-yave {
  background: #fff;
  color: var(--egp-tinta);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
}
.egp-cierre .egp-rico { color: rgba(255, 255, 255, .8); margin-top: 20px; max-width: 58ch; }
.egp-cierre .egp-rico strong { color: #fff; }

/* ================================================================== *
 * Fichas de proyecto
 * ================================================================== */

/* Migas de pan sobre la portada */
.egp-migas { margin-bottom: 26px; font-size: .875rem; color: rgba(255, 255, 255, .72); }
.egp-migas ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.egp-migas li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.egp a.egp-migas__enlace { text-decoration: none; }
.egp a.egp-migas__enlace:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.egp-migas [aria-current] { color: #fff; }

/* Portada */
.egp-hero--ficha { min-height: max(640px, 92svh); }
.egp-hero--ficha .egp-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: end; padding-bottom: clamp(48px, 9vh, 96px); }
.egp-hero--ficha::after {
  background:
    linear-gradient(90deg, rgba(2, 36, 68, .72) 0%, rgba(2, 36, 68, .35) 50%, rgba(2, 36, 68, .05) 80%),
    linear-gradient(0deg, rgba(2, 36, 68, .9) 0%, rgba(2, 36, 68, 0) 45%);
}
.egp-ficha__logo {
  display: block;
  width: auto !important;
  height: var(--logo-portada, 84px) !important;
  max-width: min(78%, 420px);
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 26px;
}
.egp-hero--ficha .egp-hero__titulo { font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.75rem); max-width: 18ch; }
.egp-ficha__lugar { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 1.0625rem; color: rgba(255, 255, 255, .88); }
.egp-ficha__lugar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

/* (La barra de datos bajo la portada se quito el 30-nov-2026: portada limpia) */

/* Texto con formato que viene de cada ficha */
.egp-rico { color: var(--egp-pizarra); font-size: 1.0625rem; line-height: 1.7; max-width: 64ch; }
.egp-rico p + p, .egp-rico p + ul, .egp-rico p + ol, .egp-rico ul + p, .egp-rico ol + p { margin-top: 1em; }
.egp-rico strong { color: var(--egp-tinta); font-weight: 600; }
.egp-rico a { color: var(--egp-azul); text-underline-offset: 3px; }
.egp-rico ol { counter-reset: rico; display: grid; gap: 12px; margin-top: 1.2em; }
.egp-rico ol > li { counter-increment: rico; position: relative; padding-left: 44px; min-height: 30px; display: flex; align-items: center; }
.egp-rico ol > li::before {
  content: counter(rico);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--egp-azul); color: #fff;
  font: 700 .8125rem/1 var(--egp-display);
}
.egp-rico ul { display: grid; gap: 8px; margin-top: 1em; }
.egp-rico ul > li { position: relative; padding-left: 20px; }
.egp-rico ul > li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--egp-cian); }

/* "Leer mas": el resto del texto del proyecto queda plegado (sigue en la pagina) */
.egp-leer { margin-top: 14px; }
.egp-leer > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--egp-azul);
  cursor: pointer;
  list-style: none;
}
.egp-leer > summary::-webkit-details-marker { display: none; }
.egp-leer > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--egp-suave), margin .3s var(--egp-suave);
}
.egp-leer[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.egp-leer[open] > summary { margin-bottom: 8px; }
.egp-leer[open] > .egp-rico { animation: egp-aparece .4s ease both; }

/* Presentacion: texto y dos fotos superpuestas */
.egp-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.egp-intro .egp-cab__titulo { margin-bottom: 22px; }
.egp-intro__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.egp-intro__fotos { position: relative; padding-bottom: 12%; }
.egp a.egp-intro__foto { display: block; overflow: hidden; border-radius: 20px; background: var(--egp-linea); }
.egp-intro__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--egp-suave); }
.egp-intro__foto--1 { aspect-ratio: 4 / 3; width: 88%; margin-left: auto; }
.egp-intro__foto--2 {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 6px solid #fff;
  box-shadow: 0 24px 50px -18px rgba(2, 36, 68, .45);
}
@media (hover: hover) { .egp a.egp-intro__foto:hover img { transform: scale(1.05); } }
@media (max-width: 900px) {
  .egp-intro { grid-template-columns: 1fr; }
  .egp-intro__fotos { max-width: 620px; }
}

/* Sobre el proyecto: texto corto a la izquierda y los puntos clave,
   cada uno con su icono, en una ficha de dos columnas */
.egp-sobre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.egp-sobre .egp-cab__titulo { margin-bottom: 20px; }
.egp-sobre__texto > .egp-rico { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; }
.egp-sobre__texto > .egp-rico:first-of-type { color: var(--egp-tinta); }
.egp-sobre__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.egp-claves {
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--egp-linea);
  box-shadow: 0 30px 60px -44px rgba(4, 72, 135, .45);
}
.egp-claves__titulo { font-size: 1.125rem; margin-bottom: 6px; }
.egp-esencial { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.egp-esencial li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--egp-linea);
  font-size: .96875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--egp-tinta);
}
.egp-esencial li:last-child,
.egp-esencial li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.egp-esencial__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--egp-azul-claro);
  color: var(--egp-azul);
  transition: background-color .3s ease, color .3s ease, transform .3s var(--egp-suave);
}
.egp-esencial__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Amenidades agrupadas (zona social, club de playa...) y nota al pie */
.egp-esencial__grupo { margin-top: 20px; font: 600 .8125rem/1.3 var(--egp-sans); color: var(--egp-azul); }
.egp-claves__titulo + .egp-esencial__grupo { margin-top: 10px; }
.egp-claves__nota { margin-top: 14px; font-size: .75rem; line-height: 1.4; color: var(--egp-acero); }
@media (hover: hover) {
  .egp-esencial li:hover .egp-esencial__ico { background: var(--egp-azul); color: #fff; transform: scale(1.06); }
}
.egp-checks { display: grid; gap: 14px; }
.egp-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; line-height: 1.45; color: var(--egp-pizarra); }
.egp-checks svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--egp-azul-claro); color: var(--egp-azul); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .egp-sobre { grid-template-columns: 1fr; }
}
/* Celular: las amenidades siguen en dos columnas, con icono mas chico, para
   que una lista larga (Baru Beach tiene 18) no ocupe varias pantallas */
@media (max-width: 560px) {
  .egp-esencial { column-gap: 12px; }
  .egp-esencial li { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 9px 0; font-size: .84375rem; line-height: 1.3; }
  .egp-esencial__ico { width: 32px; height: 32px; border-radius: 10px; }
  .egp-esencial__ico svg { width: 18px; height: 18px; }
  .egp-esencial__grupo { margin-top: 16px; }
}

/* Amenidades */
.egp-amenidades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.egp-amenidad { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--egp-linea); isolation: isolate; }
.egp-amenidad img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--egp-suave); }
.egp-amenidad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 36, 68, .82) 0%, rgba(2, 36, 68, 0) 55%); }
.egp-amenidad figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 20px;
  color: #fff;
  font: 700 clamp(1.0625rem, .95rem + .4vw, 1.3125rem)/1.2 var(--egp-display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
@media (hover: hover) { .egp-amenidad:hover img { transform: scale(1.06); } }
@media (max-width: 1020px) { .egp-amenidades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .egp-amenidad { aspect-ratio: 4 / 5; } }

/* Galeria: la primera foto grande y cuatro alrededor; el resto se ve en el visor */
.egp-galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); gap: clamp(10px, 1.2vw, 16px); }
.egp-galeria li[hidden] { display: none; }
.egp a.egp-galeria__foto { position: relative; display: block; height: 100%; border-radius: 16px; overflow: hidden; background: var(--egp-linea); }
.egp-galeria li:first-child { grid-column: span 2; grid-row: span 2; }
.egp-galeria__foto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--egp-suave); }
@media (hover: hover) { .egp a.egp-galeria__foto:hover img { transform: scale(1.05); } }
.egp-galeria__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; color: var(--egp-acero); font-size: .9375rem; }
@media (max-width: 760px) {
  .egp-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .egp-galeria li:first-child { grid-row: span 1; }
}

/* Maqueta virtual en la ficha */
.egp-maqueta-ficha { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.egp-maqueta-ficha .egp-cab__titulo { margin-bottom: 20px; }
.egp-maqueta-ficha .egp-btn { margin-top: 30px; }
.egp a.egp-maqueta-ficha__img { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; max-height: 380px; background: var(--egp-linea); }
.egp-maqueta-ficha__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--egp-suave); }
@media (hover: hover) { .egp a.egp-maqueta-ficha__img:hover img { transform: scale(1.04); } }
@media (max-width: 900px) { .egp-maqueta-ficha { grid-template-columns: 1fr; } }

/* Tira de proyectos con flechas */
.egp-tira-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.egp-tira-cab .egp-cab { margin-bottom: 0; }
.egp-tira-flechas { display: flex; gap: 10px; }
.egp button.egp-tira-flecha {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid #c5d2db; border-radius: 50%;
  background: #fff; color: var(--egp-tinta);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.egp button.egp-tira-flecha:hover { background: var(--egp-azul); border-color: var(--egp-azul); color: #fff; }
.egp button.egp-tira-flecha:disabled { opacity: .35; cursor: default; background: #fff; color: var(--egp-tinta); border-color: #c5d2db; }
.egp-tira-flecha svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.egp-tira {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.egp-tira::-webkit-scrollbar { display: none; }
.egp-tira > li { scroll-snap-align: start; }
.egp a.egp-mini { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.egp-mini__foto { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--egp-linea); margin-bottom: 8px; }
.egp-mini__foto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--egp-suave); }
.egp-mini__nombre { font: 700 1.125rem/1.2 var(--egp-display); letter-spacing: -.02em; }
.egp-mini__lugar { font-size: .875rem; color: var(--egp-acero); }
.egp-mini__precio { font-size: .875rem; color: var(--egp-pizarra); }
.egp-mini__precio strong { color: var(--egp-tinta); font-weight: 600; }
@media (hover: hover) {
  .egp a.egp-mini:hover .egp-mini__foto img { transform: scale(1.05); }
  .egp a.egp-mini:hover .egp-mini__nombre { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
}
@media (max-width: 1020px) { .egp-tira { grid-auto-columns: calc((100% - 20px) / 2.3); } }
@media (max-width: 560px) {
  .egp-tira { grid-auto-columns: 76%; margin-inline: calc(-1 * var(--egp-margen)); padding-inline: var(--egp-margen); scroll-padding-inline: var(--egp-margen); }
  .egp-tira-flechas { display: none; }
}

/* ================================================================== *
 * Nosotros, contacto y blog
 * ================================================================== */
.egp-valores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.egp-valor { padding-top: 24px; border-top: 1px solid var(--egp-linea); }
.egp-valor .egp-pilar__icono { margin-bottom: 20px; }
.egp-valor__titulo { font-size: 1.375rem; letter-spacing: -.02em; }
.egp-valor__texto { margin-top: 10px; color: var(--egp-pizarra); line-height: 1.6; }
@media (max-width: 820px) { .egp-valores { grid-template-columns: 1fr; } }

.egp-contacto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(36px, 6vw, 88px); align-items: start; }
.egp-contacto__datos { display: grid; margin-top: 30px; border-top: 1px solid var(--egp-linea); }
.egp-contacto__dato { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--egp-linea); }
.egp-contacto__dato dt { font: 600 1.0625rem/1.3 var(--egp-display); letter-spacing: -.01em; }
.egp-contacto__dato dd { margin: 6px 0 0; color: var(--egp-pizarra); line-height: 1.6; }
.egp-contacto__dato dd a { color: var(--egp-tinta); font-weight: 500; text-decoration: none; }
.egp-contacto__dato dd a:hover { color: var(--egp-azul); text-decoration: underline; text-underline-offset: 3px; }
.egp-contacto__dato .egp-pilar__icono { grid-row: span 2; }
.egp-contacto__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.egp-contacto__form { position: sticky; top: calc(var(--egp-barra) + 24px); border: 1px solid var(--egp-linea); box-shadow: 0 30px 60px -30px rgba(2, 36, 68, .35); }
.egp-contacto__form-cab { padding: 22px 22px 0; }
.egp-contacto__form-cab h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.egp-contacto__form-cab p { margin-top: 8px; color: var(--egp-pizarra); font-size: .9375rem; line-height: 1.55; }
.egp-mapa { margin-top: clamp(48px, 6vw, 72px); border-radius: 22px; overflow: hidden; border: 1px solid var(--egp-linea); background: var(--egp-linea); }
.egp-mapa iframe { display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0; }
@media (max-width: 900px) {
  .egp-contacto { grid-template-columns: 1fr; }
  .egp-contacto__form { position: static; }
}

.egp-articulo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--egp-linea);
  border-radius: 26px;
  background: #fff;
}
.egp a.egp-articulo__foto { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--egp-linea); }
.egp-articulo__foto img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--egp-suave); }
@media (hover: hover) { .egp a.egp-articulo__foto:hover img { transform: scale(1.04); } }
.egp-articulo__texto { padding: 10px clamp(4px, 1.6vw, 20px) 10px 0; }
.egp-articulo__etiqueta { font-size: .875rem; font-weight: 600; color: var(--egp-azul); margin-bottom: 12px; }
.egp-articulo__titulo { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); }
.egp-articulo__titulo a { text-decoration: none; }
.egp-articulo__titulo a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.egp-articulo__lugar { margin: 14px 0 16px; font-size: .9375rem; color: var(--egp-acero); }
.egp-articulo .egp-rico { font-size: 1rem; }
.egp-articulo__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) {
  .egp-articulo { grid-template-columns: 1fr; }
  .egp-articulo__texto { padding: 0 6px 10px; }
}

/* ================================================================== *
 * Paginas de Elementor con el encabezado nuevo
 * ================================================================== */
/* El boton flotante de WhatsApp no tapa el pie */
@media (max-width: 560px) {
  body.egp-chrome .egp-footer { padding-bottom: 96px; }
}

/* ================================================================== *
 * Movimiento reducido e impresion
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
  .egp *, .egp *::before, .egp *::after,
  .egp-header, .egp-header *, .egp-menu, .egp-menu * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .egp-js [data-revelar] { clip-path: none; }
  .egp-js [data-revelar] img { transform: none; }
}
@media print {
  .egp-header, .egp-menu, .egp-hero__form, .egp-filtros { display: none !important; }
  .egp-hero { min-height: 0; color: #000; background: none; }
  .egp-hero::after, .egp-hero__fondo { display: none; }
}

/* ================================================================== *
 * Portada: la casa se construye al bajar (solo el inicio)
 * Los cuadros de assets/obra/cine/ (h/: 1600x900; v/: 608x1080, el centro
 * de la misma toma para pantallas verticales) salen de 4 tomas hechas con IA
 * a partir del render de las casas, unidas con cortes: cimentacion a ras de
 * piso, dron sobre la estructura, soldador y albanil en obra gris, y grua
 * que se abre desde la pergola hasta el render. Cada toma es una etapa
 * (data-desde del hero en index.html = cuadro donde empieza / 99).
 * egp.js (obra) los dibuja en el <canvas> segun el scroll y pone
 * .egp-obra--activa. Sin JS, con "reducir movimiento" o con ahorro de datos
 * no hay recorrido: la portada es una sola foto, como antes.
 * Con el recorrido, la escena va pegada (sticky) arriba con un margen
 * negativo de un alto de pantalla, y la intro (titulo, formulario y
 * destinos) y el espaciador .egp-obra__recorrido pasan por encima. El alto
 * del espaciador es lo que dura la obra.
 * ================================================================== */
.egp-obra {
  display: block;
  min-height: 0;
  padding-top: 0;
  /* clip y no hidden: hidden la volveria contenedor de scroll y el sticky no pegaria */
  overflow: clip;
}
.egp-obra::after { content: none; }
.egp-obra__escena {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.egp-obra__fondo {
  position: absolute;
  inset: 0;
}
.egp-obra__fondo picture { display: block; height: 100%; }
.egp-obra__poster,
.egp-obra__lienzo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.egp-obra__poster { object-fit: cover; }
.egp-obra__lienzo { display: block; opacity: 0; }
.egp-obra--lista .egp-obra__lienzo { opacity: 1; }
.egp-obra__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 36, 68, .78) 0%, rgba(2, 36, 68, .45) 45%, rgba(2, 36, 68, .1) 75%),
    linear-gradient(0deg, rgba(2, 36, 68, .85) 0%, rgba(2, 36, 68, 0) 38%);
  opacity: var(--obra-velo, 1);
}
.egp-obra__intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--egp-barra) + clamp(32px, 6vh, 72px));
}
.egp-obra__cierre,
.egp-obra__etapas,
.egp-obra__recorrido { display: none; }

.egp-obra--activa .egp-obra__escena {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  margin-bottom: -100vh;
  margin-bottom: -100lvh;
}
.egp-obra--activa .egp-obra__recorrido { display: block; height: 320vh; }

/* Etapas de la obra, al pie de la escena */
.egp-obra--activa .egp-obra__etapas {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 0 clamp(20px, 4vh, 36px);
  background: linear-gradient(0deg, rgba(2, 36, 68, .72), rgba(2, 36, 68, 0));
  opacity: var(--obra-etapas, 0);
  pointer-events: none;
}
.egp-obra__pasos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.egp-obra__paso {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 600 1rem/1.2 var(--egp-display);
  color: rgba(255, 255, 255, .5);
  transition: color .3s ease;
}
.egp-obra__paso b { font: 600 .75rem/1 var(--egp-sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.egp-obra__paso.is-actual { color: #fff; }
.egp-obra__barra { position: relative; height: 2px; background: rgba(255, 255, 255, .22); }
.egp-obra__barra::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(var(--obra-avance, 0));
}

/* Cierre: la casa terminada */
.egp-obra--activa .egp-obra__cierre {
  display: flex;
  align-items: center;
  position: absolute;
  inset: 0;
  padding: var(--egp-barra) 0 120px;
  opacity: var(--obra-cierre, 0);
  transform: translateY(calc(24px - 24px * var(--obra-cierre, 0)));
  pointer-events: none;
}
.egp-obra__cierre-titulo {
  font: 800 clamp(2.5rem, 1rem + 4.2vw, 4.25rem)/1 var(--egp-display);
  letter-spacing: -.045em;
}
.egp-obra__cierre-texto {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
}

@media (max-width: 980px) {
  .egp-obra__intro { min-height: 100svh; }
  .egp-obra__velo {
    background: linear-gradient(0deg, rgba(2, 36, 68, .92) 0%, rgba(2, 36, 68, .55) 45%, rgba(2, 36, 68, .35) 100%);
  }
  .egp-obra--activa .egp-obra__recorrido { height: 280vh; }
  .egp-obra--activa .egp-obra__cierre { align-items: flex-end; padding-bottom: 112px; }
}
@media (max-width: 640px) {
  .egp-obra__pasos { display: flex; gap: 14px; }
  .egp-obra__paso:not(.is-actual) span { display: none; }
  /* La barra termina antes del boton flotante de WhatsApp */
  .egp-obra__etapas .egp-wrap { padding-right: 68px; }
}
@media print {
  .egp-obra__escena, .egp-obra__recorrido { display: none !important; }
}

/* ================================================================== *
 * Portada de las fichas: la foto se mueve sola (video en bucle)
 * assets/video/portadas/<ficha>-h.mp4 (1920x1080) y <ficha>-v.mp4 (el mismo
 * recorte que la foto movil, para pantallas de hasta 767 px). Son la foto de
 * portada animada con IA (Higgsfield, Kling 4.0); el final ya viene fundido
 * con el inicio, asi que el bucle no se nota. Lo activa portadaVideo() en
 * egp.js; mientras tanto, y si no puede, se ve la foto de siempre.
 * ================================================================== */
.egp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.egp-hero__video.is-lista { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .egp-hero__video { display: none; }
}
@media print {
  .egp-hero__video { display: none; }
}

/* ================================================================== *
 * Portada del inicio: paneles de vidrio sobre el video (1-dic-2026)
 * El usuario tomo como ejemplo la portada vieja del sitio: etiqueta
 * "Constructora en Cartagena", titulo dentro de un panel oscuro translucido
 * y el formulario de Yave en una tarjeta oscura con su etiqueta encima. El
 * video de la obra sigue detras. Esquinas redondeadas como el resto del
 * sitio. Solo el inicio (.egp-obra): los formularios Yave de las fichas
 * siguen blancos.
 * ================================================================== */
.egp-obra .egp-hero__panel {
  padding: clamp(28px, 3.4vw, 52px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background: rgba(3, 30, 58, .28);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  container-type: inline-size;   /* para el cqi del titulo */
}
.egp-hero__etiqueta {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  font: 600 .75rem/1.3 var(--egp-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.egp-obra .egp-hero__titulo {
  font-size: clamp(2.5rem, 1rem + 3.9vw, 4.25rem);
  /* Tope por el ancho del panel: entre 984 y 1144 px (iPad horizontal) la
     columna del titulo se angosta por el formulario y el panel cortaba
     "y Construcciones" ("y Construccion"). Sin soporte de cqi queda la de arriba. */
  font-size: min(clamp(2.5rem, 1rem + 3.9vw, 4.25rem), 10.8cqi);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
}
/* "y Construcciones" en azul: el cian de la marca (el azul #044887 no se ve
   sobre el panel oscuro) */
.egp-obra .egp-hero__titulo .egp-hero__azul { color: var(--egp-cian); }
.egp-obra .egp-hero__lead {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  color: rgba(255, 255, 255, .9);
}

/* Formulario de Yave: tarjeta oscura translucida. Van con (1,2,0) y despues
   del bloque "Formulario de Yave en la portada", asi que ganan sin !important. */
.egp-obra .egp-hero__form {
  padding: 0;
  background: none;
  box-shadow: none;
  color: #fff;
}
.egp-obra .egp-hero__form .egp-hero__etiqueta { margin-bottom: 14px; font-size: .6875rem; letter-spacing: .14em; }
.egp-obra #yave-form-egp {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(6, 22, 40, .38);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55);
}
.egp-obra #yave-form-egp .yf-wrap { padding: 28px 28px 26px; }
/* El logo que pone Yave es azul y en la tarjeta oscura no se ve; pasado a
   blanco con filtro quedaba raro. Se oculta: la marca ya esta en el encabezado
   y en el titulo de al lado. */
.egp-obra #yave-form-egp .yf-wrap > img { display: none; }
.egp-obra #yave-form-egp .yf-title,
.egp-obra #yave-form-egp .yf-success-msg { color: #fff; }
.egp-obra #yave-form-egp .yf-subtitle,
.egp-obra #yave-form-egp .yf-help,
.egp-obra #yave-form-egp .yf-steplabel { color: rgba(255, 255, 255, .72); }
.egp-obra #yave-form-egp .yf-label { color: rgba(255, 255, 255, .88); }
.egp-obra #yave-form-egp .yf-required,
.egp-obra #yave-form-egp .yf-error,
.egp-obra #yave-form-egp .yf-form-error { color: #fca5a5; }
.egp-obra #yave-form-egp .yf-input { border-color: transparent; }
.egp-obra #yave-form-egp .yf-input:focus { border-color: var(--egp-cian); box-shadow: 0 0 0 3px rgba(16, 160, 214, .35); }
.egp-obra #yave-form-egp .yf-btn { background: var(--egp-cian); color: var(--egp-tinta); }
.egp-obra #yave-form-egp .yf-btn:hover { background: #fff; }
.egp-obra #yave-form-egp .yf-back { color: #fff; border-color: rgba(255, 255, 255, .35); }
.egp-obra #yave-form-egp .yf-progressbar { background: rgba(255, 255, 255, .2); }

@media (prefers-reduced-motion: no-preference) {
  .egp-js .egp-obra .egp-hero__etiqueta { animation: egp-aparece .9s ease .2s both; }
}
@media (max-width: 640px) {
  .egp-hero__etiqueta { font-size: .6875rem; letter-spacing: .14em; }
  .egp-obra .egp-hero__panel { padding: 26px 22px; border-radius: 22px; }
  .egp-obra #yave-form-egp .yf-wrap { padding: 24px 20px 22px; }
}
/* Celulares angostos: "y Construcciones" cabe en un renglon dentro del panel */
@media (max-width: 420px) {
  .egp-obra .egp-hero__titulo { font-size: 8.4vw; }
}

/* ================================================================== *
 * Video en las tarjetas de proyecto (1-dic-2026)
 * tarjetasVideo() crea el <video> dentro de .egp-card__media; aparece con
 * un fundido cuando empieza a reproducirse (.con-video).
 * ================================================================== */
.egp-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform 1.2s var(--egp-suave);
}
.egp-card__media.con-video .egp-card__video { opacity: 1; }
@media (hover: hover) {
  .egp-card:hover .egp-card__video { transform: scale(1.06); }
}

/* ================================================================== *
 * Destinos: mapa del Caribe junto a las tarjetas (1-dic-2026)
 * Costa real de OpenStreetMap; posiciones en % del viewBox, asi que el mapa
 * conserva su proporcion (1000 x 1303). Lo anima mapaDestinos() en egp.js:
 * sin JS no hay clase .egp-mapa--anima y todo se ve desde el comienzo.
 * ================================================================== */
.egp-destinos-mapa {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}
.egp-destinos-mapa > .egp-mapa { align-self: start; }
/* Escritorio: tarjetas en 2 x 2 con la misma altura del mapa (o mas, si el texto lo pide) */
@media (min-width: 1021px) {
  .egp-destinos-mapa { align-items: stretch; }
  .egp-destinos-mapa .egp-destinos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
  .egp-destinos-mapa .egp-destino { min-height: 0; padding: 22px 20px; }
  .egp-destinos-mapa .egp-destino__nombre { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); }
  .egp-destinos-mapa .egp-destino__texto { font-size: .875rem; }
  .egp-destinos-mapa .egp-destino__proyectos { margin-top: 14px; }
  /* Zona Norte tiene 5 proyectos: botones mas compactos para que no tapen la foto */
  .egp-destinos-mapa a.egp-destino__proyecto { padding: 6px 10px; }
  .egp-destinos-mapa .egp-destino__cuenta { color: rgba(255, 255, 255, .9); font-weight: 500; text-shadow: 0 1px 10px rgba(2, 36, 68, .9), 0 0 2px rgba(2, 36, 68, .6); }
}
.egp-destino { transition: transform .45s var(--egp-suave), box-shadow .45s var(--egp-suave); }
.egp-destino.is-activo {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px var(--egp-cian), 0 24px 44px -22px rgba(4, 72, 135, .6);
}

.egp-mapa {
  position: relative;
  margin: 0;
  aspect-ratio: 1000 / 1303;
  border: 1px solid var(--egp-linea);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  /* Mar en azul marcado (mas hondo mar adentro) y tierra en arena: que no haya duda de cual es cual */
  background:
    radial-gradient(90% 70% at 0% 40%, #a9c8e6 0%, rgba(169, 200, 230, 0) 80%),
    linear-gradient(90deg, #b9d3ec 0%, #cfe2f3 60%, #d9e8f6 100%);
}
.egp-mapa__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.egp-mapa__olas path { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.egp-mapa__olas path:nth-child(1) { stroke-opacity: .8; }
.egp-mapa__olas path:nth-child(2) { stroke-opacity: .5; }
.egp-mapa__olas path:nth-child(3) { stroke-opacity: .28; }
.egp-mapa__relieve { fill: var(--egp-azul); fill-opacity: .14; }
.egp-mapa__tierra { fill: #f3eee6; }  /* arena clara: la tierra se distingue del mar y del fondo blanco */
.egp-mapa__costa { fill: none; stroke: var(--egp-azul); stroke-opacity: .5; stroke-width: 2.2; stroke-linejoin: round; }

/* Rotulos del mar y la ciudad de referencia */
.egp-mapa__mar,
.egp-mapa__ciudad {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.egp-mapa__mar {
  font: 600 .8125rem/1 var(--egp-display);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(4, 72, 135, .62);
}
.egp-mapa__mar--chico {
  font: italic 500 .75rem/1 var(--egp-sans);
  letter-spacing: .01em;
  text-transform: none;
  color: rgba(4, 72, 135, .72);
}
.egp-mapa__ciudad {
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(calc(-100% + 4px), -50%);
  font: 600 .6875rem/1 var(--egp-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--egp-acero);
}
.egp-mapa__ciudad::after {
  content: "";
  order: 2;
  width: 8px;
  height: 8px;
  border: 2px solid var(--egp-acero);
  border-radius: 2px;
  background: #fff;
}

/* Departamentos sobre la tierra: dejan claro que la zona arena es tierra firme */
.egp-mapa__depto {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  font: 700 .75rem/1 var(--egp-display);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(164, 132, 90, .75);
}

/* Destinos */
.egp a.egp-mapa__punto {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translate(-15px, -50%);
  color: var(--egp-tinta);
  text-decoration: none;
  transition: opacity .3s ease;
}
.egp-mapa__marca {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--egp-azul);
  color: #fff;
  font: 700 .8125rem/1 var(--egp-display);
  box-shadow: 0 0 0 3px #fff, 0 10px 22px -8px rgba(4, 72, 135, .7);
  transition: transform .35s var(--egp-suave), background-color .25s ease;
}
.egp-mapa__marca::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--egp-cian);
  border-radius: 50%;
  opacity: 0;
}
.egp-mapa__nombre {
  font: 700 .9375rem/1.15 var(--egp-display);
  letter-spacing: -.01em;
  max-width: 9em;
  text-shadow: 0 0 2px #f3eee6, 0 0 8px #f3eee6, 0 0 14px #f3eee6;
  transition: color .25s ease;
}
.egp-mapa__punto.is-activo .egp-mapa__marca,
.egp a.egp-mapa__punto:hover .egp-mapa__marca { transform: scale(1.16); background: var(--egp-azul-hondo); }
.egp-mapa__punto.is-activo .egp-mapa__nombre { color: var(--egp-azul); }
.egp-mapa.con-activo .egp-mapa__punto:not(.is-activo) { opacity: .45; }
.egp a.egp-mapa__punto:focus-visible { outline: none; }
.egp a.egp-mapa__punto:focus-visible .egp-mapa__marca { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--egp-cian); }
@media (prefers-reduced-motion: no-preference) {
  .egp-mapa__punto.is-activo .egp-mapa__marca::after { animation: egp-mapa-onda 1.5s ease-out infinite; }
}
@keyframes egp-mapa-onda { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }

.egp-mapa__escala {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font: 600 .6875rem/1 var(--egp-sans);
  color: var(--egp-acero);
  pointer-events: none;
}
.egp-mapa__escala i { display: block; height: 5px; border: 1.5px solid var(--egp-acero); border-top: 0; }
.egp-mapa__fuente {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: .625rem;
  color: rgba(55, 71, 85, .55);
}

/* Al llegar: la costa se dibuja, aparece la tierra y luego cada destino.
   Los retrasos solo valen durante la entrada (:not(.is-listo)); despues,
   resaltar un destino responde al instante. */
.egp-mapa--anima .egp-mapa__costa { stroke-dasharray: 1.01 1.01; transition: stroke-dashoffset 2.6s cubic-bezier(.5, .05, .3, 1); }
.egp-mapa--anima:not(.is-dibujado) .egp-mapa__costa { stroke-dashoffset: 1.01; }
.egp-mapa--anima:not(.is-dibujado) :is(.egp-mapa__tierra, .egp-mapa__relieve, .egp-mapa__olas, .egp-mapa__mar, .egp-mapa__ciudad, .egp-mapa__depto, .egp-mapa__escala, .egp-mapa__punto) { opacity: 0; }
.egp-mapa--anima:not(.is-dibujado) .egp-mapa__marca { transform: scale(.2); }
.egp-mapa--anima:not(.is-dibujado) .egp-mapa__nombre { opacity: 0; transform: translateX(-6px); }
.egp-mapa--anima.is-dibujado:not(.is-listo) :is(.egp-mapa__tierra, .egp-mapa__relieve) { transition: opacity 1.4s ease .9s; }
.egp-mapa--anima.is-dibujado:not(.is-listo) .egp-mapa__olas { transition: opacity 1.6s ease 1.4s; }
.egp-mapa--anima.is-dibujado:not(.is-listo) :is(.egp-mapa__mar, .egp-mapa__ciudad, .egp-mapa__depto, .egp-mapa__escala) { transition: opacity 1s ease 1.6s; }
.egp-mapa--anima.is-dibujado:not(.is-listo) .egp-mapa__punto { transition: opacity .3s ease calc(1.7s + var(--i, 0) * .16s); }
.egp-mapa--anima.is-dibujado:not(.is-listo) .egp-mapa__marca { transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(1.7s + var(--i, 0) * .16s); }
.egp-mapa--anima.is-dibujado:not(.is-listo) .egp-mapa__nombre { transition: opacity .5s ease calc(1.85s + var(--i, 0) * .16s), transform .6s var(--egp-suave) calc(1.85s + var(--i, 0) * .16s); }

/* El mar respira: las lineas de la costa laten hacia afuera mientras el mapa esta en pantalla */
@media (prefers-reduced-motion: no-preference) {
  .egp-mapa.is-dibujado.is-en-pantalla .egp-mapa__olas path { animation: egp-mapa-ola 5s ease-in-out infinite; }
  .egp-mapa.is-dibujado.is-en-pantalla .egp-mapa__olas path:nth-child(2) { animation-delay: .7s; }
  .egp-mapa.is-dibujado.is-en-pantalla .egp-mapa__olas path:nth-child(3) { animation-delay: 1.4s; }
}
@keyframes egp-mapa-ola { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 1020px) {
  .egp-destinos-mapa { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .egp-mapa { width: min(100%, 470px); margin-inline: auto; }
}
@media (max-width: 480px) {
  .egp-mapa__mar--chico { display: none; }
  .egp-mapa__mar { font-size: .6875rem; }
  .egp-mapa__depto { font-size: .625rem; letter-spacing: .26em; }
  .egp-mapa__nombre { font-size: .8125rem; max-width: 6.2em; }
  .egp-mapa__marca { width: 26px; height: 26px; font-size: .75rem; }
  .egp a.egp-mapa__punto { transform: translate(-13px, -50%); gap: 7px; }
}

/* ================================================================== *
 * "Quedan X lotes" como notificacion estilo iPhone (1-dic-2026)
 * La crea avisoLotes() en egp.js: vidrio claro, icono de EGP, baja desde
 * arriba con rebote y se va hacia arriba. En escritorio sale arriba a la
 * derecha, bajo el encabezado.
 * Antes se llamaba .egp-aviso y chocaba con el <p class="egp-aviso"> (nota
 * de precios) del inicio y /proyectos/: ese parrafo quedaba fijo, invisible
 * y encima del encabezado, y tapaba el boton del menu. De ahi el nombre
 * propio .egp-notif, y el "a." de los selectores (el toast siempre es un <a>).
 * ================================================================== */
a.egp-notif {
  --notif-x: -50%;
  --notif-arrastre: 0px;
  position: fixed;
  z-index: 100000;
  /* Debajo del encabezado y no encima: en WebKit (Safari) el encabezado
     se pintaba sobre el aviso pese al z-index */
  top: calc(var(--egp-barra) + 8px);
  left: 50%;
  width: min(calc(100% - 16px), 400px);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 24px;
  background: rgba(248, 250, 252, .92);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 18px 44px -12px rgba(15, 39, 64, .38), 0 0 0 .5px rgba(15, 39, 64, .1);
  color: var(--egp-tinta);
  font-family: var(--egp-sans);
  text-decoration: none;
  transform: translate(var(--notif-x), calc(-100% - 30px));
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}
a.egp-notif.is-visible {
  transform: translate(var(--notif-x), var(--notif-arrastre));
  opacity: 1;
  transition: transform .7s cubic-bezier(.2, 1.3, .35, 1), opacity .25s ease;
}
a.egp-notif.is-saliendo {
  transform: translate(var(--notif-x), calc(-100% - 30px));
  opacity: 0;
  transition: transform .4s cubic-bezier(.5, 0, .75, 0), opacity .4s ease .05s;
}
a.egp-notif:active { scale: .98; }
.egp-notif__icono {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(15, 39, 64, .14);
}
/* La imagen del icono trae mucho margen: se agranda dentro del cuadro */
.egp-notif__icono img { width: 100%; height: 100% !important; transform: scale(1.75); }
.egp-notif__texto { display: grid; gap: 2px; min-width: 0; }
.egp-notif__cab { display: flex; align-items: baseline; gap: 10px; }
.egp-notif__cab strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.egp-notif__cab span { flex: none; font-size: .8125rem; color: #6b7785; }
.egp-notif__msg { font-size: .9375rem; line-height: 1.3; color: #1d2b3a; }
@media (min-width: 768px) {
  a.egp-notif { --notif-x: 0px; left: auto; right: 20px; top: calc(var(--egp-barra) + 14px); width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  a.egp-notif,
  a.egp-notif.is-visible,
  a.egp-notif.is-saliendo { transform: translate(var(--notif-x), 0); transition: opacity .3s ease; }
}
