:root {
  --navy: #071225;
  --navy-soft: #0d1c32;
  --orange: #ed7d00;
  --orange-dark: #c96600;
  --white: #ffffff;
  --paper: #f8f5ef;
  --sand: #eee7dd;
  --blue-soft: #eaf0f5;
  --ink: #111827;
  --grey-dark: #4f5965;
  --grey: #747b84;
  --border: rgba(7, 18, 37, 0.13);
  --white-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 25px 70px rgba(7, 18, 37, 0.1);
  --container: 1240px;
  --header-height: 84px;
}

/* ======================================================
   RESET
====================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.9rem, 4.8vw, 5rem);
}

h2 {
  font-size: clamp(2.1rem, 3.45vw, 3.8rem);
}

h3 {
  margin-bottom: 12px;
  color: var(--navy);
  line-height: 1.15;
}

p {
  color: var(--grey-dark);
}

.container {
  width: min(
    calc(100% - 44px),
    var(--container)
  );
  margin-inline: auto;
}

/* ======================================================
   GENERALES
====================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  background: var(--orange);
  content: "";
}

.eyebrow--light {
  color: #ffad52;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 170ms ease,
    color 170ms ease,
    background 170ms ease,
    border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--orange {
  background: var(--orange);
  color: var(--white);
}

.button--orange:hover {
  background: var(--orange-dark);
}

.button--outline {
  border-color: rgba(7, 18, 37, 0.4);
  background: transparent;
  color: var(--navy);
}

.button--outline:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.button--outline-orange {
  border-color: var(--orange);
  background: transparent;
  color: var(--orange-dark);
}

.button--outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ======================================================
   CABECERA
====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(7, 18, 37, 0.07);
  background: rgba(248, 245, 239, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.55rem;
}

.brand-text span {
  margin-top: 7px;
  color: var(--orange);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav > a:not(.button) {
  position: relative;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
}

.desktop-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transition: transform 170ms ease;
}

.desktop-nav > a:not(.button):hover::after,
.desktop-nav > a.is-active::after {
  transform: scaleX(1);
}

.header-button {
  min-height: 46px;
  padding: 10px 18px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 1px;
  background: var(--navy);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ======================================================
   HERO
====================================================== */

.solutions-hero {
  overflow: hidden;
  background: var(--paper);
}

.solutions-hero-grid {
  display: grid;
  min-height: 620px;
  grid-template-columns: 0.95fr 1.05fr;
}

.solutions-hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 78px 70px 78px 0;
}

.solutions-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--navy);
}

.solutions-hero-copy p {
  max-width: 610px;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.solutions-hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--navy);
  clip-path:
    polygon(
      18% 0,
      100% 0,
      100% 100%,
      0 100%
    );
}

.solutions-hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    saturate(0.64)
    contrast(0.92)
    brightness(0.58);
}

.solutions-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(248, 245, 239, 0.26),
      rgba(7, 18, 37, 0.5)
    );
}

.solutions-hero-symbol {
  position: absolute;
  top: 50%;
  left: 58%;
  z-index: 2;
  display: flex;
  width: 180px;
  height: 180px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.solutions-hero-symbol::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 3px;
  background: var(--orange);
  content: "";
}

.solutions-hero-symbol::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 130px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.solutions-hero-symbol strong {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 4.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.solutions-hero-symbol strong::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 145px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.solutions-hero-symbol strong::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background: var(--white);
  content: "";
}

.symbol-top,
.symbol-bottom {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.symbol-top {
  top: 10px;
  right: 20px;
}

.symbol-bottom {
  bottom: 10px;
  left: 21px;
}

.solutions-hero-corner {
  position: absolute;
  top: 64px;
  right: 38px;
  z-index: 2;
  width: 135px;
  height: 135px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}

/* ======================================================
   DECLARACIÓN
====================================================== */

.solutions-statement {
  padding: 105px 0;
  background: var(--white);
  text-align: center;
}

.solutions-statement-inner {
  max-width: 860px;
}

.statement-line {
  display: block;
  width: 42px;
  height: 2px;
  margin: 0 auto 28px;
  background: var(--orange);
}

.solutions-statement h2 {
  color: var(--navy);
}

.solutions-statement p {
  max-width: 730px;
  margin-right: auto;
  margin-left: auto;
}

/* ======================================================
   ÍNDICE
====================================================== */

.solutions-index {
  padding: 95px 0;
  background: var(--paper);
}

.solutions-index-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.solutions-index-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
}

.solutions-index-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.solutions-index-nav a {
  display: flex;
  min-height: 150px;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--border);
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.45rem;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.solutions-index-nav a:last-child {
  border-right: 0;
}

.solutions-index-nav a:hover,
.solutions-index-nav a.is-current {
  background: var(--navy);
  color: var(--white);
}

.solutions-index-nav span {
  margin-bottom: 25px;
  color: var(--orange);
  font-family:
    "DM Sans",
    sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.solutions-index-nav a.is-current span {
  color: var(--orange);
}

/* ======================================================
   DETALLE DE SOLUCIONES
====================================================== */

.solution-detail {
  padding: 110px 0;
}

.solution-detail--light {
  background: var(--white);
}

.solution-detail--paper {
  background: var(--paper);
}

.solution-detail--navy {
  background: var(--navy);
  color: var(--white);
}

.solution-detail-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 80px;
  align-items: center;
}

.solution-detail-grid--reverse .solution-detail-image {
  order: 2;
}

/* ======================================================
   IMAGEN Y NUMERACIÓN
====================================================== */

.solution-detail-image {
  position: relative;
  min-height: 560px;
  overflow: visible;
}

.solution-detail-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  clip-path:
    polygon(
      0 0,
      88% 0,
      100% 100%,
      12% 100%
    );
}

.solution-detail-grid--reverse .solution-detail-image img {
  clip-path:
    polygon(
      12% 0,
      100% 0,
      88% 100%,
      0 100%
    );
}

.image-number {
  position: absolute;
  z-index: 5;
  display: block;
  color: var(--white);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: clamp(3.5rem, 5vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.82;
  text-shadow:
    0 4px 22px rgba(7, 18, 37, 0.38);
  pointer-events: none;
}

.solution-detail-grid:not(.solution-detail-grid--reverse)
  .image-number {
  right: 30px;
  bottom: 26px;
}

.solution-detail-grid--reverse .image-number {
  right: auto;
  bottom: 26px;
  left: 30px;
}

#gestion .image-number {
  padding: 0;
  background: transparent;
  color: var(--white);
}

#optimizacion .image-number {
  padding: 9px 12px 11px;
  background: rgba(7, 18, 37, 0.78);
  color: var(--white);
  text-shadow: none;
}

/* ======================================================
   CONTENIDO DE SOLUCIONES
====================================================== */

.solution-detail-copy h2 {
  max-width: 630px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.2rem, 3.25vw, 3.6rem);
}

.solution-detail--navy .solution-detail-copy h2 {
  color: var(--white);
}

.solution-lead {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: 0.98rem;
  line-height: 1.72;
}

.solution-detail--navy .solution-lead {
  color: rgba(255, 255, 255, 0.68);
}

.solution-capabilities {
  margin-bottom: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.solution-detail--navy .solution-capabilities {
  border-top-color: var(--white-border);
}

.solution-capabilities > strong {
  display: block;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-capabilities ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-capabilities li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--grey-dark);
  font-size: 0.8rem;
}

.solution-detail--navy .solution-capabilities li {
  color: rgba(255, 255, 255, 0.75);
}

.solution-capabilities li::before {
  color: var(--orange);
  content: "—";
}

.solution-result {
  padding: 24px;
  border-left: 3px solid var(--orange);
  background: rgba(237, 125, 0, 0.06);
}

.solution-detail--navy .solution-result {
  background: rgba(255, 255, 255, 0.05);
}

.solution-result span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-result p {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.solution-detail--navy .solution-result p {
  color: var(--white);
}

/* ======================================================
   MODELO CONECTADO
====================================================== */

.connected-model {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.connected-model-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: center;
}

.connected-model-heading h2 {
  color: var(--white);
  font-size: clamp(2.15rem, 3.3vw, 3.65rem);
}

.connected-model-heading p {
  color: rgba(255, 255, 255, 0.67);
}

.connected-model-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.connected-step {
  position: relative;
  min-height: 220px;
  padding: 28px 22px;
  border-right: 1px solid var(--white-border);
}

.connected-step:last-child {
  border-right: 0;
}

.connected-step::after {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  color: var(--orange);
  content: "→";
  transform: translateY(-50%);
}

.connected-step:last-child::after {
  right: auto;
  bottom: -12px;
  left: 50%;
  top: auto;
  content: "↺";
  transform: translateX(-50%);
}

.connected-step > span {
  display: block;
  margin-bottom: 48px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
}

.connected-step strong {
  display: block;
  margin-bottom: 10px;
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.45rem;
}

.connected-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

/* ======================================================
   FORMAS DE COLABORACIÓN
====================================================== */

.intervention {
  padding: 105px 0;
  background: var(--white);
}

.intervention-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.intervention-heading h2 {
  color: var(--navy);
}

.intervention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intervention-card {
  min-height: 270px;
  padding: 34px 32px;
  border-right: 1px solid var(--border);
}

.intervention-card:last-child {
  border-right: 0;
}

.intervention-card > span {
  display: block;
  margin-bottom: 50px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
}

.intervention-card h3 {
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.7rem;
}

.intervention-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

/* ======================================================
   RESULTADOS
====================================================== */

.solutions-outcomes {
  padding: 95px 0;
  background: var(--blue-soft);
}

.solutions-outcomes-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.solutions-outcomes-heading h2 {
  color: var(--navy);
  font-size: clamp(2.15rem, 3.3vw, 3.7rem);
}

.solutions-outcomes-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solutions-outcomes-list span {
  display: flex;
  min-height: 90px;
  align-items: center;
  padding: 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
}

.solutions-outcomes-list span:nth-child(2n) {
  border-right: 0;
}

.solutions-outcomes-list span:nth-child(n + 7) {
  border-bottom: 0;
}

/* ======================================================
   CTA
====================================================== */

.solutions-cta {
  padding: 105px 0;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(237, 125, 0, 0.14),
      transparent 24%
    ),
    var(--navy);
}

.solutions-cta-inner {
  max-width: 800px;
}

.solutions-cta h2 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(2.25rem, 3.6vw, 3.9rem);
}

.solutions-cta p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
}

/* ======================================================
   FOOTER
====================================================== */

.site-footer {
  padding: 60px 0 22px;
  border-top: 1px solid var(--white-border);
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.15fr 0.75fr 0.9fr;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand > span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-brand strong {
  color: var(--white);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.2rem;
}

.footer-brand small {
  margin-top: 6px;
  color: var(--orange);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand-column p {
  max-width: 230px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.footer-grid nav,
.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.footer-grid nav strong,
.footer-contact strong {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid nav a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
}

.footer-grid nav a:hover,
.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--white-border);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.67rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ======================================================
   ANIMACIONES
====================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   ESCRITORIO MEDIO
====================================================== */

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 18px;
  }

  .desktop-nav > a:not(.button) {
    font-size: 0.74rem;
  }

  .solution-detail-grid {
    gap: 55px;
  }

  .solutions-index-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-index-nav a:nth-child(2) {
    border-right: 0;
  }

  .solutions-index-nav a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .connected-model-grid,
  .solutions-outcomes-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 1900;
    display: grid;
    gap: 4px;
    padding: 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(248, 245, 239, 0.99);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 220ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 12px 4px;
    font-weight: 600;
  }

  .mobile-nav .button {
    margin-top: 8px;
    color: var(--white);
  }

  .solutions-hero-grid {
    grid-template-columns: 1fr;
  }

  .solutions-hero-copy {
    padding: 70px 0;
  }

  .solutions-hero-visual {
    min-height: 430px;
    clip-path: none;
  }

  .solution-detail-grid {
    grid-template-columns: 1fr;
  }

  .solution-detail-grid--reverse .solution-detail-image {
    order: 0;
  }

  .solution-detail-image {
    min-height: 460px;
    overflow: visible;
  }

  .solution-detail-image img,
  .solution-detail-grid--reverse .solution-detail-image img {
    height: 460px;
    clip-path: none;
  }

  .solution-detail-grid:not(.solution-detail-grid--reverse)
    .image-number,
  .solution-detail-grid--reverse
    .image-number {
    right: 22px;
    bottom: 20px;
    left: auto;
  }

  #optimizacion .image-number {
    padding: 8px 11px 10px;
  }

  .connected-model-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connected-step:nth-child(2) {
    border-right: 0;
  }

  .connected-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--white-border);
  }

  .intervention-grid {
    grid-template-columns: 1fr;
  }

  .intervention-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .intervention-card:last-child {
    border-bottom: 0;
  }
}

/* ======================================================
   MÓVIL
====================================================== */

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(
      calc(100% - 28px),
      var(--container)
    );
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-text strong {
    font-size: 1.25rem;
  }

  .brand-text span {
    font-size: 0.48rem;
  }

  .solutions-hero-copy {
    padding: 54px 0;
  }

  .solutions-hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .solutions-hero-visual {
    min-height: 360px;
  }

  .solutions-hero-symbol {
    left: 50%;
    width: 140px;
    height: 140px;
  }

  .solutions-hero-symbol strong {
    font-size: 3.35rem;
  }

  .solutions-hero-corner {
    top: 25px;
    right: 18px;
    width: 88px;
    height: 88px;
    border-top-width: 2px;
    border-right-width: 2px;
  }

  .solutions-statement,
  .solutions-index,
  .solution-detail,
  .connected-model,
  .intervention,
  .solutions-outcomes,
  .solutions-cta {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .solutions-index-nav {
    grid-template-columns: 1fr;
  }

  .solutions-index-nav a:nth-child(n) {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .solutions-index-nav a:last-child {
    border-bottom: 0;
  }

  .solution-detail-image {
    min-height: 340px;
  }

  .solution-detail-image img,
  .solution-detail-grid--reverse .solution-detail-image img {
    height: 340px;
  }

  .image-number {
    right: 16px !important;
    bottom: 15px;
    left: auto !important;
    font-size: 3.25rem;
    line-height: 0.85;
  }

  #optimizacion .image-number {
    padding: 7px 10px 9px;
  }

  .solution-detail-copy h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .solution-capabilities ul {
    grid-template-columns: 1fr;
  }

  .connected-model-steps {
    grid-template-columns: 1fr;
  }

  .connected-step:nth-child(n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--white-border);
  }

  .connected-step:last-child {
    border-bottom: 0;
  }

  .connected-step::after {
    display: none;
  }

  .solutions-outcomes-list {
    grid-template-columns: 1fr;
  }

  .solutions-outcomes-list span:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .solutions-outcomes-list span:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ======================================================
   MÓVIL MUY ESTRECHO
====================================================== */

@media (max-width: 460px) {
  .brand-text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-column {
    grid-column: auto;
  }
}

/* ======================================================
   ACCESIBILIDAD
====================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ======================================================
   AVISO INFORMATIVO SOBRE COOKIES
====================================================== */

.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  max-width: 1180px;
  margin-inline: auto;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy);
  box-shadow:
    0 22px 65px rgba(7, 18, 37, 0.3);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 30px;
  align-items: center;
}

.cookie-notice__content {
  max-width: 810px;
}

.cookie-notice__title {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.cookie-notice__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.65;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-notice__button,
.cookie-notice__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 170ms ease,
    color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.cookie-notice__button:hover,
.cookie-notice__link:hover {
  transform: translateY(-1px);
}

.cookie-notice__button {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.cookie-notice__button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.cookie-notice__link {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.cookie-notice__link:hover {
  border-color: var(--orange);
  color: #ffad52;
}

.cookie-notice__button:focus-visible,
.cookie-notice__link:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 2px solid #ffad52;
  outline-offset: 3px;
}

/* Enlace permanente del footer */

.cookie-settings-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.67rem;
  line-height: inherit;
  text-align: left;
}

.cookie-settings-link:hover {
  color: var(--orange);
}

/* Responsive del aviso */

@media (max-width: 760px) {
  .cookie-notice {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 22px 20px;
  }

  .cookie-notice__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cookie-notice__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-notice__button,
  .cookie-notice__link {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cookie-notice {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 20px 17px;
  }

  .cookie-notice__title {
    font-size: 1.12rem;
  }

  .cookie-notice__text {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice,
  .cookie-notice__button,
  .cookie-notice__link {
    transition: none;
  }
}