:root {
  --navy: #071225;
  --navy-soft: #0d1c32;
  --navy-light: #152641;

  --orange: #ed7d00;
  --orange-dark: #c96600;
  --orange-light: #fff0df;

  --white: #ffffff;
  --paper: #f8f5ef;
  --sand: #eee7dd;
  --blue-soft: #eaf0f5;

  --ink: #111827;
  --grey-dark: #4f5965;
  --grey: #747b84;
  --grey-light: #dfe2e5;

  --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 Y BASE
====================================================== */

* {
  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 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 3.7vw, 4.1rem);
}

h3 {
  margin-bottom: 12px;
  line-height: 1.2;
}

em {
  color: var(--orange);
  font-style: normal;
}

p {
  color: var(--grey-dark);
}

.container {
  width: min(
    calc(100% - 44px),
    var(--container)
  );
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

/* ======================================================
   ELEMENTOS 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,
    box-shadow 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow:
    0 14px 28px rgba(237, 125, 0, 0.18);
}

.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);
}

.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.text-link--light {
  color: #ffad52;
}

.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;
  font-weight: 600;
}

.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
====================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero-grid {
  display: grid;
  min-height: 690px;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);
  align-items: stretch;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding:
    76px
    64px
    76px
    max(
      24px,
      calc((100vw - var(--container)) / 2)
    );
  background: var(--paper);
}

.hero-content h1 {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(2.7rem, 4.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-description {
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-index {
  position: absolute;
  top: 50%;
  left: max(
    8px,
    calc((100vw - var(--container)) / 2 - 42px)
  );
  display: flex;
  height: 140px;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 700;
  transform: translateY(-50%);
}

.hero-index i {
  width: 1px;
  flex: 1;
  background: rgba(7, 18, 37, 0.28);
}

.hero-index span:last-child {
  color: #9ba1a8;
}

.hero-visual {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--navy);
  clip-path:
    polygon(
      18% 0,
      100% 0,
      100% 100%,
      0 100%
    );
}

.hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter:
    saturate(0.62)
    contrast(0.9)
    brightness(0.58);
  transform: scale(1.015);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(248, 245, 239, 0.34) 0%,
      rgba(248, 245, 239, 0.18) 24%,
      rgba(7, 18, 37, 0.28) 62%,
      rgba(7, 18, 37, 0.52) 100%
    );
  pointer-events: none;
}

/* ======================================================
   LOGOTIPO GEOMÉTRICO DEL HERO
====================================================== */

.hero-brand-symbol {
  position: absolute;
  top: 50%;
  left: 57%;
  z-index: 4;
  display: flex;
  width: 190px;
  height: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  transform: translate(-50%, -50%);
  background: rgba(7, 18, 37, 0.18);
  backdrop-filter: blur(2px);
}

.hero-brand-symbol::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 3px;
  background: var(--orange);
  content: "";
}

.hero-brand-symbol::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 135px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
}

.hero-brand-main::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 150px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
}

.hero-brand-main::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 94px;
  height: 3px;
  background: var(--white);
  content: "";
}

.hero-brand-top {
  position: absolute;
  top: 10px;
  right: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-brand-main {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-family:
    "DM Sans",
    system-ui,
    sans-serif;
  font-size: 4.6rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1;
  text-indent: 0.11em;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.18);
}

.hero-brand-bottom {
  position: absolute;
  bottom: 10px;
  left: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.48em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-corner {
  position: absolute;
  top: 74px;
  right: 40px;
  z-index: 3;
  width: 150px;
  height: 150px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
}

.hero-corner::after {
  position: absolute;
  right: -3px;
  bottom: -48px;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.68);
  content: "";
}

/* ======================================================
   MÉTRICAS
====================================================== */

.metrics {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.metrics-kicker {
  display: block;
  margin-bottom: 30px;
  color: var(--orange-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  display: flex;
  min-width: 0;
  min-height: 150px;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-right: 1px solid var(--border);
}

.metric:last-child {
  border-right: 0;
}

.metric-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 125, 0, 0.35);
  border-radius: 50%;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
}

.metric > div {
  min-width: 0;
}

.metric-number {
  display: block;
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: clamp(2rem, 3.05vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--grey-dark);
  font-size: 0.8rem;
  white-space: nowrap;
}

.metric--featured .metric-number {
  color: var(--orange-dark);
}

.metrics-note {
  max-width: 900px;
  margin: 22px auto 0;
  color: var(--grey);
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}

/* ======================================================
   POSICIONAMIENTO
====================================================== */

.statement {
  overflow: hidden;
  background: var(--white);
  text-align: center;
}

.statement-inner {
  position: relative;
  max-width: 950px;
}

.statement h2 {
  color: var(--navy);
}

.statement p {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
}

.statement-line {
  display: block;
  width: 42px;
  height: 2px;
  margin: 0 auto 28px;
  background: var(--orange);
}

.statement-dots {
  position: absolute;
  top: 50%;
  right: -90px;
  width: 130px;
  height: 90px;
  background-image:
    radial-gradient(
      circle,
      var(--orange) 1.5px,
      transparent 1.7px
    );
  background-size: 18px 18px;
  opacity: 0.7;
  transform: translateY(-50%);
}

/* ======================================================
   SOLUCIONES
====================================================== */

.solutions {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  position: relative;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.solution-image {
  height: 230px;
  margin-bottom: 28px;
  overflow: hidden;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.04);
}

.solution-number {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.66rem;
  font-weight: 700;
}

.solution-card h3 {
  color: var(--navy);
  font-family:
    "Playfair Display",
    Georgia,
    serif;
  font-size: 1.48rem;
}

.solution-card p {
  font-size: 0.83rem;
}

.solution-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  color: var(--grey-dark);
  font-size: 0.75rem;
  list-style: none;
}

.solution-card li::before {
  margin-right: 7px;
  color: var(--orange);
  content: "—";
}

.solution-card > a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 125, 0, 0.4);
  border-radius: 50%;
  color: var(--orange);
  transition:
    color 170ms ease,
    background 170ms ease,
    transform 170ms ease;
}

.solution-card > a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateX(3px);
}

/* ======================================================
   TIPOLOGÍAS
====================================================== */

.portfolio {
  background: var(--navy);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  min-height: 630px;
  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 0.86fr)
    minmax(0, 1.1fr);
}

.portfolio-intro {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 68px 42px 68px 0;
}

.portfolio-intro h2 {
  max-width: 360px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.05rem, 3.15vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.portfolio-intro p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

.portfolio-image {
  min-height: 630px;
  overflow: hidden;
  clip-path:
    polygon(
      18% 0,
      100% 0,
      82% 100%,
      0 100%
    );
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-list {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 45px 0 45px 30px;
}

.portfolio-item {
  border-bottom: 1px solid var(--white-border);
}

.portfolio-item button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr 30px;
  gap: 12px;
  align-items: center;
  padding: 21px 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.portfolio-index {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-item strong {
  font-size: 0.86rem;
}

.portfolio-toggle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-align: right;
}

.portfolio-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 230ms ease;
}

.portfolio-content p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.portfolio-item.is-open .portfolio-content {
  grid-template-rows: 1fr;
}

.portfolio-item.is-open .portfolio-content p {
  padding: 0 40px 20px 54px;
}

/* ======================================================
   MODELO
====================================================== */

.model {
  background: var(--white);
}

.model-heading {
  max-width: 680px;
  margin-bottom: 55px;
}

.model-heading h2 {
  color: var(--navy);
}

.model-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.model-track::before {
  position: absolute;
  top: 35px;
  right: 10%;
  left: 10%;
  height: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(7, 18, 37, 0.24) 0,
      rgba(7, 18, 37, 0.24) 8px,
      transparent 8px,
      transparent 14px
    );
  content: "";
}

.model-step {
  position: relative;
  z-index: 2;
  padding: 0 22px;
}

.model-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid rgba(237, 125, 0, 0.35);
  border-radius: 50%;
  background: var(--white);
  color: var(--orange);
  font-size: 1.25rem;
}

.model-number {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 700;
}

.model-step h3 {
  color: var(--navy);
  font-size: 0.9rem;
}

.model-step p {
  font-size: 0.75rem;
}

/* ======================================================
   RESULTADOS
====================================================== */

.outcomes {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
}

.outcomes-inner {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 60px;
  align-items: center;
}

.outcomes-heading h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 3.2vw, 3.55rem);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outcomes-grid span {
  display: flex;
  min-height: 110px;
  align-items: center;
  padding: 22px;
  border-right: 1px solid var(--white-border);
  border-bottom: 1px solid var(--white-border);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  font-weight: 600;
}

.outcomes-grid span:nth-child(3n) {
  border-right: 0;
}

.outcomes-grid span:nth-child(n + 4) {
  border-bottom: 0;
}

/* ======================================================
   SOBRE DETTEMATCH
====================================================== */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  min-height: 560px;
  overflow: hidden;
  clip-path:
    polygon(
      0 0,
      88% 0,
      100% 100%,
      12% 100%
    );
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  min-width: 0;
}

.about-copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(2.1rem, 3.05vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.about-copy > p {
  max-width: 690px;
}

.about-values {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--border);
}

.about-values article {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.about-values strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.about-values span {
  color: var(--grey);
  font-size: 0.76rem;
}

/* ======================================================
   CONTACTO
====================================================== */

.contact {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}

.contact-background {
  position: absolute;
  inset: 0;
}

.contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-background::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 18, 37, 0.97) 0%,
      rgba(7, 18, 37, 0.84) 48%,
      rgba(7, 18, 37, 0.32) 100%
    );
  content: "";
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
}

.contact-content h2 {
  max-width: 650px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.15rem, 3.35vw, 3.75rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.contact-content p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.contact-content small {
  display: block;
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}

/* ======================================================
   FOOTER
====================================================== */

.site-footer {
  padding: 60px 0 22px;
  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 {
  display: block;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
}

.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(28px);
  transition:
    opacity 650ms ease,
    transform 650ms 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;
  }

  .hero-brand-symbol {
    left: 59%;
    width: 165px;
    height: 165px;
  }

  .hero-brand-main {
    font-size: 4rem;
  }

  .metric {
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .metric-number {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
  }

  .metric-label {
    font-size: 0.74rem;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
  }

  .portfolio-grid {
    grid-template-columns: 0.75fr 1fr;
  }

  .portfolio-intro {
    padding-right: 40px;
  }

  .portfolio-intro h2 {
    max-width: 500px;
  }

  .portfolio-image {
    display: none;
  }

  .model-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px 0;
  }

  .model-track::before {
    display: none;
  }

  .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);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding:
      64px
      max(
        22px,
        calc((100vw - 760px) / 2)
      );
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
  }

  .hero-description {
    max-width: 620px;
  }

  .hero-index {
    display: none;
  }

  .hero-visual {
    min-height: 500px;
    clip-path: none;
  }

  .hero-brand-symbol {
    top: 50%;
    left: 50%;
    width: 175px;
    height: 175px;
  }

  .hero-brand-main {
    font-size: 4.2rem;
  }

  .hero-corner {
    top: 40px;
    right: 28px;
    width: 125px;
    height: 125px;
  }

  .hero-image-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(248, 245, 239, 0.24),
        rgba(7, 18, 37, 0.46)
      );
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .metric-number {
    font-size: clamp(2.3rem, 7vw, 3.5rem);
  }

  .metric-label {
    font-size: 0.82rem;
  }

  .portfolio-grid,
  .outcomes-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-intro {
    padding: 70px 0 35px;
  }

  .portfolio-intro h2 {
    max-width: 500px;
    font-size: clamp(2rem, 5.5vw, 3.15rem);
  }

  .portfolio-list {
    padding: 0 0 60px;
  }

  .about-grid {
    gap: 45px;
  }

  .about-image {
    min-height: 460px;
  }

  .about-copy h2 {
    max-width: 650px;
    font-size: clamp(2.05rem, 5.2vw, 3.15rem);
  }

  .outcomes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcomes-grid span:nth-child(3n) {
    border-right: 1px solid var(--white-border);
  }

  .outcomes-grid span:nth-child(2n) {
    border-right: 0;
  }

  .outcomes-grid span:nth-child(n + 4) {
    border-bottom: 1px solid var(--white-border);
  }

  .outcomes-grid span:nth-child(n + 5) {
    border-bottom: 0;
  }

  .contact-content h2 {
    max-width: 600px;
    font-size: clamp(2.1rem, 5.7vw, 3.35rem);
  }
}

/* ======================================================
   MÓVIL
====================================================== */

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(
      calc(100% - 28px),
      var(--container)
    );
  }

  .section {
    padding: 78px 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-text strong {
    font-size: 1.25rem;
  }

  .brand-text span {
    font-size: 0.48rem;
  }

  .hero-content {
    padding: 52px 20px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
    line-height: 1;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-background-image {
    object-position: 54% center;
  }

  .hero-brand-symbol {
    top: 50%;
    left: 50%;
    width: 138px;
    height: 138px;
  }

  .hero-brand-main {
    font-size: 3.25rem;
  }

  .hero-brand-top {
    top: 8px;
    right: 13px;
    font-size: 0.43rem;
  }

  .hero-brand-bottom {
    bottom: 8px;
    left: 14px;
    font-size: 0.45rem;
  }

  .hero-brand-symbol::before {
    width: 59px;
    height: 2px;
  }

  .hero-brand-symbol::after {
    height: 98px;
  }

  .hero-brand-main::before {
    height: 108px;
  }

  .hero-brand-main::after {
    width: 68px;
    height: 2px;
  }

  .hero-corner {
    top: 24px;
    right: 18px;
    width: 86px;
    height: 86px;
    border-top-width: 2px;
    border-right-width: 2px;
  }

  .hero-corner::after {
    right: -2px;
    bottom: -30px;
    height: 30px;
  }

  .metrics {
    padding-top: 40px;
  }

  .metric {
    padding: 26px 12px;
  }

  .metric-number {
    font-size: clamp(2.05rem, 10vw, 3rem);
    white-space: nowrap;
  }

  .metric-label {
    white-space: normal;
  }

  .statement-dots {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-image {
    height: 280px;
  }

  .portfolio-intro h2 {
    max-width: 100%;
    font-size: clamp(1.95rem, 9vw, 2.85rem);
    line-height: 1.03;
  }

  .portfolio-intro p {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .portfolio-item button {
    grid-template-columns: 32px 1fr 24px;
  }

  .model-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .model-step {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .model-icon {
    grid-row: 1 / 5;
    width: 58px;
    height: 58px;
  }

  .model-number {
    margin-bottom: 3px;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-grid span:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--white-border);
  }

  .outcomes-grid span:last-child {
    border-bottom: 0;
  }

  .about-image {
    min-height: 360px;
    clip-path: none;
  }

  .about-copy h2 {
    max-width: 100%;
    font-size: clamp(2rem, 8.7vw, 2.9rem);
    line-height: 1.03;
  }

  .about-values article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-content {
    min-height: 560px;
  }

  .contact-content h2 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.02;
  }

  .contact-content p {
    font-size: 0.9rem;
  }

  .contact-background::after {
    background:
      linear-gradient(
        90deg,
        rgba(7, 18, 37, 0.96),
        rgba(7, 18, 37, 0.68)
      );
  }

  .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;
  }

  .metric {
    align-items: flex-start;
    gap: 14px;
  }

  .metric-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .metric-number {
    font-size: clamp(1.9rem, 9.2vw, 2.7rem);
  }

  .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;
  }
}