/* Fuentes alojadas en el propio servidor (subconjunto latino, SIL OFL 1.1).
   Son fuentes variables: un archivo cubre todos los pesos. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --ink: #101820;
  --ink-soft: #1b2938;
  --navy: #12243a;
  --navy-2: #1b3552;
  --gold: #b68c48;
  --gold-light: #d9bc86;
  --paper: #f7f4ee;
  --paper-2: #eee8dd;
  --white: #fff;
  --text: #25313d;
  --muted: #66717c;
  --line: #d9d3c8;
  --danger: #9f2d2d;
  --success: #22654b;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(16, 24, 32, .12);
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.15rem); }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.25rem; }
strong { color: var(--ink); }
.container { width: var(--container); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead { max-width: 720px; color: #4f5b67; font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--white); }
.skip-link:focus { top: 12px; }

.topbar { background: var(--ink); color: #dbe3ea; font-size: .77rem; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { color: var(--white); text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 24, 32, .1);
  background: rgba(247, 244, 238, .93);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; width: 190px; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.desktop-nav > a, .nav-trigger {
  border: 0;
  background: transparent;
  color: #2f3c49;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav > a:hover, .desktop-nav > a[aria-current="page"], .nav-trigger:hover { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-trigger { padding: 12px 0; cursor: pointer; }
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(560px, 80vw);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  visibility: hidden;
  transition: .2s ease;
}
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.nav-menu a { padding: 11px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; }
.nav-menu a:hover { background: var(--paper); color: var(--gold); }
.nav-cta { padding: 13px 18px !important; border-radius: 999px; background: var(--navy) !important; color: var(--white) !important; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(217, 188, 134, .18);
  border-radius: 50%;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; min-height: 715px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 7vw 80px max(20px, calc((100vw - 1180px) / 2)); }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero h1 { max-width: 780px; font-size: clamp(3.4rem, 6.5vw, 6.8rem); }
.hero .lead { color: #cbd4dc; }
.hero-media { position: relative; min-height: 620px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: saturate(.78) contrast(1.03); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 27%), linear-gradient(0deg, rgba(16,24,32,.4), transparent 35%); }
.hero-card { position: absolute; right: clamp(20px, 5vw, 80px); bottom: 45px; z-index: 2; width: min(360px, calc(100% - 40px)); padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(16,24,32,.84); backdrop-filter: blur(12px); }
.hero-card strong { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: #111820;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-light); }
.button.secondary { border-color: rgba(255,255,255,.4); background: transparent; color: var(--white); }
.button.secondary:hover { border-color: var(--gold-light); color: var(--gold-light); }
.button.dark { background: var(--navy); color: var(--white); }
.button.outline { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-link { display: inline-flex; gap: 8px; color: var(--navy); font-size: .84rem; font-weight: 800; text-decoration: none; }
.button-link::after { content: "→"; transition: transform .2s ease; }
.button-link:hover::after { transform: translateX(4px); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item span { display: block; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.trust-item strong { display: block; margin-top: 5px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }

.section { padding: clamp(72px, 9vw, 125px) 0; }
.section.white { background: var(--white); }
.section.ink { background: var(--ink); color: #d3dbe2; }
.section.ink h2, .section.ink h3, .section.ink strong { color: var(--white); }
.section.ink .lead { color: #c2ccd4; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.section-head > :first-child { max-width: 740px; }
.section-head h2 { margin-bottom: .2em; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 72px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card h3 { font-size: 1.8rem; }
.card h2 { font-size: 2.05rem; }
.card p { color: #56616c; }
.card-index { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; }
.service-card { position: relative; display: flex; min-height: 335px; flex-direction: column; overflow: hidden; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: #172331; }
.service-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 180px; height: 180px; border: 1px solid rgba(217,188,134,.25); border-radius: 50%; }
.service-card h3 { color: var(--white); font-size: 2rem; }
.service-card p { color: #bac5ce; }
.service-card .button-link { margin-top: auto; color: var(--gold-light); }
.portrait-frame { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame.vertical img { object-position: center 35%; }
.quote { padding: 34px; border-left: 3px solid var(--gold); background: var(--paper-2); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.2; }
.quote-gold { color: #b48b4d; }
.check-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.13); }
.process-step { min-height: 310px; padding: 34px; background: var(--ink); }
.process-step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 70px; color: var(--gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.process-step h3 { color: var(--white); font-size: 1.8rem; }
.process-step p { color: #b9c4cd; }
.process + .quote { margin-top: 38px; }

.page-hero { padding: 86px 0 72px; background: var(--ink); color: var(--white); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 60px; align-items: center; }
.page-hero h1 { color: var(--white); font-size: clamp(3.2rem, 6vw, 5.9rem); }
.page-hero .lead { color: #c6d0d8; }
.page-hero-media { height: 420px; overflow: hidden; border-radius: var(--radius); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { margin-bottom: 24px; color: #aab6c0; font-size: .78rem; }
.breadcrumb a { color: var(--gold-light); }
.key-panel { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -1px; border-bottom: 1px solid var(--line); background: var(--white); }
.key-panel > div { padding: 28px; border-right: 1px solid var(--line); }
.key-panel > div:last-child { border-right: 0; }
.key-panel span { display: block; color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.key-panel strong { display: block; margin-top: 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; line-height: 1.15; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: start; }
.prose { font-size: 1.03rem; }
.prose h2 { margin-top: 1.5em; font-size: clamp(2rem, 4vw, 3.3rem); }
.prose h3 { margin-top: 1.7em; }
.prose a { color: #785b2a; }
.prose .source-note { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: .88rem; }
.side-card { position: sticky; top: 120px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: #d9e0e7; }
.side-card h3, .side-card strong { color: var(--white); }
.side-card .button { width: 100%; margin: 8px 0; }
.toc { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.toc ol { margin: 12px 0 0; padding-left: 1.15rem; }
.toc li { margin: 0; color: #8b9298; transition: color .2s ease; }
.toc a { display: block; margin: 0 -10px 0 -4px; padding: 7px 10px 7px 9px; border-left: 2px solid transparent; border-radius: 0 7px 7px 0; color: #59636c; font-size: .88rem; line-height: 1.35; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.toc a:hover { color: var(--ink); background: var(--paper); }
.toc li.active { color: var(--gold); }
.toc a.active, .toc a[aria-current="location"] { border-left-color: var(--gold); background: #f7f1e6; color: #72531f; font-weight: 800; }
.toc a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.faq-item button span:first-child { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.faq-answer { display: none; max-width: 820px; padding: 0 0 24px; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.5rem; transition: transform .2s ease; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { min-height: 230px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: #172331; }
.related-card h3 { color: var(--white); font-size: 1.65rem; }
.related-card p { color: #b8c2cb; }
.related-card a { color: var(--gold-light); }

.article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 0; color: #aeb9c2; font-size: .82rem; }
.article-hero { padding-bottom: 55px; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(38px, 6vw, 82px); align-items: center; }
.article-hero h1 { font-size: clamp(2.8rem, 5.3vw, 5.25rem); }
.article-cover { min-height: 520px; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.26); }
.article-cover img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.article-body { padding: 80px 0 115px; background: var(--white); }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: center; gap: 65px; align-items: start; }
.article-layout .prose { font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.8; }
.article-layout .prose h2, .article-layout .prose h3 { font-family: "Cormorant Garamond", Georgia, serif; }
.article-layout .toc { position: sticky; top: 120px; max-height: calc(100vh - 150px); overflow-y: auto; }
.article-layout .prose h2 { scroll-margin-top: 120px; }
.article-callout { margin: 34px 0; padding: 28px; border-left: 3px solid var(--gold); background: var(--paper); font-family: "Manrope", sans-serif; }
.article-figure { margin: 50px 0; }
.article-figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-figure figcaption { max-width: 680px; margin: 12px 0 0; color: #69737c; font-family: "Manrope", sans-serif; font-size: .78rem; line-height: 1.55; }
.article-layout .prose blockquote { margin: 38px 0; padding: 28px 32px; border: 0; border-left: 3px solid var(--gold); background: var(--paper); color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.35; }
.article-layout .prose blockquote p { margin: 0 0 .7em; }
.article-layout .prose blockquote p:last-child { margin-bottom: 0; }
.article-table-wrap { max-width: 100%; margin: 36px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.article-table-wrap table { width: 100%; border-collapse: collapse; font-family: "Manrope", sans-serif; font-size: .82rem; line-height: 1.45; }
.article-table-wrap th, .article-table-wrap td { min-width: 150px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table-wrap th { background: var(--ink); color: var(--white); font-size: .72rem; letter-spacing: .03em; }
.article-table-wrap tr:last-child td { border-bottom: 0; }
.phase-box { margin: 38px 0; padding: 28px; overflow-x: auto; border-radius: var(--radius); background: var(--ink); color: #e9edf0; }
.phase-box pre { margin: 0; white-space: pre-wrap; font: 600 .82rem/1.75 "Manrope", sans-serif; }

.analysis-intro { padding: clamp(70px, 9vw, 125px) 0 215px; background: var(--ink); color: var(--white); }
.analysis-intro h1 { max-width: 920px; margin-bottom: .18em; color: var(--white); font-size: clamp(4rem, 9vw, 8rem); }
.analysis-intro .lead { max-width: 820px; color: #c6d0d8; }
.guide-intro { padding-bottom: clamp(70px, 9vw, 110px); }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.guide-hero { padding-bottom: 60px; }
.guide-hero h1 { max-width: 980px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.guide-answer { max-width: 820px; margin: 30px 0 0; padding: 24px 28px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.06); color: #dfe5ea; }
.guide-answer strong { display: block; margin-bottom: 8px; color: var(--gold-light); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.guide-answer p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.guide-next .hero-actions { align-items: center; gap: 24px; margin-top: 18px; }
@media (min-width: 721px) { .key-panel.guide-keys { grid-template-columns: repeat(var(--keys, 3), minmax(0, 1fr)); } }
.featured-analysis { margin-top: -155px; padding-bottom: clamp(70px, 9vw, 120px); }
.feature-slider { position: relative; height: clamp(560px, 67vw, 730px); overflow: hidden; border-radius: calc(var(--radius) + 4px); background: var(--ink); box-shadow: 0 32px 80px rgba(16,24,32,.25); }
.feature-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s ease; }
.feature-slide.active { z-index: 1; opacity: 1; visibility: visible; }
.feature-slide > img { width: 100%; height: 100%; object-fit: cover; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,26,.96) 0%, rgba(10,18,26,.78) 42%, rgba(10,18,26,.1) 78%), linear-gradient(0deg, rgba(10,18,26,.65), transparent 45%); }
.feature-copy { position: absolute; z-index: 2; left: clamp(28px, 6vw, 78px); bottom: clamp(45px, 8vw, 95px); width: min(670px, 62%); color: #d9e0e6; }
.feature-copy h2 { margin: .22em 0; color: var(--white); font-size: clamp(2.55rem, 5.5vw, 5rem); }
.feature-copy p { max-width: 620px; font-size: 1rem; }
.feature-controls { position: absolute; z-index: 4; right: clamp(22px, 4vw, 48px); bottom: clamp(22px, 4vw, 42px); display: flex; align-items: center; gap: 14px; }
.feature-controls button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(11,18,25,.58); color: var(--white); cursor: pointer; }
.feature-controls button:hover { border-color: var(--gold-light); color: var(--gold-light); }
.feature-dots { display: flex; gap: 8px; }
.feature-dots button { width: 9px; height: 9px; border: 0; background: rgba(255,255,255,.45); }
.feature-dots button.active { background: var(--gold-light); transform: scale(1.25); }
.feed-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(40px, 7vw, 95px); align-items: start; }
.feed-heading { position: sticky; top: 125px; }
.feed-heading h2 { margin-bottom: .3em; }
.article-feed { border-top: 1px solid var(--line); }
.feed-entry { display: grid; grid-template-columns: minmax(230px, 38%) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: 38px 0; border-bottom: 1px solid var(--line); align-items: center; }
.feed-image { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; align-self: start; }
.feed-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feed-entry:hover .feed-image img { transform: scale(1.025); }
.feed-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; color: #7b858e; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feed-meta span:first-child { color: #87682f; }
.feed-copy h2 { margin: 0 0 .3em; font-size: clamp(1.8rem, 3.1vw, 2.85rem); }
.feed-copy h2 a { color: inherit; text-decoration: none; }
.feed-copy p { margin-bottom: 1em; color: #56616c; }

.form-shell { max-width: 860px; }
.form-card { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 35px; }
.progress span { height: 4px; border-radius: 99px; background: var(--line); }
.progress span.active { background: var(--gold); }
.form-step[hidden] { display: none; }
.field-group { margin-bottom: 24px; }
.field-group > label, .legend { display: block; margin-bottom: 9px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.field-group small { display: block; margin-top: 7px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input, select, textarea { width: 100%; padding: 14px 15px; border: 1px solid #c8c2b7; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; min-height: 68px; align-items: center; padding: 14px; border: 1px solid #cec8bd; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .84rem; font-weight: 700; cursor: pointer; }
.choice input:checked + label { border-color: var(--gold); background: #f4ead8; box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + label { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: .82rem; }
.form-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.form-error { display: none; margin: 15px 0; padding: 12px 14px; border-radius: 8px; background: #fae8e8; color: var(--danger); font-size: .84rem; }
.form-error.visible { display: block; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.urgent-panel { display: none; margin: 18px 0; padding: 18px; border-left: 3px solid var(--danger); background: #f9ecea; }
.urgent-panel.visible { display: block; }
.success-box { padding: clamp(40px, 7vw, 85px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }

.cta-band { padding: 72px 0; background: var(--gold); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 780px; margin: 0; font-size: clamp(2.2rem, 4vw, 4.1rem); }
.cta-band .button { flex: 0 0 auto; background: var(--ink); color: var(--white); }
.site-footer { padding: 70px 0 25px; background: #0c141c; color: #aeb8c0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 45px; }
.footer-logo { display: block; width: 190px; height: auto; object-fit: contain; margin: 0 0 22px; }
.footer-grid h3 { color: var(--white); font-family: "Manrope", sans-serif; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { display: grid; gap: 9px; padding: 0; list-style: none; }
.footer-grid a { color: #c6cdd3; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.legal-note { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff7e8; color: #6a5531; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { position: fixed; inset: 117px 0 0; z-index: 45; overflow-y: auto; padding: 26px 20px 50px; background: var(--paper); }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
  .mobile-nav strong { display: block; margin-top: 20px; color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; padding: 72px clamp(24px, 5vw, 64px); }
  .hero-media { min-height: 520px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(16,24,32,.5), transparent 45%); }
  .page-hero-grid, .article-hero-grid, .content-layout { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media { height: 360px; }
  .article-cover, .article-cover img { min-height: 420px; }
  .side-card { position: static; }
  .process { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout .toc { position: static; }
  .feed-shell { grid-template-columns: 1fr; }
  .feed-heading { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 30px, 1180px); }
  .topbar-inner { justify-content: center; min-height: 34px; }
  .topbar-inner span:first-child { display: none; }
  .header-inner { min-height: 72px; }
  .brand { width: 160px; }
  .mobile-nav { inset-block-start: 106px; }
  .hero-copy { min-height: auto; padding: 65px 20px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero-media { min-height: 500px; }
  .hero-card { bottom: 22px; }
  .trust-grid, .key-panel { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2), .key-panel > div:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2), .key-panel > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head, .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .related-grid { grid-template-columns: 1fr; }
  .portrait-frame { min-height: 440px; }
  .process { grid-template-columns: 1fr; }
  .process-step { min-height: auto; }
  .process-step::before { margin-bottom: 30px; }
  .page-hero { padding: 55px 0; }
  .page-hero h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .page-hero-grid { gap: 35px; }
  .page-hero-media { height: 300px; }
  .article-cover, .article-cover img { min-height: 320px; }
  .analysis-intro { padding-bottom: 145px; }
  .analysis-intro h1 { font-size: clamp(3.7rem, 18vw, 6.2rem); }
  .featured-analysis { margin-top: -95px; }
  .feature-slider { height: 650px; }
  .feature-shade { background: linear-gradient(0deg, rgba(10,18,26,.98) 0%, rgba(10,18,26,.8) 48%, rgba(10,18,26,.12) 82%); }
  .feature-copy { left: 24px; right: 24px; bottom: 88px; width: auto; }
  .feature-copy h2 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .feature-copy p { font-size: .9rem; }
  .feature-controls { right: 20px; bottom: 20px; }
  .feed-entry { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .feed-image { width: min(100%, 420px); }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* navegacion agrupada */
.nav-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(880px, 94vw); gap: 2px 14px; padding: 16px; }
.nav-col { display: flex; flex-direction: column; min-width: 0; }
.nav-col > strong {
  padding: 8px 12px 6px;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}
.nav-menu-featured {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 14px !important;
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
  color: var(--navy);
}
.nav-menu-featured:hover { background: transparent !important; color: var(--gold); }

@media (min-width: 981px) and (max-width: 1180px) {
  .desktop-nav { gap: 15px; }
  .desktop-nav > a, .nav-trigger { font-size: .78rem; }
}

@media (max-width: 980px) {
  .mobile-group { border-bottom: 1px solid var(--line); }
  .mobile-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }
  .mobile-group > summary::-webkit-details-marker { display: none; }
  .mobile-group > summary::after { content: '+'; color: var(--gold); font-size: 1.15rem; line-height: 1; }
  .mobile-group[open] > summary::after { content: '\2013'; }
  .mobile-group a { padding-left: 16px; border-bottom: 0; font-weight: 600; color: #3b4a58; }
  .mobile-group a:first-of-type { padding-top: 4px; }
  .mobile-group a:last-of-type { padding-bottom: 14px; }
}
/* tarjetas con volteo */
.flip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.flip-card { padding: 0; border: 0; background: transparent; perspective: 1500px; }
.flip-inner {
  position: relative;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front { background: var(--white); }
.flip-front h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.flip-hint { color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.flip-back { justify-content: center; border-color: var(--navy); background: var(--navy); transform: rotateY(180deg); }
.flip-back p { margin: 0; color: #d3dbe2; }
.flip-card:hover .flip-face, .flip-card:focus-visible .flip-face { border-color: var(--gold-light); }

@media (hover: hover) {
  .flip-card:hover .flip-inner, .flip-card:focus-visible .flip-inner { transform: rotateY(180deg); }
}

@media (hover: none) {
  .flip-card { perspective: none; }
  .flip-inner { min-height: 0; transform: none !important; transition: none; }
  .flip-face { position: static; backface-visibility: visible; }
  .flip-front { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; padding-bottom: 26px; }
  .flip-back { transform: none; border-radius: 0 0 var(--radius) var(--radius); }
  .flip-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

@media (max-width: 720px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip-face { padding: 26px; }
}
.dato-pendiente { background: #fff3b0; color: #6b4e00; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.form-privacy { margin-top: 12px; color: var(--muted); }

.error-page { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 68vh; padding: 90px 0; background: var(--ink); color: #cbd4dc; }
.error-page::before { content: ""; position: absolute; inset: -35% -10% auto auto; width: 520px; height: 520px; border: 1px solid rgba(217, 188, 134, .18); border-radius: 50%; }
.error-page .narrow { position: relative; }
.error-page h1 { color: var(--white); font-size: clamp(2.8rem, 6vw, 5rem); }
.error-page .lead { color: #cbd4dc; }
.error-code { margin: 0 0 10px; color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(5.5rem, 16vw, 11rem); font-weight: 600; line-height: .9; letter-spacing: -.04em; opacity: .9; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.error-links a { color: var(--gold-light); font-size: .88rem; font-weight: 700; text-decoration: none; }
.error-links a:hover { color: var(--white); }

.cookie-banner { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden], .cookie-banner [hidden] { display: none; }
.cookie-banner-inner { width: min(760px, 100%); padding: 24px 26px; border: 1px solid rgba(217, 188, 134, .35); border-radius: 16px; background: var(--ink); color: #cbd4dc; box-shadow: var(--shadow); font-size: .9rem; pointer-events: auto; }
.cookie-banner-title { margin: 0 0 6px; color: var(--white); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.cookie-banner-inner p { margin-bottom: 14px; }
.cookie-banner a { color: var(--gold-light); }
.cookie-banner strong { color: var(--white); }
.cookie-options { display: grid; gap: 10px; margin-bottom: 16px; }
.cookie-options label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.cookie-options input { margin-top: 4px; accent-color: var(--gold); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .button { min-height: 44px; padding: 10px 20px; }
.cookie-actions .button.outline { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.cookie-actions .button.dark { border-color: var(--gold-light); }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (max-width: 560px) {
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; }
  .cookie-banner-inner { padding: 20px; }
  .cookie-actions .button { flex: 1 1 auto; }
  .key-panel { grid-template-columns: minmax(0, 1fr); }
  .key-panel > div, .key-panel > div:nth-child(2) { padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .key-panel > div:last-child { border-bottom: 0; }
}
