/* RIDET — sistema visual (prototipo)
   Paleta institucional: azul marino profundo, blanco y dorado.
   El dorado proviene del logotipo (#FAB84A / #B27214). */

:root {
  --ink-950: #07152A;
  --ink-900: #0B1E3A;
  --ink-800: #102A4E;
  --ink-600: #3A5578;
  --mist: #EEF2F7;
  --line: #D5DDE8;
  --gold: #FAB84A;
  --gold-deep: #9A5F0C;
  --paper: #FFFFFF;
  --on-dark-muted: #B7C3D4;
}


:root {
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(80px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;

  /* Escala tipográfica (razón ~1.333) */
  --fs-hero: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-statement: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.06rem, 1rem + .3vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink-950); font-weight: 600; }
.skip:focus { top: 16px; }

/* Encabezados: ancho expandido = escala y solidez */
.display {
  font-variation-settings: "wdth" 118;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: block; flex-shrink: 0; }
.logo { height: 48px; width: auto; }
.logo--dark { display: none; }
.is-solid .logo--light { display: none; }
.is-solid .logo--dark { display: block; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding-block: 8px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold);
  transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.lang { display: flex; border: 1px solid currentColor; border-radius: 2px; opacity: .9; }
.lang button {
  font: 600 .75rem/1 var(--font); letter-spacing: .04em;
  color: inherit; background: none; border: 0; padding: 7px 9px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink-950); }

.menu-btn { display: none; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none; border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink-950); }
.btn--gold:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink-950); border-color: #fff; }

.link {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding-bottom: 4px; border-bottom: 2px solid var(--gold);
}
.link:hover { color: var(--gold-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--ink-950);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 55%, transparent) 0%, transparent 28%),
    linear-gradient(20deg, color-mix(in srgb, var(--ink-950) 92%, transparent) 8%, color-mix(in srgb, var(--ink-950) 35%, transparent) 55%, transparent 80%);
}
.hero-content {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(56px, 9vh, 112px);
  padding-left: calc(var(--gutter) + clamp(28px, 3.4vw, 52px));
}
/* La faceta: paralelogramo dorado tomado del isotipo */
.facet {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 72px);
  bottom: clamp(56px, 9vh, 112px);
  width: clamp(10px, 1.2vw, 18px);
  background: linear-gradient(180deg, #FCD38A, var(--gold) 45%, #D88E1E);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  transform-origin: bottom;
  animation: rise 1.1s .2s var(--ease) both;
}
.hero h1 {
  max-width: 13ch;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 700;
  font-variation-settings: "wdth" 116;
  text-wrap: balance;
  animation: reveal 1s .35s var(--ease) both;
}
.hero-sub {
  max-width: 38ch; margin-top: 28px;
  font-size: var(--fs-lead); line-height: 1.5;
  color: rgba(255,255,255,.88);
  animation: reveal 1s .5s var(--ease) both;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation: reveal 1s .6s var(--ease) both; }
.ref-note {
  position: absolute; right: var(--gutter); bottom: 18px;
  font-size: .72rem; color: rgba(255,255,255,.6);
}

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 {
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "wdth" 112;
}
.section-head p { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-600); max-width: 56ch; }
.section-head--inverse p { color: var(--on-dark-muted); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head--row > div:first-child { max-width: 760px; }

/* ---------- Presentación ---------- */
.intro { padding-block: var(--section); }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px; row-gap: 56px;
}
.statement {
  grid-column: 1 / span 9;
  font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -.012em;
  font-weight: 600;
  font-variation-settings: "wdth" 108;
  text-wrap: pretty;
}
.intro-body { grid-column: 7 / span 5; display: grid; gap: 28px; justify-items: start; }
.intro-body p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-600); max-width: 52ch; }

.timeline {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 20px;
  font-weight: 700; font-variation-settings: "wdth" 120;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem);
  color: var(--ink-900);
}
.t-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), var(--ink-900)); }
.t-start { color: var(--gold-deep); }

.pillars {
  grid-column: 1 / -1; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillars div { border-top: 1px solid var(--line); padding-top: 24px; }
.pillars dt { font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; }
.pillars dd { margin: 10px 0 0; color: var(--ink-600); max-width: 36ch; }

/* ---------- Sectores ---------- */
.sectors { padding-bottom: var(--section); }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(220px, 20vw, 300px);
  gap: 8px;
}
.sector { position: relative; overflow: hidden; background: var(--ink-900); }
.sector--feature { grid-column: span 2; grid-row: span 2; }
.sector--tall { grid-row: span 2; }
.sector--wide { grid-column: span 2; }
.sector a { position: absolute; inset: 0; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.sector img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.sector a::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--ink-950) 88%, transparent) 0%, transparent 62%);
}
.sector a:hover img, .sector a:focus-visible img { transform: scale(1.04); }
.sector-text { position: relative; z-index: 2; padding: clamp(20px, 2vw, 32px); display: grid; gap: 8px; }
.sector-name {
  font-weight: 600; font-size: var(--fs-h3); line-height: 1.2;
  padding-left: 14px; border-left: 3px solid var(--gold);
}
.sector--feature .sector-name { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.1rem); font-variation-settings: "wdth" 110; }
.sector-desc { padding-left: 17px; color: rgba(255,255,255,.82); max-width: 44ch; font-size: .95rem; }

/* ---------- Servicios ---------- */
.services { background: var(--ink-900); color: #fff; padding-top: var(--section); }
.lifecycle {
  display: grid; grid-template-columns: repeat(5, 1fr);
  counter-reset: stage;
  border-top: 1px solid rgba(255,255,255,.18);
}
.lifecycle li {
  counter-increment: stage;
  position: relative;
  padding: 32px 24px 0 0;
}
.lifecycle li::before {
  content: counter(stage);
  display: block; margin-bottom: 40px;
  font-weight: 700; font-variation-settings: "wdth" 120;
  font-size: 1rem; color: var(--gold);
}
.lifecycle li::after {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; background: var(--gold);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
}
.lifecycle h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
.lifecycle p { margin-top: 12px; color: var(--on-dark-muted); font-size: .95rem; max-width: 30ch; }
.services-photo { margin: clamp(64px, 8vw, 120px) 0 0; height: clamp(260px, 38vw, 560px); overflow: hidden; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* ---------- Experiencia ---------- */
.experience { padding-block: var(--section); background: var(--mist); }
.exp-controls { display: flex; gap: 8px; flex-shrink: 0; }
.arrow {
  width: 52px; height: 52px; border: 1px solid var(--ink-900); background: none; border-radius: 2px;
  cursor: pointer; position: relative; color: var(--ink-900);
}
.arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.arrow[data-dir="-1"]::before { transform: translateX(2px) rotate(-135deg); }
.arrow:hover { background: var(--ink-900); color: #fff; }
.arrow:disabled { opacity: .3; cursor: default; background: none; color: var(--ink-900); }

.filmstrip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 38vw, 560px);
  gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  margin-bottom: 48px;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip li { scroll-snap-align: start; }
.filmstrip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.filmstrip h3 { margin-top: 20px; font-size: var(--fs-h3); font-weight: 600; }
.filmstrip p { margin-top: 6px; color: var(--ink-600); max-width: 44ch; }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-950); color: #fff;
  padding-block: clamp(96px, 14vw, 200px);
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink-950) 90%, transparent) 30%, color-mix(in srgb, var(--ink-950) 40%, transparent));
}
.cta h2 {
  max-width: 16ch;
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "wdth" 114;
}
.cta p { margin: 20px 0 40px; font-size: var(--fs-lead); color: rgba(255,255,255,.85); max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); padding-top: 80px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding-bottom: 64px; }
.footer-brand img { height: 60px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 32ch; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-small);
}


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lifecycle { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .sector--tall { grid-row: span 1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .logo { height: 38px; }
  .menu-btn {
    display: block; margin-left: auto; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer; position: relative;
  }
  .bars, .bars::before, .bars::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .bars { top: 21px; }
  .bars::before, .bars::after { content: ""; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .menu-open .bars { background: transparent; }
  .menu-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0; margin: 0;
    background: var(--ink-950); color: #fff;
    padding: 32px var(--gutter);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; font-size: 1.6rem; font-weight: 600; padding-block: 12px; font-variation-settings: "wdth" 112; }
  .nav a::after { display: none; }
  .lang { order: 2; margin-left: auto; }
  .menu-btn { order: 3; margin-left: 4px; }
  .site-header.menu-open { background: var(--ink-950); color: #fff; box-shadow: none; }
  .site-header.menu-open .logo--light { display: block; }
  .site-header.menu-open .logo--dark { display: none; }

  .statement, .intro-body { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .hero-content { padding-left: calc(var(--gutter) + 22px); }
  .facet { width: 8px; }
  .actions .btn { width: 100%; }
  .sector-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .sector--feature { grid-column: auto; grid-row: span 1; }
  .sector--feature .sector-desc { display: none; }
  .lifecycle { grid-template-columns: 1fr; row-gap: 0; }
  .lifecycle li { display: grid; grid-template-columns: 40px 1fr; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .lifecycle li::before { margin: 0; grid-row: span 2; }
  .lifecycle li::after { display: none; }
  .lifecycle p { margin-top: 6px; }
  .exp-controls { display: none; }
  .filmstrip { grid-auto-columns: 82vw; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Páginas interiores
   ========================================================= */

/* Hero interior */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 72svh, 760px);
  display: flex; align-items: flex-end;
  background: var(--ink-950); color: #fff;
}
.page-hero--short { min-height: clamp(380px, 52svh, 520px); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: settle 2.4s var(--ease) both; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 60%, transparent) 0%, transparent 30%),
    linear-gradient(15deg, color-mix(in srgb, var(--ink-950) 94%, transparent) 10%, color-mix(in srgb, var(--ink-950) 40%, transparent) 60%, transparent 90%);
}
.page-hero .hero-content { padding-bottom: clamp(48px, 7vh, 88px); }
.page-hero .facet { top: calc(var(--header-h) + 56px); bottom: clamp(48px, 7vh, 88px); }
.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.75rem);
  line-height: 1.02; letter-spacing: -.02em;
  font-variation-settings: "wdth" 114;
  text-wrap: balance;
  animation: reveal 1s .3s var(--ease) both;
}
.page-hero p.lead {
  max-width: 52ch; margin-top: 24px;
  font-size: var(--fs-lead); color: rgba(255,255,255,.88);
  animation: reveal 1s .45s var(--ease) both;
}
.crumb {
  display: inline-block; margin-bottom: 20px;
  font-size: var(--fs-small); font-weight: 500; text-decoration: none;
  color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.4);
}
.crumb:hover { color: #fff; border-color: var(--gold); }

.block { padding-block: var(--section); }
.block--mist { background: var(--mist); }
.block + .block:not(.block--mist):not(.services) { padding-top: 0; }

/* Dos columnas: título a la izquierda, texto a la derecha */
.split {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split h2 {
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "wdth" 112;
}
.prose { display: grid; gap: 20px; max-width: 62ch; }
.prose p { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-600); }
.prose p:first-child { color: var(--ink-900); font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); line-height: 1.45; }

.split + .timeline, .split + .pillars { margin-top: clamp(48px, 6vw, 88px); }
.block .pillars { display: grid; }

/* Calidad, seguridad y cumplimiento */
.quality {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.quality img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quality h2 {
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em;
  font-variation-settings: "wdth" 112; margin-bottom: 40px;
}
.quality dl { margin: 0; display: grid; gap: 0; }
.quality dl div { padding-block: 24px; border-top: 1px solid var(--line); }
.quality dt { font-weight: 600; font-size: var(--fs-h3); }
.quality dd { margin: 8px 0 0; color: var(--ink-600); max-width: 46ch; }

.services.services--flush { padding-bottom: var(--section); }

/* Índice de sectores */
.sector-index { display: grid; gap: clamp(56px, 7vw, 112px); }
.sector-row a {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px);
  align-items: end; text-decoration: none; color: inherit;
}
.sector-row:nth-child(even) a { grid-template-columns: 5fr 7fr; }
.sector-row:nth-child(even) .sector-row-media { order: 2; }
.sector-row-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-900); }
.sector-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector-row a:hover img, .sector-row a:focus-visible img { transform: scale(1.03); }
.sector-row-text { display: grid; gap: 18px; justify-items: start; padding-bottom: 8px; }
.sector-row-name {
  font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.08;
  font-variation-settings: "wdth" 112; letter-spacing: -.01em;
  padding-left: 18px; border-left: 4px solid var(--gold);
}
.sector-row-lead { color: var(--ink-600); font-size: var(--fs-lead); max-width: 40ch; }

/* Detalle de sector */
.types h2 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 16px; }
.types ul { display: grid; }
.types li {
  position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--line);
}
.types li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 10px; background: var(--gold);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
}
.sector-detail { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sector-detail .prose p:first-child { font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.4; font-weight: 500; }

.sector-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: clamp(56px, 7vw, 112px);
}
.sector-gallery figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.sector-gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.sector-gallery img { width: 100%; height: 100%; object-fit: cover; }

.service-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.service-chips li { padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; }

.sector-nav { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.sector-nav h2 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 16px; }
.sector-nav ul { display: grid; }
.sector-nav li a {
  display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500;
}
.sector-nav li a:hover { color: var(--gold-deep); }
.next-sector {
  display: block; padding: clamp(28px, 3vw, 48px); background: var(--ink-900); color: #fff; text-decoration: none;
  transition: background-color .3s var(--ease);
}
.next-sector:hover { background: var(--ink-800); }
.next-sector small { display: block; color: var(--on-dark-muted); font-size: var(--fs-small); margin-bottom: 12px; }
.next-sector span {
  display: block; font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.3rem); line-height: 1.1;
  font-variation-settings: "wdth" 112; padding-left: 16px; border-left: 4px solid var(--gold);
}

/* Experiencia */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters button {
  font: 500 .95rem/1.2 var(--font); padding: 11px 18px; cursor: pointer;
  background: transparent; color: var(--ink-900); border: 1px solid var(--line); border-radius: 2px;
}
.filters button:hover { border-color: var(--ink-900); }
.filters button[aria-pressed="true"] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.exp-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exp-item:nth-child(6n + 1) { grid-column: span 2; }
.exp-item:nth-child(6n + 1) img { aspect-ratio: auto; height: calc(100% - 96px); min-height: 280px; }
.exp-item h2 { margin-top: 18px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.exp-item p { margin-top: 6px; color: var(--ink-600); max-width: 48ch; }
.exp-empty { color: var(--ink-600); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-grid h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1.1;
  font-variation-settings: "wdth" 112; margin-bottom: 12px;
}
.form-note { color: var(--ink-600); font-size: var(--fs-small); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink-900);
  padding: 14px 16px; background: var(--paper);
  border: 1px solid #9AA8BA; border-radius: 2px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 3px var(--gold); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: var(--fs-small); min-height: 1.2em; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink-900); }
.check label { font-weight: 400; }
.check label a { font-weight: 600; }
.form-actions { margin-top: 8px; }
.form-actions .btn { border: 0; cursor: pointer; background: var(--ink-900); color: #fff; }
.form-actions .btn:hover { background: var(--ink-800); }
.form-ok { padding: clamp(28px, 4vw, 48px); background: var(--mist); border-left: 4px solid var(--gold); }
.form-ok:focus { outline: none; }
.form-ok h2 { margin-bottom: 12px; }
.form-ok p { color: var(--ink-600); margin-bottom: 24px; }
.form-ok .link { background: none; border-width: 0 0 2px; font: 600 1rem var(--font); cursor: pointer; color: var(--ink-900); }

.contact-data { background: var(--ink-900); color: #fff; padding: clamp(28px, 3.5vw, 48px); }
.contact-data h2 { color: #fff; }
.contact-data dl { margin: 24px 0 0; display: grid; }
.contact-data dl div { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.contact-data dt { font-size: var(--fs-small); color: var(--on-dark-muted); margin-bottom: 4px; }
.contact-data dd { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.contact-data a { text-decoration: none; }
.contact-data a:hover { color: var(--gold); }
.contact-data .link { margin-top: 8px; font-size: .95rem; }

@media (max-width: 1080px) {
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .exp-item:nth-child(6n + 1) img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 860px) {
  .split, .quality, .sector-detail, .sector-nav, .contact-grid { grid-template-columns: 1fr; }
  .sector-row a, .sector-row:nth-child(even) a { grid-template-columns: 1fr; gap: 20px; }
  .sector-row:nth-child(even) .sector-row-media { order: 0; }
  .quality img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .exp-item:nth-child(6n + 1) { grid-column: auto; }
  .exp-item:nth-child(6n + 1) img { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .sector-gallery { grid-template-columns: 1fr; }
  .sector-gallery figure.wide { aspect-ratio: 4 / 3; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters button { white-space: nowrap; }
}
