/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #0B1324;
  --navy-2: #121C33;
  --navy-3: #1B2744;
  --gold: #C9A96E;
  --gold-2: #E2CB9C;
  --ivory: #F7F3EC;
  --paper: #FFFDF8;
  --ink: #141A26;
  --ink-soft: #4E5668;
  --line: #E4DCCD;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -.015em; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--gold); color: var(--navy); z-index: 999; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* =============================================================
   3. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; cursor: pointer;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(247,243,236,.45); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8A6E3A; margin-bottom: .9rem; }
.kicker-light { color: var(--gold); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 em, h1 em { font-style: italic; color: var(--gold); }
.sec-lead { margin-top: 1rem; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--ink-soft); max-width: 40rem; }
.sec-lead.light { color: rgba(247,243,236,.78); }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-solid { background: rgba(11,19,36,.94); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.nav-in { max-width: var(--wrap); margin: auto; padding: 1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ivory); }
.logo-m {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-radius: 10px;
}
.logo-t { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.logo-t b { font-weight: 600; color: var(--gold); }
.logo-t i { font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .12em; margin-left: .2rem; color: rgba(247,243,236,.65); }

.nav-links { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ivory); transition: transform .35s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; gap: .2rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy); padding: .5rem var(--gutter) 1.4rem;
  border-top: 1px solid rgba(201,169,110,.25);
}
.nav-links a { color: var(--ivory); padding: .8rem 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-links a:hover { color: var(--gold-2); }
.nav-links .nav-cta { margin-top: .6rem; border: 1.5px solid var(--gold); color: var(--gold); text-align: center; border-radius: 999px; padding: .75rem 1.2rem; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory); background: var(--navy);
  padding: 7.5rem 0 3.5rem;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.08); animation: kenburns 26s ease-in-out infinite alternate; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,19,36,.75) 0%, rgba(11,19,36,.35) 35%, rgba(11,19,36,.92) 100%),
    radial-gradient(800px 400px at 15% 85%, rgba(201,169,110,.18), transparent 70%);
}
.hero-in { position: relative; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: 1.02;
  max-width: 15ch; margin: 1rem 0 1.4rem;
}
.hero-lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 40rem; color: rgba(247,243,236,.85); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero-points {
  list-style: none; padding: 1.4rem 0 0; display: grid; gap: .8rem;
  border-top: 1px solid rgba(201,169,110,.3);
  font-size: .95rem; color: rgba(247,243,236,.75);
}
.hero-points b { color: var(--gold-2); font-weight: 600; }

/* Marquee */
.marquee { background: var(--gold); color: var(--navy); overflow: hidden; padding: .95rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); font-style: italic; padding: 0 1.4rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .75em; margin-left: 2.8rem; opacity: .6; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-head-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end; justify-content: space-between; }
.link-more { font-weight: 600; color: #8A6E3A; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Routes */
.routes { display: grid; gap: 1.4rem; }
.route {
  display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.route:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(11,19,36,.45); }
.route-img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--navy-3), var(--gold)); }
.route-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.route:hover .route-img img { transform: scale(1.05); }
.route-body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; }
.route-n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.route h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .2rem 0 .7rem; }
.route-body > p { color: var(--ink-soft); }
.route ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: grid; gap: .5rem; font-size: .95rem; }
.route li { padding-left: 1.5rem; position: relative; }
.route li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1.5px; background: var(--gold); }
.route-cta { margin-top: auto; font-weight: 600; color: var(--navy); align-self: flex-start; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; transition: color .3s; }
.route-cta:hover { color: #8A6E3A; }

/* Steps */
.how { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.steps li { background: var(--paper); padding: 2rem 1.6rem; }
.steps span { font-family: var(--serif); font-size: 2.6rem; font-style: italic; color: var(--gold); line-height: 1; }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: .8rem 0 .5rem; }
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* Alliances */
.alliances { position: relative; isolation: isolate; background: var(--navy); color: var(--ivory); overflow: hidden; }
.alliances-img { position: absolute; inset: 0; z-index: -1; }
.alliances-img img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.alliances-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 30%, rgba(11,19,36,.7) 100%); }
.alliances-in { display: grid; gap: 2.4rem; }
.perks { list-style: none; padding: 0; display: grid; gap: 1rem; }
.perks li { padding: 1.4rem 1.4rem; border: 1px solid rgba(201,169,110,.28); border-radius: 16px; background: rgba(18,28,51,.6); backdrop-filter: blur(4px); }
.perks b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--gold-2); margin-bottom: .3rem; }
.perks span { color: rgba(247,243,236,.75); font-size: .95rem; }
.alliances .btn { justify-self: start; }

/* Developments widget */
.dev-widget { display: grid; gap: 1.2rem; min-height: 200px; }
.dev-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1rem 1.4rem; }
.dev-ph {
  aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(110deg, #EDE6DA 30%, #F8F4EC 50%, #EDE6DA 70%);
  background-size: 250% 100%; animation: shimmer 2.4s ease-in-out infinite;
}
.dev-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8A6E3A; background: rgba(201,169,110,.16); padding: .3rem .6rem; border-radius: 999px; }
.dev-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: .6rem 0 .3rem; }
.dev-card p:last-child { color: var(--ink-soft); font-size: .95rem; }
.dev-note { margin-top: 1.6rem; color: var(--ink-soft); }
.dev-note a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--gold); }

/* Posts */
.content-sec { background: var(--paper); border-top: 1px solid var(--line); }
.posts { display: grid; gap: 1.4rem; }
.post { display: grid; background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
a.post:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -32px rgba(11,19,36,.45); }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a.post:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-cat { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A6E3A; }
.post h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: .5rem 0; }
.post-body > p:not(.post-cat) { color: var(--ink-soft); font-size: .96rem; }
.post-more { display: inline-block; margin-top: 1rem; font-weight: 600; border-bottom: 1.5px solid var(--gold); }
.post.soon { opacity: .82; }
.post.soon .post-img img { filter: grayscale(.6); }

/* Contact */
.contact { background: var(--navy); color: var(--ivory); }
.contact-in { display: grid; gap: 2.6rem; }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .9rem; }
.contact-list a, .contact-list span { display: flex; gap: .8rem; align-items: baseline; color: rgba(247,243,236,.9); }
.contact-list a:hover { color: var(--gold-2); }
.contact-list b { min-width: 5.5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead-form { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.f-row { display: grid; gap: 1rem; }
.f { display: grid; gap: .35rem; }
.f label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.f input, .f select, .f textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--ivory);
  transition: border-color .25s, box-shadow .25s;
}
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,.2); }
.form-msg { font-size: .93rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: #2F6B3A; }
.form-msg.err { color: #A13A2A; }
.form-msg a { text-decoration: underline; }
.f-legal { font-size: .78rem; color: var(--ink-soft); }

/* FAQ */
.faq-list { display: grid; gap: .8rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; color: var(--ink-soft); }

/* Footer */
.footer { background: #070D1A; color: rgba(247,243,236,.75); padding: 3.5rem 0 5.5rem; }
.footer-in { display: grid; gap: 2rem; }
.foot-tag { margin-top: .9rem; max-width: 22rem; font-size: .92rem; }
.foot-nav, .foot-contact { display: grid; gap: .5rem; font-size: .94rem; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--gold-2); }
.foot-copy { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@keyframes kenburns { to { transform: scale(1.18) translate(-1.5%, -1%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: -150% 0; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .hero-points { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .routes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .dev-widget { grid-template-columns: repeat(3, 1fr); }
  .f-row { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 2fr 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .post-lg { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; }
  .post-lg .post-img { aspect-ratio: auto; min-height: 100%; }
  .post-lg .post-body { padding: 2rem; align-self: center; }
  .post-lg h3 { font-size: 2rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; align-items: center; gap: 1.8rem; }
  .nav-links a { padding: 0; border: 0; font-size: .94rem; }
  .nav-links .nav-cta { margin: 0; padding: .6rem 1.2rem; }
  .nav-links .nav-cta:hover { background: var(--gold); color: var(--navy); }
  .burger { display: none; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .alliances-in { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 4rem; }
  .alliances .btn { grid-column: 1; }
  .contact-in { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4rem; }
  .faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .posts { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
  .post-lg { grid-column: 1; grid-row: 1 / 3; grid-template-columns: 1fr; }
  .post-lg .post-img { aspect-ratio: 16 / 11; }
  .footer { padding-bottom: 3rem; }
}
@media (min-width: 1280px) {
  .routes { gap: 1.8rem; }
  .route-body { padding: 2rem 2rem 2.2rem; }
}

/* =============================================================
   9. Reduced motion (only intrusive loops)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .marquee-track, .dev-ph { animation: none; }
}

/* =============================================================
   10. Subpages: contenido + artículos
   ============================================================= */
.wrap-narrow { max-width: 820px; }
.page-hero { background: var(--navy); color: var(--ivory); padding: 8.5rem 0 3.5rem; }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.05; margin-bottom: .4rem; max-width: 20ch; }
.page-hero .kicker a { border-bottom: 1px solid currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip {
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201,169,110,.4); background: transparent; color: var(--ivory);
  font-size: .9rem; font-weight: 500; transition: background .3s, color .3s;
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.posts-grid { grid-template-columns: 1fr; }
.post[hidden] { display: none; }
.empty { color: var(--ink-soft); padding: 2rem 0; }
.subscribe { background: var(--paper); border-top: 1px solid var(--line); }
.subscribe-in { display: grid; gap: 1.6rem; align-items: center; }
.sub-form { display: flex; flex-wrap: wrap; gap: .7rem; }
.sub-form input[type="email"] { flex: 1 1 15rem; min-width: 0; padding: .95rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--ivory); }
.sub-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
.sub-form .form-msg { flex-basis: 100%; }

.article-hero { padding-bottom: 6rem; }
.article-hero h1 { max-width: none; }
.meta { margin-top: 1.4rem; font-size: .85rem; color: rgba(247,243,236,.6); }
.article-cover { margin-top: -4rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(11,19,36,.5); background: var(--navy-3); }
.prose { padding-top: 3rem; padding-bottom: 5rem; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.6rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose li::marker { color: var(--gold); }
.callout { margin-top: 3rem; padding: 2rem; border-radius: 20px; background: var(--navy); color: var(--ivory); }
.callout h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--gold-2); }
.callout p { margin: .6rem 0 1.4rem; color: rgba(247,243,236,.8); }

@media (min-width: 720px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .subscribe-in { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (min-width: 960px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .posts-grid .post { grid-column: auto; grid-row: auto; }
}

/* Crédito Klipis */
.foot-copy .credit a { color: var(--gold-2); font-weight: 600; }
.foot-copy .credit a:hover { text-decoration: underline; }
