@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f2ec;
  --paper-2: #ece6dd;
  --paper-3: #e0d8cc;
  --ink: #161a2e;
  --ink-soft: #4a4f63;
  --ink-mute: #7c8091;
  --navy: #141a3c;
  --navy-deep: #0e1230;
  --accent: #25258f;
  --accent-dark: #1b1b6c;
  --accent-light: #b3b8f2;
  --line: rgba(22, 26, 46, 0.13);
  --line-light: rgba(246, 242, 236, 0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

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

/* ---------- Typography ---------- */
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; font-weight: 350; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; font-weight: 350; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
h3 { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--accent-light); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); line-height: 1.7; }
.lead-light { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: rgba(245, 240, 232, 0.78); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(246, 242, 236, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark { width: 50px; height: 52px; color: var(--paper); flex: none; transition: color .4s, width .4s, height .4s; }
.scrolled .brand-mark { color: var(--accent); width: 42px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 450; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; opacity: .75; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 10px 18px !important; border-radius: var(--radius); transition: background .3s, color .3s, border-color .3s; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 40% 50%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 15, 40, 0.82) 0%, rgba(12, 15, 40, 0.55) 45%, rgba(12, 15, 40, 0.1) 80%),
    linear-gradient(0deg, rgba(12, 15, 40, 0.85) 0%, rgba(12, 15, 40, 0) 45%);
}
.hero-content { position: relative; padding-top: 160px; padding-bottom: 64px; }
.hero-content > * { max-width: 760px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { color: #f3e7d6; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts { position: relative; border-top: 1px solid rgba(255,255,255,.16); background: rgba(12, 15, 40, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.01em; }
.fact span { font-size: 0.82rem; color: rgba(255,255,255,.65); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 820px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 44px 40px 48px 0; border-bottom: 1px solid var(--line); }
.value:not(:nth-child(3n+1)) { padding-left: 40px; border-left: 1px solid var(--line); }
.value-num { display: block; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--accent); margin-bottom: 26px; }
.value h3 { margin-bottom: 14px; }
.value p { color: var(--ink-soft); font-size: 0.98rem; }

/* Services */
.services { background: var(--paper-2); }
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 7vw, 110px); align-items: center; margin-bottom: clamp(72px, 10vw, 130px); }
.feature-reverse { grid-template-columns: 6fr 5fr; }
.feature-reverse .feature-media { order: 2; }
.feature-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--paper-3); }
.feature-media-wide { aspect-ratio: 5 / 4; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.035); }
.feature-num { display: block; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-bottom: 18px; }
.feature-body h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; margin-bottom: 22px; letter-spacing: -0.02em; font-weight: 350; }
.feature-body p { color: var(--ink-soft); margin-bottom: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.82rem; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: rgba(255,255,255,.35); }

.more-services { border-top: 1px solid var(--line); padding-top: 56px; }
.more-title { font-size: 0.78rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 36px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 56px; }
.more-grid h4 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.more-grid h4::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }
.more-grid p { color: var(--ink-soft); font-size: 0.95rem; }

/* Community */
.community { display: grid; grid-template-columns: 1fr 1fr; padding: 0; background: var(--navy); color: var(--paper); }
.community-media { position: relative; min-height: 520px; }
.community-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-body { padding: var(--section) clamp(24px, 6vw, 96px); max-width: 720px; }
.community-body h2 { margin-bottom: 24px; }
.community-body .lead-light { margin-bottom: 36px; }
.checks { margin-bottom: 44px; }
.checks li { position: relative; padding: 16px 0 16px 34px; border-top: 1px solid var(--line-light); color: rgba(245,240,232,.78); }
.checks li:last-child { border-bottom: 1px solid var(--line-light); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 12px; height: 7px; border-left: 1.5px solid var(--accent-light); border-bottom: 1.5px solid var(--accent-light); transform: rotate(-45deg); }
.checks strong { color: var(--paper); font-weight: 600; }

/* Process */
.process-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.process-head { position: sticky; top: 110px; }
.process-head h2 { margin-bottom: 40px; }
.process-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step-num { font-family: var(--serif); font-size: 3.4rem; line-height: 0.9; font-weight: 300; color: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* History */
.history { background: var(--paper-2); }
.history-inner { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.history-media { position: sticky; top: 110px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; }
.history-media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) contrast(1.02); }
.history-body h2 { margin-bottom: 56px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 48px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--accent); }
.year { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 350; line-height: 1; margin-bottom: 14px; letter-spacing: -0.02em; }
.timeline p { color: var(--ink-soft); max-width: 560px; }

/* Contact */
.contact { background: var(--navy); color: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 120px); }
.contact-info h2 { margin-bottom: 24px; }
.contact-list { margin: 48px 0 0; }
.contact-list > div { padding: 20px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245,240,232,.55); padding-top: 6px; }
.contact-list dd { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.35; }
.contact-list a { text-decoration: none; transition: color .3s; }
.contact-list a:hover { color: var(--accent-light); }

.contact-form { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); align-self: start; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 37, 143, 0.15); }
.field .invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 24px; line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--accent); }
.form-status { margin-top: 16px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #2f6b3e; }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(245,240,232,.7); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.brand-footer { color: var(--paper); }
.brand-footer .brand-mark { width: 40px; height: 42px; color: var(--paper); }
.brand-footer .brand-name { font-size: 1.3rem; }
.footer-meta { font-size: 0.86rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--paper); }

.call-fab { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values-grid, .more-grid { grid-template-columns: repeat(2, 1fr); }
  .value:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .value:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
  .value { padding-right: 32px; }
  .community { grid-template-columns: 1fr; }
  .community-media { min-height: 0; aspect-ratio: 16 / 9; }
  .community-body { max-width: none; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--navy); color: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { font-family: var(--serif); font-size: 1.8rem; font-weight: 350; }
  .nav-cta { font-family: var(--sans) !important; font-size: 1rem !important; margin-top: 12px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter convierte la cabecera en el contenedor del .nav fijo y lo recorta */
  .menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .brand { position: relative; z-index: 2; }
  .menu-open .brand-mark { color: var(--paper); }
  .menu-open { overflow: hidden; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact, .fact + .fact { padding: 18px 0; border-left: 0; }
  .fact:nth-child(2n) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .fact strong { font-size: 1.1rem; }

  .section-head.split { grid-template-columns: 1fr; }
  .feature, .feature-reverse { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .feature-media, .feature-media-wide { aspect-ratio: 4 / 3; }
  .process-inner, .history-inner, .contact-inner { grid-template-columns: 1fr; }
  .process-head, .history-media { position: static; }
  .history-media { aspect-ratio: 4 / 3; }
  .history-media img { object-position: 50% 35%; }

  .call-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 18px; bottom: 18px; z-index: 40;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
}

@media (max-width: 600px) {
  .hero-content { padding-top: 130px; padding-bottom: 44px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .values-grid, .more-grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(2n) { padding: 32px 0; border-left: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 52px 1fr; gap: 16px; }
  .step-num { font-size: 2.6rem; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
