
  :root {
    --navy: #0F2530;
    --navy-deep: #0A1B23;
    --teal: #3484A4;
    --teal-light: #5FA3C0;
    --olive: #9ACD32;
    --olive-dark: #1E2B0E;
    --bone: #F4F2EC;
    --bone-dim: #E4E0D5;
    --stone: #7C8B92;
    --stone-light: #A9B7BC;
    --ink: #16232A;
    --font-sans: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-sans);
    background: var(--bone);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  /* ---------- header ---------- */
  header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  .logo-link .logo-icon { height: 58px; width: auto; }
  .logo-link .logo-text { height: 40px; width: auto; }

  @media (max-width: 480px) {
    .logo-link .logo-icon { height: 44px; }
    .logo-link .logo-text { height: 30px; }
  }

  nav.main-nav {
    display: flex;
    align-items: center;
    gap: 2.4rem;
  }

  nav.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--stone-light);
    letter-spacing: 0.01em;
    transition: color 0.15s;
    white-space: nowrap;
  }

  nav.main-nav a:hover {
    color: var(--olive);
  }

  nav.main-nav a.active {
    color: var(--bone);
  }

  nav.main-nav a.cta-link {
    background: var(--olive);
    color: var(--olive-dark);
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-weight: 600;
  }

  nav.main-nav a.cta-link:hover {
    background: #A0C24A;
    color: var(--olive-dark);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--bone);
    display: block;
  }

  @media (max-width: 860px) {
    nav.main-nav { display: none; }
    .hamburger { display: flex; }
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    background: var(--navy);
    color: var(--bone);
    overflow: hidden;
    padding: 6.5rem 0 5.5rem;
  }

  .hero-diagram {
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--teal-light);
    text-transform: uppercase;
    margin-bottom: 1.6rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.01em;
    margin-bottom: 1.6rem;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--teal-light);
  }

  .hero p.lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--stone-light);
    max-width: 560px;
    margin-bottom: 2.4rem;
  }

  .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    transition: transform 0.15s, background 0.15s;
  }

  .btn-primary {
    background: var(--olive);
    color: var(--olive-dark);
  }
  .btn-primary:hover { background: #A0C24A; transform: translateY(-1px); }

  .btn-ghost {
    border: 1px solid rgba(244,242,236,0.3);
    color: var(--bone);
  }
  .btn-ghost:hover { border-color: var(--bone); transform: translateY(-1px); }

  /* ---------- stats ---------- */
  .stats {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }

  .stat {
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  .stat:first-child { border-left: none; padding-left: 0; }

  .stat .num {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 600;
    color: var(--bone);
    line-height: 1;
    margin-bottom: 0.6rem;
  }

  .stat .label {
    font-size: 0.82rem;
    color: var(--stone-light);
    line-height: 1.4;
  }

  @media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
    .stat { border-left: none; padding-left: 0; }
  }

  /* ---------- section basics ---------- */
  section.block { padding: 5.5rem 0; }

  .section-head {
    max-width: 620px;
    margin-bottom: 3rem;
  }

  .section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.9rem;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    line-height: 1.22;
    color: var(--navy);
  }

  /* ---------- about teaser ---------- */
  .about-teaser {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
  }

  .about-teaser p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3B4A50;
    margin-bottom: 1.3rem;
  }

  .about-teaser .side {
    background: var(--navy);
    color: var(--bone);
    padding: 2.2rem;
    border-radius: 6px;
  }

  .about-teaser .side .yr {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    color: var(--olive);
    font-weight: 600;
  }

  .about-teaser .side p {
    color: var(--stone-light);
    font-size: 0.92rem;
    margin-top: 0.6rem;
  }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--teal);
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  @media (max-width: 860px) {
    .about-teaser { grid-template-columns: 1fr; }
  }

  /* ---------- services teaser ---------- */
  .services-teaser { background: var(--navy); color: var(--bone); }
  .services-teaser .section-head h2 { color: var(--bone); }
  .services-teaser .section-eyebrow { color: var(--teal-light); }

  .service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }

  .service-card {
    background: rgba(244,242,236,0.04);
    border: 1px solid rgba(244,242,236,0.1);
    border-radius: 6px;
    padding: 2rem;
  }

  .service-card .icon {
    width: 42px;
    height: 42px;
    margin-bottom: 1.4rem;
  }

  .service-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
  }

  .service-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--stone-light);
  }

  @media (max-width: 860px) {
    .service-cards { grid-template-columns: 1fr; }
  }

  /* ---------- cta band ---------- */
  .cta-band {
    background: var(--bone-dim);
    padding: 4rem 0;
    text-align: center;
  }

  .cta-band h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.6rem;
  }

  /* ---------- footer ---------- */
  footer {
    background: var(--navy-deep);
    color: var(--stone-light);
    padding: 3.2rem 0 2rem;
  }

  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.6rem;
  }

  .footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }
  .footer-logo-wrap .footer-logo-icon { height: 56px; width: auto; }
  .footer-logo-wrap .footer-logo-text { height: 25px; width: auto; }

  /* ---------- group logos row ---------- */
  .group-row {
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.8rem;
  }
  .group-row .group-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 1rem;
  }
  .group-logos {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
  }
  .group-logos a { display: inline-flex; align-items: center; opacity: 0.85; transition: opacity 0.15s; }
  .group-logos a:hover { opacity: 1; }
  .group-logos img { height: 30px; width: auto; }
  footer .tagline { font-size: 0.85rem; max-width: 280px; line-height: 1.5; }

  footer nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
  footer nav a { font-size: 0.88rem; }
  footer nav a:hover { color: var(--bone); }

  /* ---------- footer nav row ---------- */
  .footer-nav-row {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    padding: 2rem 0 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-nav-row a { font-size: 0.9rem; font-weight: 500; }
  .footer-nav-row a:hover { color: var(--bone); }

  /* ---------- footer logos row (3 equal columns) ---------- */
  .footer-logos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    opacity: 0.9;
    transition: opacity 0.15s;
  }
  .footer-logo-col:last-child { border-right: none; }
  .footer-logo-col:hover { opacity: 1; }
  .footer-logo-col img { height: 100px; width: auto; max-width: 100%; }

  @media (max-width: 700px) {
    .footer-logos-row { grid-template-columns: 1fr; }
    .footer-logo-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.6rem; }
    .footer-logo-col:last-child { border-bottom: none; }
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--stone);
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .footer-bottom a { color: var(--teal-light); }

  /* ---------- page hero (interior pages) ---------- */
  .page-hero {
    position: relative;
    background: var(--navy);
    color: var(--bone);
    overflow: hidden;
    padding: 4.5rem 0 4rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 600;
    line-height: 1.18;
    margin-bottom: 1.2rem;
    max-width: 680px;
  }

  .page-hero p.lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--stone-light);
    max-width: 620px;
  }

  /* ---------- narrative / prose ---------- */
  .prose { max-width: 760px; }
  .prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3B4A50;
    margin-bottom: 1.4rem;
  }

  /* ---------- mission callout ---------- */
  .mission-block {
    background: var(--navy);
    color: var(--bone);
    border-radius: 6px;
    padding: 3rem;
    margin-top: 1rem;
  }
  .mission-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--bone);
  }
  .mission-block .tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.2rem;
  }

  /* ---------- pillars ---------- */
  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
  .pillar {
    background: var(--bone);
    border: 1px solid rgba(15,37,48,0.1);
    border-radius: 6px;
    padding: 2rem;
  }
  .pillar .icon { width: 40px; height: 40px; margin-bottom: 1.3rem; }
  .pillar h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
  .pillar p { font-size: 0.92rem; line-height: 1.6; color: var(--stone); }

  @media (max-width: 860px) {
    .pillars { grid-template-columns: 1fr; }
  }

  /* ---------- tech tags ---------- */
  .tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .tech-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--teal);
    border: 1px solid rgba(52,132,164,0.35);
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
  }

  .two-col {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3.5rem;
  }
  @media (max-width: 860px) {
    .two-col { grid-template-columns: 1fr; }
  }

  /* ---------- photo band ---------- */
  .photo-band {
    width: 100%;
    height: 340px;
    overflow: hidden;
  }
  .photo-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mission-block.with-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
  }
  .mission-block.with-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,37,48,0.88), rgba(15,37,48,0.94));
    z-index: -1;
  }

  /* ---------- services detail ---------- */
  .service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(15,37,48,0.1);
    align-items: center;
  }
  .service-detail:last-child { border-bottom: none; }
  .service-detail.reverse .sd-text { order: 2; }
  .service-detail.reverse .sd-media { order: 1; }

  .sd-num {
    font-family: var(--font-mono);
    color: var(--teal);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
  }
  .sd-text h2 { font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
  .sd-text > p { font-size: 1rem; line-height: 1.7; color: #3B4A50; margin-bottom: 1.3rem; }
  .sd-list { list-style: none; }
  .sd-list li {
    font-size: 0.95rem;
    color: #3B4A50;
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.7rem;
    line-height: 1.5;
  }
  .sd-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    background: var(--olive);
    border-radius: 50%;
  }
  .sd-media {
    border-radius: 6px;
    overflow: hidden;
    height: 320px;
  }
  .sd-media img { width: 100%; height: 100%; object-fit: cover; }

  @media (max-width: 860px) {
    .service-detail, .service-detail.reverse { grid-template-columns: 1fr; }
    .service-detail.reverse .sd-text { order: 1; }
    .service-detail.reverse .sd-media { order: 2; }
  }

  /* ---------- cifras page ---------- */
  .cifras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
  .cifra-card {
    background: var(--navy);
    color: var(--bone);
    border-radius: 6px;
    padding: 2rem 1.8rem;
  }
  .cifra-card .tech-tag-mini {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1rem;
    display: block;
  }
  .cifra-card .big {
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  .cifra-card .desc { font-size: 0.85rem; color: var(--stone-light); line-height: 1.5; }

  @media (max-width: 860px) {
    .cifras-grid { grid-template-columns: 1fr; }
  }

  /* ---------- contacto page ---------- */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .contact-card {
    background: var(--navy);
    color: var(--bone);
    border-radius: 6px;
    padding: 2.6rem;
  }
  .contact-card .row { margin-bottom: 1.6rem; }
  .contact-card .row .k {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 0.4rem;
  }
  .contact-card .row .v { font-size: 1.1rem; }
  .contact-card .row .v a { color: var(--olive); font-weight: 600; }

  @media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
  }

  /* logos externos en tono hueso */
  .ext-bone { filter: brightness(0) invert(1) sepia(.12); }
  .energy-dot { filter: drop-shadow(0 0 6px rgba(154,205,50,.8)); }

  @media (max-width: 860px) {
    nav.main-nav.open { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 0.5rem 2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
    nav.main-nav.open a { padding: 0.95rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    nav.main-nav.open a.cta-link { margin-top: 1rem; text-align: center; border-bottom: none; }
  }

  /* logo a color en el header */
  .logo-link .logo-full { height: 60px; width: auto; }
  @media (max-width: 480px) { .logo-link .logo-full { height: 46px; } }

  /* logos del grupo: misma caja visual para los tres */
  .footer-logo-col img { height: 84px; width: 190px; object-fit: contain; }
  .footer-logo-col .lan-crop { display: block; position: relative; width: 142px; height: 100px; overflow: hidden; }
  .footer-logo-col .lan-crop img { position: absolute; width: 251px; height: auto; max-width: none; left: -56px; top: -23.5px; object-fit: fill; }
  .ext-bone { filter: brightness(0) invert(1); }
  .footer-logo-col img[src="mrm-white.png"] { height: 108px; width: auto; }
  .footer-logo-col { min-height: 140px; }
  .footer-logo-col img[src="laniakea-white.webp"] { height: 100px; width: auto; }

  /* hero + cifras ocupan exactamente la primera pantalla */
  .first-screen { min-height: calc(100vh - 84px); min-height: calc(100svh - 84px); display: flex; flex-direction: column; }
  .first-screen .hero { flex: 1; display: flex; align-items: center; padding: 3rem 0; }
  .first-screen .hero > .wrap { width: 100%; }
  .first-screen .stats { flex: none; }
  @media (max-width: 860px) {
    .first-screen .hero { padding: 1.6rem 0; }
    .first-screen .eyebrow { margin-bottom: 1rem; font-size: 0.7rem; }
    .first-screen .hero h1 { font-size: 2rem; margin-bottom: 1rem; }
    .first-screen .hero p.lead { font-size: 0.98rem; margin-bottom: 1.4rem; }
    .first-screen .btn { padding: 0.75rem 1.2rem; font-size: 0.9rem; }
    .first-screen .stats-grid { padding: 1.4rem 2rem; gap: 1.2rem 0; }
    .first-screen .stat .num { font-size: 1.35rem; margin-bottom: 0.35rem; }
    .first-screen .stat .label { font-size: 0.74rem; }
  }
  @media (min-width: 861px) and (max-height: 780px) {
    .first-screen .hero { padding: 1.5rem 0; }
    .first-screen .eyebrow { margin-bottom: 1rem; }
    .first-screen .hero h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: 1rem; }
    .first-screen .hero p.lead { font-size: 1.02rem; margin-bottom: 1.5rem; }
    .first-screen .stats-grid { padding: 1.5rem 2rem; }
  }

  /* ---------- mapa de proyectos ---------- */
  .map-section { background: var(--navy); color: var(--bone); }
  .map-section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.22; margin-bottom: 1rem; }
  .map-section .section-eyebrow { color: var(--teal-light); }
  .map-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
  .map-lead { color: var(--stone-light); line-height: 1.7; margin-bottom: 2rem; }
  .map-legend { list-style: none; display: grid; gap: 1rem; }
  .map-legend li { display: flex; align-items: center; gap: 0.9rem; color: var(--stone-light); font-size: 0.95rem; }
  .map-legend b { color: var(--bone); font-family: var(--font-mono); font-size: 1.15rem; margin-right: 0.2rem; }
  .map-legend .key { flex: none; width: 40px; height: 24px; border-radius: 4px; display: grid; place-items: center; font: 600 0.72rem var(--font-mono); color: var(--navy); }
  .map-wrap { position: relative; }
  .mx-map { width: 100%; height: auto; display: block; overflow: visible; }
  .mx-map .pin { cursor: default; outline: none; }
  .mx-map .pin text { font: 600 11px var(--font-mono); fill: #0F2530; pointer-events: none; }
  .mx-map .pin rect { transition: transform .15s; }
  .mx-map .pin:hover rect, .mx-map .pin:focus rect { transform: scale(1.12); }
  .mx-map .pulse { opacity: 0; transform-origin: center; transform-box: fill-box; animation: pin-pulse 3.2s ease-out infinite; }
  .mx-map .pin:nth-of-type(3n+1) .pulse { animation-delay: .9s; }
  .mx-map .pin:nth-of-type(3n+2) .pulse { animation-delay: 1.9s; }
  @keyframes pin-pulse { 0% { opacity: .45; transform: scale(.6); } 70%,100% { opacity: 0; transform: scale(1.9); } }
  @media (prefers-reduced-motion: reduce) { .mx-map .pulse { animation: none; } }
  @media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; gap: 2rem; } }

  /* ---------- tooltip compartido ---------- */
  .map-wrap, .charts-section .wrap { position: relative; }
  .chart-tip { position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -100%); background: var(--navy-deep); color: var(--bone); border: 1px solid rgba(244,242,236,.15); font-size: 0.8rem; padding: 0.45rem 0.7rem; border-radius: 4px; white-space: nowrap; transition: opacity .12s; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

  /* ---------- gráficas de capacidad ---------- */
  .charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .chart-card { margin: 0; background: #fff; border: 1px solid rgba(15,37,48,0.1); border-radius: 6px; padding: 1.8rem 1.8rem 1.4rem; }
  .chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
  .chart-card figcaption b { color: var(--navy); font-weight: 600; font-size: 1.02rem; }
  .chart-card figcaption span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--stone); letter-spacing: .08em; }
  .bars { display: grid; gap: 0.95rem; }
  .bar-row { outline: none; }
  .bar-label { font-size: 0.82rem; color: #3B4A50; margin-bottom: 0.35rem; }
  .bar-track { display: flex; align-items: center; gap: 0.6rem; }
  .bar { height: 14px; width: 0; background: var(--teal); border-radius: 0 4px 4px 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
  .chart-card.in .bar { width: calc((100% - 6rem) * var(--p)); }
  .bar-row:hover .bar, .bar-row:focus .bar { background: #2A6E8A; }
  .bar-val { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
  @media (max-width: 860px) { .charts-grid { grid-template-columns: 1fr; } }
  .bar { flex: none; }
  .mx-map .pin-body { transform-box: view-box; }
  @media (max-width: 600px) { .mx-map .pin-body { transform: scale(1.7); } }

  /* foto del equipo en Quiénes somos: proporción 21:9 completa */
  .photo-band--team { height: auto; aspect-ratio: 21 / 9; max-height: 640px; background: var(--navy); }
  .photo-band--team img { object-position: 35% 30%; }
  @media (max-width: 700px) { .photo-band--team { aspect-ratio: 16 / 10; } .photo-band--team img { object-position: 32% 40%; } }
/* ---------- hero con foto (oct 2026) ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(10,27,35,.88) 0%, rgba(15,37,48,.60) 45%, rgba(15,37,48,0) 100%),
    url('hero-cenmar.jpg') center 30% / cover no-repeat,
    var(--navy);
}
.hero-diagram { display: none; }
.hero h1, .hero p.lead { text-shadow: 0 1px 14px rgba(10,27,35,.55); }
.hero .eyebrow { color: #8FC6DC; text-shadow: 0 1px 10px rgba(10,27,35,.8); }
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(10,27,35,.35) 0%, rgba(15,37,48,.58) 40%, rgba(10,27,35,.90) 100%),
      url('hero-cenmar.jpg') 55% 30% / cover no-repeat,
      var(--navy);
  }
}

/* ---------- cta full (servicios, oct 2026) ---------- */
.cta-band.cta-full {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; min-height: 100svh;
  padding: 0; text-align: left; overflow: hidden;
}
.cta-full-media {
  order: 2; position: relative; min-height: 320px;
  background: #C9B9A3 url('cta-ahorro.jpg') 80% center / cover no-repeat;
}
.cta-full-content {
  order: 1; align-self: center;
  max-width: 600px; margin-left: auto;
  padding: 5rem clamp(2rem, 5vw, 4.5rem) 5rem 2rem;
}
.cta-full-eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.cta-full-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--olive); }
.cta-band.cta-full h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.cta-full-lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink); opacity: .85; margin-bottom: 2rem; }
.cta-full-lead strong { color: var(--navy); font-weight: 600; box-shadow: inset 0 -0.45em 0 rgba(154,205,50,.35); }
.cta-full-list { list-style: none; margin: 0 0 2.4rem; padding: 0; border-top: 1px solid rgba(15,37,48,.12); }
.cta-full-list li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid rgba(15,37,48,.12);
  color: var(--navy); font-size: 1rem; line-height: 1.5;
  position: relative; border-radius: 4px; cursor: default;
  transition: background .25s, padding .25s, color .25s, box-shadow .25s;
}
.cta-full-list li::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: var(--olive); border-radius: 2px; transform: scaleY(0); transition: transform .25s;
}
.cta-full-list li:hover {
  background: rgba(154,205,50,.16); padding-left: 1.1rem;
  box-shadow: 0 6px 18px -12px rgba(15,37,48,.45);
}
.cta-full-list li:hover::before { transform: scaleY(1); }
.cta-full-list li:hover span { color: var(--olive-dark); font-weight: 600; }
.cta-full-list span { font-family: var(--font-mono); font-size: .8rem; color: var(--teal); flex: none; transition: color .25s; }
.cta-full .btn-group { justify-content: center; }
.cta-full .btn-primary { font-size: 1rem; padding: 1rem 1.9rem; box-shadow: 0 8px 22px -10px rgba(30,43,14,.55); }
@media (max-width: 860px) {
  .cta-band.cta-full { grid-template-columns: 1fr; min-height: 0; }
  .cta-full-media { order: 0; min-height: 42vh; }
  .cta-full-content { max-width: none; margin: 0; padding: 2.5rem 1.5rem 4rem; }
}

/* ---------- graficas v2 (cifras, oct 2026) ---------- */
.charts-v2 { --c-solar: #86B52A; --c-motor: #1F78A0; }
.charts-v2 .chart-card { display: flex; flex-direction: column; }
.donut-wrap { flex: 1; display: flex; align-items: center; gap: 2rem; padding-top: 1rem; }
.donut { width: min(220px, 48%); flex: none; overflow: visible; }
.donut circle { fill: none; stroke-width: 26; }
.donut-track { stroke: rgba(15,37,48,.06); }
.donut .seg { cursor: pointer; transition: stroke-width .2s, opacity .2s; outline: none; }
.seg-solar { stroke: var(--c-solar); }
.seg-motor { stroke: var(--c-motor); }
.donut:hover .seg { opacity: .45; }
.donut .seg:hover, .donut .seg:focus { opacity: 1; stroke-width: 32; }
.donut-num { font-family: var(--font-mono); font-size: 40px; font-weight: 600; fill: var(--navy); text-anchor: middle; }
.donut-sub { font-family: var(--font-sans); font-size: 12px; fill: var(--stone); text-anchor: middle; letter-spacing: .04em; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.donut-legend li { display: flex; gap: .8rem; align-items: flex-start; }
.donut-legend .sw { width: 12px; height: 12px; border-radius: 3px; margin-top: .3rem; flex: none; }
.sw-solar { background: var(--c-solar); } .sw-motor { background: var(--c-motor); }
.donut-legend b { display: block; color: var(--navy); font-size: .95rem; }
.donut-legend span { display: block; font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); margin-top: .15rem; }
.donut-legend em { font-style: normal; font-size: .8rem; color: var(--stone); }
.tmap { flex: 1; display: flex; gap: 3px; min-height: 290px; margin-top: 1rem; }
.tcol { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile {
  min-height: 38px; border-radius: 4px; padding: .7rem .8rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem;
  cursor: pointer; outline: none; transition: filter .2s, transform .2s;
}
.tile span { font-size: .75rem; line-height: 1.25; }
.tile b { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; }
.tile em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; opacity: .85; }
.t-solar { background: var(--c-solar); color: #16232A; }
.t-motor { background: var(--c-motor); color: #fff; }
.tmap:hover .tile { filter: saturate(.55) brightness(1.08); }
.tmap .tile:hover, .tmap .tile:focus { filter: none; transform: scale(1.015); }
.tile.t-sm { flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; padding: .4rem .8rem; }
.tile.t-sm b { font-size: .9rem; order: -1; white-space: nowrap; }
.tile.t-sm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.t-sm em { white-space: nowrap; }
@media (max-width: 560px) {
  .donut-wrap { flex-direction: column; gap: 1.2rem; }
  .donut { width: 200px; }
  .donut-legend { grid-template-columns: 1fr 1fr; width: 100%; }
  .tile.t-sm span { display: none; }
}

/* ---------- optimizacion movil (oct 2026) ---------- */
@media (max-width: 760px) {
  section.block { padding: 3.6rem 0; }
  .eyebrow { font-size: .75rem; letter-spacing: .12em; }
  .tech-tag-mini { font-size: .75rem; }
  .btn { min-height: 48px; justify-content: center; }
  .hero .btn-group { flex-direction: column; align-items: stretch; }
  .hero .btn-group .btn { width: 100%; }
  .hero { background-image:
      linear-gradient(180deg, rgba(10,27,35,.35) 0%, rgba(15,37,48,.58) 40%, rgba(10,27,35,.90) 100%),
      url('hero-cenmar-m.jpg') !important; }
  /* menu */
  .hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 10px; margin-right: -10px; }
  nav.main-nav.open a { padding: .95rem 0; font-size: 1rem; border-bottom: 1px solid rgba(244,242,236,.08); }
  nav.main-nav.open a.cta-link { margin-top: 1rem; text-align: center; padding: .95rem 1.3rem; border-bottom: 0; }
  /* pie de pagina */
  footer nav { gap: 0 1.4rem; justify-content: center; }
  footer nav a { display: inline-block; padding: .75rem .1rem; font-size: .95rem; }
  a[href^="mailto:"], .link-arrow { display: inline-block; padding: .65rem 0; }
  /* mapa */
  .map-grid { gap: 1.6rem; }
  /* graficas */
  .chart-card figcaption { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .donut-legend { gap: .9rem; grid-template-columns: 1fr; width: auto !important; }
  .donut-legend span { font-size: .95rem; white-space: nowrap; }
  .tmap { min-height: 380px; }
  .tile { padding: .6rem .65rem; }
  .tile span { font-size: .72rem; }
  .tile b { font-size: 1rem; }
}