:root {
  --ink: #0f0c0a;
  --ink-2: #16110e;
  --ink-3: #1f1813;
  --line: rgba(223, 202, 178, 0.16);
  --line-strong: rgba(223, 202, 178, 0.34);
  --sand: #dfcab2;
  --sand-2: #c4a87e;
  --cream: #f5f2f0;
  --muted: #b9ab9b;
  --stone: #e9e7e4;
  --stone-ink: #1a1511;
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 84px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--ink); color: var(--cream); font-family: var(--font-body); font-weight: 400; font-size: 1.0625rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 84px) 0; }
.bg-2 { background: var(--ink-2); }
.bg-3 { background: var(--ink-3); }
.bg-stone { background: var(--stone); color: var(--stone-ink); }

/* ---------- Tipografía base ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; line-height: 1.06; }
h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); text-transform: uppercase; font-weight: 300; letter-spacing: 0.05em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 400; }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 500; }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.28rem); color: var(--muted); font-weight: 300; line-height: 1.7; max-width: 62ch; }
.accent { color: var(--sand); }
.rule { width: 56px; height: 1px; background: var(--sand); margin: 26px 0; border: 0; }
.prose p { color: var(--muted); font-weight: 300; margin-bottom: 1.1em; max-width: 64ch; }
.prose p strong { color: var(--cream); font-weight: 500; }
.bg-stone .prose p, .bg-stone .lead { color: #4b4036; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--header-h); transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.is-solid { background: rgba(15, 12, 10, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
.main-nav > ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.main-nav a.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); opacity: .86; transition: opacity .2s, color .2s; }
.main-nav a.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--sand); transition: right .35s var(--ease); }
.main-nav a.nav-link:hover, .main-nav a.nav-link.is-active { opacity: 1; color: var(--sand); }
.main-nav a.nav-link:hover::after, .main-nav a.nav-link.is-active::after { right: 0; }
.has-dropdown { position: relative; }
.has-dropdown > a .caret { width: 11px; height: 11px; transition: transform .25s; }
.has-dropdown:hover > a .caret, .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }
.dropdown-menu { position: absolute; left: -22px; top: 100%; min-width: 330px; padding: 14px; background: rgba(18, 14, 11, 0.98); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .22s, visibility .22s; }
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 13px 16px; font-size: 0.98rem; font-weight: 400; color: var(--cream); letter-spacing: .01em; text-transform: none; border-left: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; }
.dropdown-menu a small { display: block; font-size: .8rem; color: var(--muted); font-weight: 300; margin-top: 2px; }
.dropdown-menu a:hover { background: rgba(223,202,178,.07); border-left-color: var(--sand); color: var(--sand); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-drawer { position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); z-index: 400; background: var(--ink-2); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .45s var(--ease); display: flex; flex-direction: column; padding: 22px 24px 32px; overflow-y: auto; }
.mobile-drawer.is-open { transform: none; }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mobile-drawer-head img { height: 40px; width: auto; }
.mobile-drawer-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-drawer-close svg { width: 24px; height: 24px; }
.mobile-drawer nav a { display: block; padding: 15px 0; font-family: var(--font-display); font-size: 1.7rem; border-bottom: 1px solid var(--line); }
.mobile-drawer nav .sub a { font-family: var(--font-body); font-size: 1rem; color: var(--muted); padding: 11px 0 11px 16px; border-bottom: 1px solid rgba(223,202,178,.07); }
.mobile-drawer .drawer-cta { margin-top: 26px; display: grid; gap: 12px; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 390; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: min(60vw, 920px); z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 100%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 22%; transform-origin: 70% 40%; }
.hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(15,12,10,.86) 10%, rgba(15,12,10,.4) 30%, rgba(15,12,10,0) 52%); }
.hero-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 32%; z-index: 1; background: linear-gradient(0deg, var(--ink) 4%, rgba(15,12,10,0) 100%); }
.hero-content { padding: calc(var(--header-h) + 40px) 0 130px; max-width: 700px; position: relative; }
.hero h1 { margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 .accent { font-size: 1.12em; letter-spacing: 0.03em; }
.hero .lead { margin-bottom: 38px; max-width: 52ch; color: #cdbfae; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: linear-gradient(0deg, rgba(15,12,10,.9), rgba(15,12,10,.4)); }
.hero-meta ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-meta li { padding: 22px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.hero-meta li:first-child { border-left: 0; padding-left: 0; }
.hero-meta strong { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; color: var(--sand); line-height: 1.1; }
.hero-meta li > span { font-size: .82rem; letter-spacing: .06em; color: var(--muted); }

/* ---------- Hero interior ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); background: var(--ink); overflow: hidden; isolation: isolate; }
.page-hero.has-media { min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-media::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 4%, rgba(15,12,10,.62) 45%, rgba(15,12,10,.5) 100%), linear-gradient(90deg, rgba(15,12,10,.7), rgba(15,12,10,0) 70%); }
.breadcrumb { display: flex; gap: 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--sand); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.8rem); max-width: 22ch; margin-bottom: 22px; }
.page-hero .lead { max-width: 58ch; }

/* ---------- Rejillas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }
.grid { display: grid; gap: clamp(14px, 2vw, 28px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0807; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.footer-brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-weight: 300; max-width: 34ch; font-size: .98rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); font-weight: 500; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: .98rem; font-weight: 300; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--sand); }
.footer-social { display: flex; gap: 18px; margin-top: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.footer-social svg { width: 18px; height: 18px; }
.footer-map { border-top: 1px solid var(--line); }
.footer-map .map-consent-wrap { height: 220px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .84rem; color: var(--muted); font-weight: 300; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom a:hover { color: var(--sand); }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 34px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.mobile-bar { display: none; }

@media (max-width: 1100px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-meta ul { grid-template-columns: repeat(2, 1fr); }
  .hero-meta li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .hero-media { width: 100%; inset: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-media img { object-position: 22% 28%; }
  .hero-media::before { background: linear-gradient(0deg, var(--ink) 8%, rgba(15,12,10,.72) 46%, rgba(15,12,10,.18) 100%); }
  .hero-media::after { display: none; }
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 210px; padding-top: calc(var(--header-h) + 160px); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; padding-bottom: 66px; }
  .brand img { height: 46px; }
  h1 { letter-spacing: .03em; }
  .hero-meta li { padding: 16px 14px; }
  .hero-meta strong { font-size: 1.25rem; }
  .hero-meta li:nth-child(3), .hero-meta li:first-child { padding-left: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #0a0807; border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; font-size: .86rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-bar a + a { border-left: 1px solid var(--line); background: #1c8d4c; }
  .mobile-bar svg { width: 20px; height: 20px; }
}
