/* ==========================================================================
   GEORAM — Hoja de estilos del sitio
   Paleta y tipografía según el Manual de Marca GEORAM:
   Primarios #9D3F22 (rojo óxido) y #8F7D80 (malva) · Secundarios #C8732D (naranja),
   #0098B2 (turquesa), #0A4649 (petróleo), #1D1D1B (negro) · Tipografía Montserrat.
   ========================================================================== */

:root {
  --rojo: #9d3f22;
  --rojo-oscuro: #7e3019;
  --malva: #8f7d80;
  --malva-oscuro: #5f5154;
  --naranja: #c8732d;
  --turquesa: #0098b2;
  --petroleo: #0a4649;
  --petroleo-oscuro: #06302f;
  --negro: #1d1d1b;

  --texto: #2a2425;
  --texto-suave: #5f5154;
  --fondo: #ffffff;
  --fondo-tierra: #f7f3f1;
  --linea: #e6dfdc;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 8px 24px rgba(29, 29, 27, .07);
  --shadow-lg: 0 20px 50px rgba(10, 70, 73, .18);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rojo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rojo-oscuro); }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.18; color: var(--negro); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3, .h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--petroleo); color: #fff; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 48px; height: 48px; }
main:focus { outline: none; }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: .6em;
  margin-bottom: .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--naranja), var(--rojo)); transform: translateY(-.3em); }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: linear-gradient(90deg, var(--naranja), var(--turquesa)); }
.lead, .lead-text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300; line-height: 1.7; color: var(--texto-suave); }
.section-lead { max-width: 720px; font-weight: 300; font-size: 1.1rem; color: var(--texto-suave); }
.prose { font-size: 1.05rem; }
.prose p, .prose li { color: var(--texto); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--naranja); font-size: 1.15rem; font-weight: 300; color: var(--texto-suave); }
.prose img { border-radius: var(--radius-lg); margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.prose figcaption { font-size: .9rem; color: var(--texto-suave); margin-top: .5em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.4em; border: 2px solid transparent; border-radius: var(--radius);
  font: 700 .95rem/1.2 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-oscuro); color: #fff; box-shadow: 0 8px 20px rgba(157, 63, 34, .3); }
.btn-outline { border-color: var(--rojo); color: var(--rojo); background: transparent; }
.btn-outline:hover { background: var(--rojo); color: #fff; }
.btn-light { background: #fff; color: var(--petroleo); }
.btn-light:hover { background: var(--fondo-tierra); color: var(--rojo); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--petroleo); }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: wait; }
.link-more { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; color: var(--rojo); }
.link-more .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); } }
.site-header.is-scrolled { border-color: var(--linea); box-shadow: 0 6px 24px rgba(29, 29, 27, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; padding: 6px 0; }
.brand img { width: auto; height: 34px; }
.nav-toggle { display: none; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.nav-list { display: flex; list-style: none; gap: 2px; margin-left: auto; }
.nav-list a {
  position: relative; display: block; padding: 10px 12px; font-size: .93rem; font-weight: 600; color: var(--texto); text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--naranja);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-list a:hover { color: var(--rojo); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--rojo); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Submenús desplegables */
.nav-list > li { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -8px; padding: 0;
  border: 0; border-radius: 4px; background: none; color: var(--texto-suave); cursor: pointer;
}
.sub-toggle .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sub-toggle:hover { color: var(--rojo); }
.submenu {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* puente para el cursor */
.submenu-wide { min-width: 340px; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.has-sub:hover > .sub-toggle .icon, .has-sub.open > .sub-toggle .icon { transform: rotate(180deg); }
.nav-list .submenu a {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: .9rem; font-weight: 500; line-height: 1.35; color: var(--texto);
}
.nav-list .submenu a::after { display: none; }
.nav-list .submenu a:hover, .nav-list .submenu a:focus-visible { background: var(--fondo-tierra); color: var(--rojo); }
.nav-list > li:nth-last-child(-n+2) > .submenu { left: auto; right: 0; }
/* Selector de idioma desplegable */
.flag { width: 20px; height: auto; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(29, 29, 27, .14); }
.lang-menu { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 10px;
  border: 1px solid var(--linea); border-radius: var(--radius); background: #fff; cursor: pointer;
  font: 700 .82rem var(--font); letter-spacing: .04em; color: var(--texto);
}
.lang-current:hover, .lang-menu.open .lang-current { border-color: var(--petroleo); }
.lang-current .icon { width: 15px; height: 15px; color: var(--texto-suave); transition: transform .2s var(--ease); }
.lang-menu.open .lang-current .icon { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; min-width: 190px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.lang-list a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px;
  font-size: .92rem; font-weight: 500; color: var(--texto); text-decoration: none;
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--fondo-tierra); color: var(--rojo); }
.lang-list a[aria-current="true"] { font-weight: 700; }
.lang-list a .icon { width: 16px; height: 16px; margin-left: auto; color: var(--turquesa); }

.nav-actions .btn { white-space: nowrap; }
@media (max-width: 1320px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 12px; }
  .nav-actions { gap: 10px; }
  .nav-list a { padding: 10px 7px; font-size: .86rem; }
  .nav-list a::after { left: 8px; right: 8px; }
}
@media (max-width: 1180px) {
  :root { --header-h: 66px; }
  /* backdrop-filter convertiría la cabecera en contenedor del menú fijo: se desactiva en móvil */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img { height: 28px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--linea); border-radius: var(--radius); background: #fff; color: var(--negro); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle-close, .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-list { flex-direction: column; margin: 0; }
  .nav-list a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--linea); }
  .nav-list a::after { display: none; }
  /* Submenús como listas desplegables dentro del menú móvil */
  .nav-list > li { flex-wrap: wrap; }
  .nav-list > li > a { flex: 1; }
  .sub-toggle { width: 52px; height: 57px; margin: 0; border-bottom: 1px solid var(--linea); border-radius: 0; }
  .sub-toggle .icon { width: 20px; height: 20px; }
  .has-sub:hover > .sub-toggle .icon { transform: none; }
  .has-sub.open > .sub-toggle .icon { transform: rotate(180deg); }
  .submenu, .submenu-wide {
    position: static; display: none; width: 100%; min-width: 0; padding: 4px 0 10px 14px;
    border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .submenu::before { display: none; }
  .has-sub.open > .submenu { display: block; }
  .nav-list .submenu a { padding: 11px 6px; font-size: 1rem; border-bottom: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .lang-menu { align-self: flex-start; }
  .lang-current { min-height: 48px; padding: 8px 14px; font-size: .95rem; }
  .lang-list { position: static; display: none; margin-top: 8px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .lang-menu.open .lang-list { display: block; }
  .nav-actions .btn { min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(86vh, 780px); color: #fff; overflow: hidden; }
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 30, 31, .92) 0%, rgba(10, 70, 73, .78) 42%, rgba(29, 29, 27, .25) 100%),
    linear-gradient(0deg, rgba(29, 29, 27, .45), rgba(29, 29, 27, 0) 40%);
}
.hero-inner { padding-top: clamp(72px, 12vh, 120px); padding-bottom: clamp(96px, 16vh, 160px); }
.hero h1 { max-width: 15ch; color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.1rem); }
.hero-lead { max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-actions.center { justify-content: center; }
/* Trama: arcos inspirados en el isotipo (manual de marca, elementos gráficos) */
.hero-arc {
  position: absolute; right: -6vw; bottom: -38vw; z-index: -1; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 86%, rgba(0, 152, 178, .55) 86.5%, rgba(0, 152, 178, .55) 92%, transparent 92.5%),
    radial-gradient(closest-side, transparent 93.5%, rgba(200, 115, 45, .65) 94%, rgba(200, 115, 45, .65) 97%, transparent 97.5%);
}
.page-hero .hero-arc { bottom: -46vw; opacity: .9; }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); background: var(--petroleo); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 30, 31, .94) 0%, rgba(10, 70, 73, .82) 55%, rgba(10, 70, 73, .55) 100%); }
.page-hero:not(.has-image)::before { background: radial-gradient(120% 140% at 100% 0%, rgba(0, 152, 178, .35), transparent 55%), linear-gradient(100deg, var(--petroleo-oscuro), var(--petroleo)); }
.page-hero h1 { max-width: 22ch; color: #fff; }
.page-hero .lead { max-width: 720px; color: rgba(255, 255, 255, .88); margin-bottom: 0; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: linear-gradient(90deg, var(--naranja), var(--turquesa)); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 1.4rem; font-size: .84rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: inherit; opacity: .85; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.breadcrumbs [aria-current] { opacity: .65; }
.post-header .breadcrumbs { color: var(--texto-suave); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--fondo-tierra); }
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { max-width: 24ch; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.split-head h2 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* Cifras */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 26px; border-left: 1px solid var(--linea); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1; color: var(--rojo); margin-bottom: 10px; }
.stat strong.stat-text { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.2; color: var(--petroleo); }
.stat > span { display: block; font-size: .9rem; line-height: 1.45; color: var(--texto-suave); }
.stat-num { font-variant-numeric: tabular-nums; }
.stat .stat-plus { display: inline; margin: 0 2px 0 0; font-size: .8em; color: var(--naranja); vertical-align: .08em; }
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-6 { grid-template-columns: repeat(3, 1fr); }
.stats-5 .stat { padding: 26px 22px; }
@media (max-width: 1100px) {
  .stats-5 { grid-template-columns: repeat(3, 1fr); }
  .stats-5 .stat:nth-child(4) { border-left: 0; }
  .stats-5 .stat:nth-child(n+4) { border-top: 1px solid var(--linea); }
}
@media (max-width: 860px) {
  .stats-grid, .stats-5 { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--linea); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .stats-5 .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .stat { padding: 20px 16px; } }

/* Fortalezas */
.pillars { list-style: none; display: grid; gap: 22px; }
.pillar { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--linea); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.pillar:hover { border-color: transparent; box-shadow: var(--shadow); }
.pillar h3 { margin-bottom: .3em; font-size: 1.05rem; }
.pillar p { margin: 0; font-size: .95rem; color: var(--texto-suave); }
.pillar-icon, .feature-icon, .sector-icon, .aside-icon, .contact-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  color: var(--rojo); background: rgba(200, 115, 45, .12);
}
.pillar-icon .icon, .feature-icon .icon, .sector-icon .icon, .aside-icon .icon { width: 26px; height: 26px; }

/* Tarjetas de servicio */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1060px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } }
.service-card, .post-card, .project-card { height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-link, .post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.service-card-link:hover, .post-card-link:hover { color: inherit; }
.service-card-media, .post-card-media, .project-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--petroleo); }
.service-card-media img, .post-card-media img, .project-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover img, .post-card:hover img { transform: scale(1.05); }
.service-card-icon {
  position: absolute; left: 20px; bottom: -26px; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--rojo); color: #fff; box-shadow: 0 6px 16px rgba(157, 63, 34, .35);
}
.service-card-media { overflow: visible; }
.service-card-media::before { content: ""; position: absolute; inset: 0; overflow: hidden; }
.service-card-media img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.service-card:hover .service-card-media img { transform: none; filter: saturate(1.1) brightness(1.04); }
.service-card-icon { z-index: 1; }
.service-card-icon .icon { width: 26px; height: 26px; }
.service-card-body, .post-card-body, .project-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 24px; }
.service-card-body { padding-top: 40px; }
.service-card-num { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--naranja); margin-bottom: .4rem; }
.service-card-body h3, .post-card-body h3 { margin-bottom: .5em; }
.service-card-body p, .post-card-body p { font-size: .95rem; color: var(--texto-suave); }
.service-card-body .link-more, .post-card-body .link-more { margin-top: auto; }
.post-card-placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(70% 90% at 100% 100%, rgba(0, 152, 178, .55), transparent 60%), radial-gradient(60% 70% at 0% 0%, rgba(200, 115, 45, .5), transparent 60%), var(--petroleo); }

/* Ciclo de vida */
.lifecycle { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--petroleo-oscuro), var(--petroleo)); color: #fff; }
.lifecycle h2 { color: #fff; }
.stages { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; position: relative; }
.stages::before { content: ""; position: absolute; left: 7%; right: 7%; top: 26px; height: 2px; background: linear-gradient(90deg, var(--naranja), var(--turquesa)); }
.stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 6px; }
.stage-num {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--petroleo-oscuro); border: 2px solid var(--naranja); font-weight: 800; font-size: 1.1rem;
}
.stages li:nth-child(n+4) .stage-num { border-color: var(--turquesa); }
.stage-name { font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .stages { grid-template-columns: 1fr; gap: 14px; max-width: 420px; margin: 0 auto; }
  .stages::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--naranja), var(--turquesa)); }
  .stages li { flex-direction: row; text-align: left; padding: 0; }
}

/* Sectores */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sector-grid-full { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1060px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sector-grid, .sector-grid-full { grid-template-columns: 1fr; } }
.sector-card { display: flex; flex-direction: column; position: relative; padding: 28px 26px; border: 1px solid var(--linea); border-radius: var(--radius-lg); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sector-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--naranja), var(--rojo)); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.sector-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.sector-card:hover::after { transform: scaleY(1); }
.sector-card h3, .sector-card h2 { margin: 18px 0 .5em; }
.sector-card p { margin: 0; font-size: .95rem; color: var(--texto-suave); }
.sector-card .sector-more { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.sector-card .sector-icon { align-self: flex-start; }
.sector-card[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.sector-card:target { border-color: var(--naranja); box-shadow: var(--shadow); }
.sector-card:target::after { transform: scaleY(1); }

/* Clientes */
/* Banda de logos en movimiento continuo (marquesina) */
.logo-marquee {
  --gap: clamp(28px, 4vw, 56px);
  display: flex; overflow: hidden; padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex; flex-shrink: 0; align-items: center; gap: var(--gap); min-width: 100%;
  margin: 0; padding: 0 var(--gap) 0 0; list-style: none;
  animation: logo-scroll 60s linear infinite;
}
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.logo-item {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: clamp(150px, 16vw, 200px); height: 104px; padding: 16px 20px;
  border: 1px solid var(--linea); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.logo-item:hover { border-color: transparent; box-shadow: var(--shadow); }
.client-logo {
  width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.logo-item:hover .client-logo { filter: none; opacity: 1; transform: scale(1.05); }
.logo-name { font-weight: 700; font-size: .95rem; color: var(--malva-oscuro); text-align: center; }
@media (hover: none) { .client-logo { filter: none; opacity: 1; } }
@media (max-width: 600px) {
  .logo-track { animation-duration: 45s; }
  .logo-item { width: 140px; height: 88px; padding: 12px 14px; }
  .client-logo { max-height: 52px; }
}
/* Sin animación para quien la desactiva en su dispositivo: cuadrícula fija */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0 16px; gap: 16px; }
  .logo-track[aria-hidden="true"] { display: none; }
}

/* Llamada a la acción */
.cta-band { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 80px) 0; background: var(--rojo); color: #fff; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%;
  border: 36px solid rgba(200, 115, 45, .55); box-shadow: 0 0 0 26px rgba(255, 255, 255, .06); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 620px; font-size: 1.1rem; font-weight: 300; color: rgba(255, 255, 255, .92); }

/* Nosotros: texto + pestañas Misión/Visión + imagen */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }
.about-intro-text { display: flex; flex-direction: column; gap: 32px; }
.about-intro-media { position: relative; margin: 0; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-intro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-intro-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--naranja), var(--rojo) 50%, var(--turquesa)); }
@media (max-width: 900px) { .about-intro-media { min-height: 0; aspect-ratio: 4 / 3; } }
.mv-tabs { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.mv-tablist { display: grid; grid-template-columns: 1fr 1fr; background: var(--fondo-tierra); }
.mv-tablist [role="tab"] {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px; border: 0; border-bottom: 3px solid transparent;
  background: none; font: 700 1.05rem var(--font); color: var(--texto-suave); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.mv-tablist [role="tab"] .icon { width: 22px; height: 22px; }
.mv-tablist [role="tab"]:hover { color: var(--rojo); }
.mv-tablist [role="tab"][aria-selected="true"] { background: var(--petroleo); color: #fff; border-bottom-color: var(--naranja); }
.mv-panel { padding: 28px 30px 30px; }
.mv-panel p { margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--texto); }
.mv-panel:focus-visible { outline-offset: -3px; }

/* Nosotros */
.mv-cards { display: grid; gap: 22px; }
.mv-card { padding: 30px; border-radius: var(--radius-lg); background: var(--petroleo); color: rgba(255, 255, 255, .92); }
.mv-card h2 { font-size: 1.3rem; color: #fff; }
.mv-card p { margin: 0; font-weight: 300; }
.mv-card-alt { background: var(--fondo-tierra); color: var(--texto); border-left: 4px solid var(--naranja); }
.mv-card-alt h2 { color: var(--rojo); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.feature h3 { margin: 18px 0 .5em; }
.feature p { margin: 0; font-size: .95rem; color: var(--texto-suave); }

/* Lista de servicios */
.service-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.service-row { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.service-row-media img { width: 100%; height: 100%; object-fit: cover; }
.service-row-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--naranja), var(--rojo) 50%, var(--turquesa)); }
.service-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.service-row h2 a { color: inherit; text-decoration: none; }
.service-row h2 a:hover { color: var(--rojo); }
.service-row p { color: var(--texto-suave); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row-media { order: 0; } }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 1.6rem; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--turquesa); stroke-width: 2.4; }
.check-list.compact { gap: 6px; }
.check-list.compact li { font-weight: 600; font-size: .95rem; }

/* Detalle de servicio */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main > .lead-text { margin-bottom: 2rem; color: var(--texto); }
.detail-section { padding: 26px 0; border-top: 1px solid var(--linea); }
.detail-section h3 { color: var(--rojo); }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
@media (max-width: 960px) { .detail-aside { position: static; } }
.aside-card { padding: 26px; border-radius: var(--radius-lg); background: var(--fondo-tierra); }
.aside-cta { background: var(--petroleo); color: rgba(255, 255, 255, .92); }
.aside-cta .aside-icon { background: rgba(255, 255, 255, .12); color: #fff; margin-bottom: 14px; }
.aside-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-suave); }
.aside-links { list-style: none; display: grid; gap: 4px; }
.aside-links a { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: var(--radius); color: var(--texto); font-weight: 600; font-size: .93rem; text-decoration: none; }
.aside-links a:hover { background: #fff; color: var(--rojo); }
.aside-links .icon { color: var(--naranja); }

/* Chips y filtros */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--linea); border-radius: 999px;
  background: #fff; color: var(--texto); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .2s;
}
.chip .icon { color: var(--naranja); }
.chip:hover { border-color: var(--rojo); color: var(--rojo); }
.chip.is-active { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* Filtro de categorías de noticias: tarjetas con ícono y número de entradas */
.news-filter { margin: 0 0 40px; scroll-margin-top: 110px; }
.news-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.news-filter-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border: 1px solid var(--linea); border-radius: 14px;
  background: #fff; color: var(--texto); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(10, 70, 73, .05); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s, color .2s;
}
.news-filter-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(200, 115, 45, .12); color: var(--naranja); transition: background .2s, color .2s;
}
.news-filter-icon .icon { width: 20px; height: 20px; }
.news-filter-count {
  min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--fondo-tierra); color: var(--texto-suave);
  font-size: .78rem; font-weight: 800; text-align: center;
}
.news-filter-item:hover { color: var(--rojo); border-color: rgba(157, 63, 34, .35); box-shadow: var(--shadow); transform: translateY(-2px); }
.news-filter-item:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; }
.news-filter-item.is-active { background: var(--petroleo); border-color: var(--petroleo); color: #fff; box-shadow: 0 8px 20px rgba(10, 70, 73, .25); }
.news-filter-item.is-active .news-filter-icon { background: var(--naranja); color: #fff; }
.news-filter-item.is-active .news-filter-count { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 680px) {
  /* En móvil: una fila deslizable para no ocupar media pantalla */
  .news-filter ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .news-filter ul::-webkit-scrollbar { display: none; }
  .news-filter li { scroll-snap-align: start; flex: none; }
}

/* Etiqueta de categoría sobre la foto de cada tarjeta */
.post-card-badge {
  position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--petroleo); font-size: .74rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.post-card-badge .icon { width: 15px; height: 15px; color: var(--naranja); }
.post-meta .icon-sm { width: 16px; height: 16px; color: var(--naranja); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(200, 115, 45, .14); color: var(--rojo-oscuro); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.notice { padding: 14px 18px; margin-bottom: 28px; border-left: 4px solid var(--turquesa); background: rgba(0, 152, 178, .08); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 24px; border: 1px dashed var(--linea); border-radius: var(--radius-lg); text-align: center; color: var(--texto-suave); }
.empty-state .icon { color: var(--naranja); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; font-weight: 600; }

/* Proyectos */
.project-card { box-shadow: var(--shadow); }
.project-card .tag { align-self: flex-start; margin-bottom: 12px; }
.project-facts { display: grid; gap: 6px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--linea); font-size: .9rem; }
.project-facts div { display: flex; gap: 8px; }
.project-facts dt { font-weight: 700; }
.project-facts dd { margin: 0; color: var(--texto-suave); }

/* Noticias */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .85rem; color: var(--texto-suave); }
.post-header { padding: clamp(40px, 6vw, 72px) 0 32px; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-cover { margin: 0 auto 40px; }
.post-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); }
.post-body { padding-bottom: 32px; }
.post-back { padding-bottom: 64px; }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border-top: 5px solid var(--rojo); }
.form-note { font-size: .85rem; color: var(--texto-suave); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field .optional { font-weight: 400; color: var(--texto-suave); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfc5c2; border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font); color: var(--texto); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-suave) 50%), linear-gradient(135deg, var(--texto-suave) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turquesa); box-shadow: 0 0 0 3px rgba(0, 152, 178, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 0; font-size: .85rem; font-weight: 600; color: #b3261e; }
.field-help { margin: 0; font-size: .85rem; color: var(--texto-suave); }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rojo); flex: none; }
.field-check label { flex: 1; font-weight: 400; }
.field-check .field-error { flex-basis: 100%; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius); background: #fdecea; color: #8c1d18; font-weight: 600; }
.form-success { padding: 24px 0; text-align: center; }
.form-success .icon { margin: 0 auto 12px; color: #fff; background: var(--turquesa); border-radius: 50%; padding: 10px; stroke-width: 2.6; }
.form-success:focus { outline: none; }
.contact-aside { padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--fondo-tierra); }
.contact-list { list-style: none; display: grid; gap: 22px; margin-bottom: 24px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-suave); }
.contact-list a { color: var(--texto); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--rojo); }
.contact-icon { width: 46px; height: 46px; }
.contact-icon .icon { width: 22px; height: 22px; }
.contact-note { margin: 0; font-size: .9rem; color: var(--texto-suave); }

/* Únete a nuestro equipo */
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid-4 { grid-template-columns: 1fr; } }
.job-list { display: grid; gap: 20px; }
.job {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px;
  padding: 28px; border: 1px solid var(--linea); border-left: 4px solid var(--naranja); border-radius: var(--radius-lg); background: #fff;
}
.job-main { flex: 1 1 480px; min-width: 0; }
.job h3 { margin-bottom: .5em; }
.job-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 12px; font-size: .9rem; }
.job-facts div { display: flex; gap: 6px; }
.job-facts dt { font-weight: 700; }
.job-facts dd { margin: 0; color: var(--texto-suave); }
.job-desc p { color: var(--texto-suave); margin-bottom: .6em; }
.cv-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 36px; padding: 32px; border-radius: var(--radius-lg); background: var(--petroleo); color: rgba(255, 255, 255, .9);
}
.cv-box p { margin: 0 0 6px; max-width: 640px; font-size: 1.05rem; }
.cv-email { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.cv-email:hover { color: #fff; }
.careers-band { padding: clamp(40px, 6vw, 64px) 0; }
.careers-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.careers-band-inner > div { flex: 1 1 360px; }
.careers-band h2 { margin-bottom: .3em; }
.careers-band p { margin: 0; color: var(--texto-suave); }

/* Mapa de la oficina (se carga al hacer clic, sin cookies de terceros antes) */
.office { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 860px) { .office { grid-template-columns: 1fr; } }
.office-info { padding: 32px; background: var(--fondo-tierra); }
.office-info h2 { font-size: 1.3rem; }
.office-info address { display: flex; gap: 12px; font-style: normal; margin-bottom: 18px; }
.office-info address .icon { color: var(--rojo); margin-top: 3px; }
.office-map { position: relative; min-height: 340px; background: radial-gradient(60% 80% at 70% 30%, rgba(0, 152, 178, .25), transparent 60%), linear-gradient(135deg, var(--petroleo), var(--petroleo-oscuro)); }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: rgba(255, 255, 255, .9); }
.map-consent .icon { width: 44px; height: 44px; color: var(--naranja); }
.map-consent p { margin: 0; max-width: 360px; font-size: .9rem; }

/* Error */
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin-bottom: .2em; background: linear-gradient(90deg, var(--naranja), var(--rojo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--negro); color: rgba(255, 255, 255, .78); font-size: .93rem; }
.footer-arcs { position: absolute; left: -220px; bottom: -300px; width: 560px; height: 560px; border-radius: 50%; border: 28px solid rgba(143, 125, 128, .22); box-shadow: 0 0 0 22px rgba(200, 115, 45, .12); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 190px; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.social-follow { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; color: #fff; text-decoration: none; }
.social-follow:hover { color: #fff; text-decoration: underline; }
.social-follow .icon-linkedin { width: 28px; height: 28px; flex: none; border-radius: 4px; }
.social-follow-dark { color: var(--texto); margin-top: 20px; }
.social-follow-dark:hover { color: #0A66C2; }
.footer-brand .btn { display: flex; width: max-content; }
.footer-title { margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a, .footer-contact a, .footer-bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { margin-top: 2px; color: var(--naranja); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animación al hacer scroll (solo si el usuario no prefiere movimiento reducido) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-arc, .nav-toggle { display: none !important; }
  .hero, .page-hero { color: #000; background: none; min-height: 0; }
  .hero h1, .page-hero h1 { color: #000; }
}

/* ---------- Buscador de proyectos (filtros + mapa + fichas) ---------- */
.finder-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 48px; }
@media (max-width: 900px) { .finder-layout { grid-template-columns: minmax(0, 1fr); } }
.finder-filters { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.finder-filters select, .finder-filters input[type="search"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linea); border-radius: var(--radius-lg); background: #fff;
  font: 500 .92rem var(--font); color: var(--texto); box-shadow: 0 2px 8px rgba(10, 70, 73, .04);
}
.finder-filters select:focus, .finder-filters input:focus { outline: 3px solid rgba(0, 152, 178, .35); outline-offset: 1px; border-color: var(--turquesa); }
.finder-count { display: flex; align-items: center; gap: 6px; padding: 4px 2px; font-size: .88rem; color: var(--texto-suave); }
.finder-count span { font-weight: 800; color: var(--petroleo); }
.finder-reset { margin-left: auto; border: 0; background: none; padding: 0; font: 700 .85rem var(--font); color: var(--rojo); cursor: pointer; text-decoration: underline; }
.finder-list { list-style: none; margin: 0; padding: 6px; border: 1px solid var(--linea); border-radius: var(--radius-lg); background: #fff; overflow-y: auto; max-height: 360px; flex: 1; }
@media (max-width: 900px) { .finder-list { max-height: 240px; } }
.finder-list button {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  text-align: left; font: 500 .88rem/1.35 var(--font); color: var(--texto); cursor: pointer;
}
.finder-list button:hover, .finder-list .is-active button { background: var(--fondo-tierra); }
.finder-list strong { display: block; font-weight: 700; }
.finder-list small { display: block; color: var(--texto-suave); font-size: .78rem; }
.finder-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 3px rgba(200, 115, 45, .18); }
.finder-dot.is-off { background: var(--linea); box-shadow: none; }
.finder-map-wrap { display: flex; flex-direction: column; min-width: 0; }
.finder-map { flex: 1; min-height: 560px; border-radius: var(--radius-lg); overflow: hidden; background: #dfe8e8; box-shadow: var(--shadow); z-index: 0; }
@media (max-width: 900px) { .finder-map { min-height: 380px; } }
.finder-map.is-empty { display: none; }
.finder-note { margin: 10px 0 0; font-size: .8rem; color: var(--texto-suave); }
.finder-noscript { padding: 24px; }
.finder-empty { padding: 40px 20px; text-align: center; color: var(--texto-suave); }
.map-toggle { display: flex; overflow: hidden; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); background: #fff; }
.map-toggle button { padding: 8px 14px; border: 0; background: #fff; font: 700 .8rem var(--font); color: var(--texto); cursor: pointer; }
.map-toggle button.is-active { background: var(--petroleo); color: #fff; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.4; }
.map-pop-title { display: block; margin-bottom: 4px; font-size: .95rem; color: var(--petroleo); }
.map-pop-line { display: block; font-size: .8rem; color: var(--texto-suave); }
.map-pop-link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .82rem; color: var(--rojo); }
.project-grid .project-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.project-card:target { outline: 3px solid var(--naranja); outline-offset: 3px; }
.project-card-media { position: relative; }
.project-card .project-card-body h3 { margin-bottom: .5em; }
.project-card .project-card-body p { font-size: .93rem; color: var(--texto-suave); }

/* ---------- Sello de aniversario (pie de página) ---------- */
.footer-brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; margin-bottom: 18px; }
.footer-brand-row img { flex: none; width: 116px; margin: 0 !important; }
.footer-anniversary { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.footer-anniversary-num { font-size: 2.4rem; font-weight: 800; line-height: .9; letter-spacing: -.03em; background: linear-gradient(135deg, #f1a65f, var(--naranja) 45%, #e0574a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-anniversary-text { display: flex; flex-direction: column; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.footer-anniversary-text small { font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: rgba(255, 255, 255, .7); }
.project-card .post-card-link:hover h3 { color: var(--rojo); }
.project-card .post-card-link:hover img { transform: scale(1.05); }

/* ---------- Sectores con foto (foto arriba, nombre y descripción debajo) ---------- */
.sector-card-photo { padding: 0; border: 0; box-shadow: var(--shadow); }
.sector-card-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector-card-photo::after { z-index: 2; }
.sector-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--petroleo); }
.sector-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sector-card-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 48, 47, .45)); pointer-events: none; }
.sector-card-photo:hover .sector-card-media img { transform: scale(1.06); }
.sector-card-photo .sector-icon { position: absolute; left: 20px; bottom: 16px; z-index: 1; width: 48px; height: 48px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.sector-card-photo .sector-icon .icon { width: 24px; height: 24px; }
.sector-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.sector-card-photo h2, .sector-card-photo h3 { margin: 0 0 .45em; }
.sector-card-photo .sector-more { padding-top: 16px; }
.sector-grid-full { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .sector-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sector-grid-full { grid-template-columns: 1fr; } }
