:root {
  --bg: #FAFAFF;
  --text: #1A1A1A;
  --muted: #565656;
  --muted-2: #777777;
  --soft: #ECECF2;
  --line: #D7D7E0;
  --line-dark: #1A1A1A;
  --white: #FFFFFF;
  --max: 1180px;
  --measure: 68ch;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

img.is-monochrome {
  filter: grayscale(100%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.corporate-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.mark-symbol {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--text);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.mark-word {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mark-word strong {
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.mark-word span {
  font-size: 0.62rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

/* ==========================================================================
   Layout base
   ========================================================================== */

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section.compact {
  padding-top: clamp(58px, 7vw, 96px);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.eyebrow {
  display: block;
  margin-bottom: 22px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.4vw, 5.85rem);
  line-height: 1;
  letter-spacing: -0.073em;
  font-weight: 680;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 138px) 0 clamp(78px, 11vw, 146px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(1.12rem, 1.72vw, 1.42rem);
  line-height: 1.54;
  color: var(--text);
}

.hero-note {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-visual {
  align-self: stretch;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line-dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
  mix-blend-mode: multiply;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250,250,255,0.04), rgba(250,250,255,0.26));
  pointer-events: none;
}

/* ==========================================================================
   Grids y bloques editoriales
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.section-title {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.75vw, 5.05rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.section-copy {
  max-width: var(--measure);
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  color: var(--text);
}

.section-copy p {
  margin-bottom: 1.35em;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.large-statement {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.8vw, 5.55rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.large-statement em {
  font-style: normal;
  color: var(--muted);
}

/* ==========================================================================
   Modelo
   ========================================================================== */

.model-list {
  margin-top: clamp(46px, 6vw, 76px);
  border-top: 1px solid var(--line-dark);
}

.model-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 82px);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.model-item span {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.2;
}

.model-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 680;
}

.model-item p {
  max-width: 74ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   Funciones matriz
   ========================================================================== */

.matrix-functions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 58px);
  margin-top: clamp(50px, 6vw, 78px);
  border-top: 1px solid var(--line-dark);
}

.matrix-function {
  padding-top: 28px;
}

.matrix-function h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
  font-weight: 680;
}

.matrix-function p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

/* ==========================================================================
   Marcas
   ========================================================================== */

.architecture {
  margin-top: clamp(54px, 7vw, 88px);
  border-top: 1px solid var(--line-dark);
}

.brand-line {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(34px, 5vw, 58px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--text);
  display: grid;
  place-items: center;
  font-weight: 780;
  font-size: 1rem;
  letter-spacing: -0.1em;
  line-height: 1;
  flex: 0 0 auto;
}

.brand-icon.circle {
  border-radius: 50%;
}

.brand-icon.split {
  position: relative;
}

.brand-icon.split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--text);
}

.brand-icon.bars {
  align-items: end;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 11px;
}

.brand-icon.bars i {
  display: block;
  width: 5px;
  background: var(--text);
}

.brand-icon.bars i:nth-child(1) {
  height: 14px;
}

.brand-icon.bars i:nth-child(2) {
  height: 24px;
}

.brand-icon.bars i:nth-child(3) {
  height: 19px;
}

.brand-name small {
  display: block;
  margin-bottom: 7px;
  font-size: 0.69rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.brand-line-content p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.brand-line-content p:last-child {
  margin-bottom: 0;
}

.brand-line-content strong {
  color: var(--text);
  font-weight: 650;
}

.role-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ==========================================================================
   Imagen + texto
   ========================================================================== */

.image-text {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.image-text figure {
  margin: 0;
  border-left: 1px solid var(--line-dark);
  padding-left: 18px;
}

.image-text img {
  display: block;
  width: 100%;
  height: clamp(420px, 34vw, 560px);
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
  mix-blend-mode: multiply;
}

.image-text figcaption {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Principios
   ========================================================================== */

.principles {
  counter-reset: principle;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(54px, 7vw, 104px);
  margin-top: clamp(48px, 6vw, 78px);
  border-top: 1px solid var(--line);
}

.principle {
  counter-increment: principle;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.principle::before {
  content: counter(principle, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.2;
}

.principle h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.principle p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   Cierre / contacto
   ========================================================================== */

.closing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: end;
}

.closing h2 {
  max-width: 780px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.closing p {
  max-width: 580px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  color: var(--muted);
  margin-bottom: 0;
}

.contact-block {
  border-top: 1px solid var(--text);
  padding-top: 28px;
}

.contact-block span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block a,
.contact-block .obfuscated-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  border-bottom: 1px solid currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner a {
  border-bottom: 1px solid transparent;
}

.footer-inner a:hover,
.footer-inner a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

.legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Mosca volver arriba
   ========================================================================== */

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  background: rgba(250, 250, 255, 0.88);
  color: var(--text);
  backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--text);
  color: var(--bg);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ==========================================================================
   Obfuscación de datos
   ========================================================================== */

.obfuscated-email {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.obfuscated-email:hover {
  color: var(--text);
}

.js-obfuscated {
  word-break: break-word;
}

/* ==========================================================================
   Páginas legales
   ========================================================================== */

.legal-page {
  padding-top: 0;
}

.legal-hero {
  padding-bottom: clamp(44px, 6vw, 72px);
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.4vw, 5.85rem);
  line-height: 1;
  letter-spacing: -0.073em;
  font-weight: 680;
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  margin-bottom: 0;
}

.legal-content {
  max-width: 880px;
  padding-top: clamp(48px, 6vw, 84px);
}

.legal-content h2 {
  margin: 0 0 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.legal-content h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.legal-content p,
.legal-content li,
.legal-content dd {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content dl,
.legal-content table {
  margin-bottom: 28px;
}

.legal-content a {
  border-bottom: 1px solid currentColor;
}

.legal-content dl {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content dl div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content dt {
  color: var(--text);
  font-weight: 650;
}

.legal-content dd {
  margin: 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-content th,
.legal-content td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--text);
  font-weight: 650;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .intro-grid,
  .image-text,
  .closing,
  .brand-line,
  .model-item {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-visual {
    min-height: 420px;
  }

  .section-title {
    max-width: 100%;
  }

 .image-text {
    grid-template-columns: 1fr;
  }

  .image-text img {
    height: clamp(320px, 54vw, 460px);
  }
}

  .matrix-functions,
  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    grid-template-columns: 44px 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .hero,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .mark-symbol {
    width: 31px;
    height: 31px;
  }

  .mark-word span {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 64px 0 76px;
  }

  h1,
  .legal-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.55rem);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-visual {
    min-height: 340px;
  }

  .large-statement {
    text-align: left;
  }

  .brand-logo {
    align-items: flex-start;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

    .image-text img {
    height: 260px;
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .scroll-top {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .legal-content dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}