/* Grupo Legales — identidad propia: expediente, sello y papel */
:root {
  --night: #121417;
  --ink: #1c1f24;
  --seal: #1f6b4a;
  --seal-deep: #18563b;
  --brass: #1f6b4a;
  --brass-soft: #2e8a60;
  --paper: #f3f4f6;
  --cream: #f7f8fa;
  --stone: #e6e8ec;
  --mute: #5c6370;
  --line: rgba(18, 20, 23, 0.1);
  --white: #ffffff;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 3.2rem));
  --header-h: 4.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 50px rgba(26, 21, 18, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: #f7f8fa;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--seal); }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--night);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  font-weight: 500;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.lead { font-size: 1.12rem; color: var(--mute); max-width: 42rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-seal { background: var(--seal); color: var(--white); }
.btn-seal:hover { background: var(--seal-deep); color: var(--white); }
.btn-brass { background: var(--seal); color: #fff; }
.btn-brass:hover { background: var(--seal-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.38);
  color: var(--paper);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--paper); }
.btn-line {
  background: transparent;
  border-color: var(--night);
  color: var(--night);
}
.welcome-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 15, 13, 0.72);
  border: 1px solid rgba(201, 163, 106, 0.28);
  padding: 0.7rem 1rem;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(10px);
}
.welcome-bar strong {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.welcome-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.88rem;
}
.welcome-bar a { text-decoration: none; color: var(--paper); opacity: 0.9; }
.welcome-bar a:hover { color: var(--brass); }

.gates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gates article {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}
.gates img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gates article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,15,13,0.15), rgba(18,15,13,0.88));
}
.gates .gate-copy { position: relative; z-index: 1; }
.gates h3 { font-size: 1.85rem; margin: 0 0 0.4rem; }
.gates p { margin: 0 0 1rem; color: rgba(244,239,230,0.82); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  pointer-events: auto;
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}
.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header--light .nav a:hover,
.site-header--light .nav a.active { color: var(--seal); }
.site-header--light .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}
.site-header--hero { background: transparent; color: var(--paper); }
.site-header--hero.is-solid,
.site-header--solid {
  background: rgba(18, 20, 23, 0.94);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}

.hero-live {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  background: var(--white);
}
.hero-live-photo {
  position: relative;
  min-height: 420px;
}
.hero-live-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-live-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-live-copy {
  padding: 3.2rem 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #e8f6ee;
  color: var(--seal-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero-live-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.facts {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}
.facts li { font-size: 0.95rem; color: var(--mute); }
.facts strong {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gates article {
  background: var(--white);
  color: var(--ink);
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 20, 23, 0.06);
}
.gates img {
  position: relative;
  height: 210px;
}
.gates article::after { display: none; }
.gates .gate-copy { padding: 1.25rem 1.2rem 1.35rem; }
.gates h3 { font-size: 1.35rem; }
.gates p { color: var(--mute); }
.site-header--hero.is-solid,
.site-header--solid {
  background: rgba(26, 21, 18, 0.94);
  color: var(--paper);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.logo span {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 400;
}
.logo:hover { color: var(--brass); }

.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  cursor: pointer;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9rem;
}
.nav a { text-decoration: none; opacity: 0.86; pointer-events: auto; cursor: pointer; }
.nav a:hover,
.nav a.active { opacity: 1; color: var(--brass); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,21,18,0.28) 0%, rgba(26,21,18,0.55) 42%, rgba(26,21,18,0.92) 100%),
    linear-gradient(90deg, rgba(26,21,18,0.45), transparent 55%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 7.2rem 0 3.2rem;
}
.hero-copy .lead { color: rgba(244,239,230,0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244,239,230,0.18);
  font-size: 0.88rem;
}
.hero-meta strong { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.65; font-weight: 500; margin-bottom: 0.2rem; }

.seal {
  width: 4.6rem;
  height: 4.6rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brass);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 6px rgba(201, 163, 106, 0.12);
}

/* Sections */
.section { padding: 5.2rem 0; }
.section-head { margin-bottom: 2.2rem; max-width: 40rem; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split-visual {
  position: relative;
  min-height: 420px;
}
.split-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}
.split-visual .caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--night);
  color: var(--paper);
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dossier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.dossier article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.4rem;
  min-height: 220px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.dossier article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dossier .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brass);
  margin: 0 0 0.7rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}
.plan-copy {
  background: var(--night);
  color: var(--paper);
  padding: 2.2rem 2rem;
}
.plan-copy .eyebrow { color: var(--brass); }
.plan-copy .lead { color: rgba(244,239,230,0.78); max-width: none; }
.plan-copy h2 { color: var(--paper); }
.plan-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.plan-areas article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.15rem 1.1rem;
}
.plan-areas h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.plan-areas p { margin: 0; color: var(--mute); font-size: 0.92rem; }

.band {
  background: var(--night);
  color: var(--paper);
}
.band .lead { color: rgba(244,239,230,0.72); }
.band .eyebrow { color: var(--brass); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.steps article {
  border-top: 1px solid rgba(244,239,230,0.16);
  padding-top: 1.2rem;
}
.steps article::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1.4rem;
  margin-bottom: 0.55rem;
}

.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.founder img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.founder-copy { padding: 2.6rem 2.2rem; }
.founder-copy blockquote {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.35;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list strong {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seal);
  font-weight: 500;
}

.contact-form,
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 2px;
}
.form-note { margin: 0; font-size: 0.85rem; color: var(--mute); }

.map-frame {
  margin-top: 2rem;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

.page-hero {
  padding: 9rem 0 3.4rem;
  min-height: 48vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, #231c18, #1a1512 70%);
  color: var(--paper);
}
.page-hero .lead { color: rgba(244,239,230,0.78); }
.page-hero .eyebrow { color: var(--brass); }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 240px 240px;
  gap: 0.7rem;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: 1 / 3; }

.legal h2 { font-size: 1.35rem; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.15rem; }

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding: 3.2rem 0 1.4rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--brass-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
}
.footer-grid .brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}
.footer-grid h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0.35rem 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244,239,230,0.12);
  font-size: 0.82rem;
  opacity: 0.8;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--night);
  color: var(--paper);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(201,163,106,0.35);
  box-shadow: var(--shadow);
  max-width: 920px;
  margin-inline: auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.88rem; }
.cookie-banner a { color: var(--brass); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.mail-float {
  position: fixed;
  right: 1.1rem;
  bottom: 5.8rem;
  z-index: 70;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--seal);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  box-shadow: 0 12px 28px rgba(31, 107, 74, 0.32);
}
.mail-float:hover { color: var(--paper); background: var(--seal-deep); transform: scale(1.05); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.4rem;
}
.stats article {
  background: var(--white);
  padding: 1.35rem 1.15rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--seal);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stats span { font-size: 0.82rem; color: var(--mute); letter-spacing: 0.04em; }

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.quotes article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.3rem;
}
.quotes .stars {
  color: var(--brass);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.quotes p { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; font-style: italic; }
.quotes footer {
  font-size: 0.86rem;
  color: var(--mute);
}
.quotes footer strong { display: block; color: var(--ink); font-style: normal; font-size: 0.92rem; }

.trail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.trail article {
  border-top: 2px solid var(--brass);
  padding-top: 1rem;
}
.trail .year {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--seal);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 210;
    background: #1a1512;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem 1.3rem;
    gap: 0.85rem;
    pointer-events: auto;
  }
  .nav.open { display: flex; }
  .site-header--light .nav { background: #fff; color: var(--ink); }
  .hero-live { grid-template-columns: 1fr; min-height: 0; }
  .split,
  .dossier,
  .steps,
  .founder,
  .contact-grid,
  .footer-grid,
  .gallery,
  .quotes,
  .trail,
  .plan-grid,
  .plan-areas,
  .gates { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-rows: 220px 160px 160px; }
  .gallery img:first-child { grid-row: auto; }
  .founder-copy { padding: 1.4rem; }
  .split-visual img { height: 280px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .hero-copy { padding-bottom: 3rem; }
}
