:root {
  --bg: #f3eee7;
  --surface: #f8f4ef;
  --surface-strong: #f0e8df;
  --text: #1f2b38;
  --text-soft: #4c5a67;
  --line: rgba(31, 43, 56, 0.12);
  --line-strong: rgba(31, 43, 56, 0.18);
  --accent: #6f7c86;
  --accent-dark: #2f3f4c;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(31, 43, 56, 0.06);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1120px, calc(100vw - 2rem));
  --container-narrow: min(760px, calc(100vw - 2rem));
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 8px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

#top-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
}

.capture-form {
  scroll-margin-top: calc(var(--header-height) + 20px);
}
#manifiesto,
#capitulo-cero {
  scroll-margin-top: calc(var(--header-height) + 8px);
}
.container {
  width: var(--container);
  margin: 0 auto;
}
.narrow { width: var(--container-narrow); }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  background: rgba(243, 238, 231, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
}
.site-nav a:hover { color: var(--text); }
.header-cta { white-space: nowrap; }

.section {
  padding: clamp(4rem, 7vw, 7rem) 0;
}
.section--soft { background: rgba(255, 255, 255, 0.24); }
.section--hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.section--cta {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(5rem, 9vw, 7rem);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.05rem, 4.8vw, 3.95rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; color: var(--text-soft); text-align: justify; text-wrap: pretty; }
strong { color: var(--text); }

.eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero-grid,
.book-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-grid {
  align-items: center;
}
.hero-copy { max-width: 700px; }
.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  max-width: 54ch;
}
.hero-card,
.info-card,
.book-figure,
.faq-item,
.capture-form,
.section--cta .narrow {
  border-radius: var(--radius-lg);
}
.hero-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.card-intro { margin-bottom: 1.1rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.22s ease;
  cursor: pointer;
}
.button--primary {
  background: var(--text);
  color: var(--white);
}
.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-dark);
}
.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--accent);
  background: rgba(255,255,255,0.45);
}
.button--small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

.capture-form {
  display: grid;
  gap: 0.85rem;
}
.form-label {
  font-size: 0.92rem;
  color: var(--text-soft);
}
.form-input {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.88);
  color: var(--text);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(47, 63, 76, 0.08);
}
.form-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}
.form-note {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}
.form-message {
  display: none;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}
.form-message.is-visible { display: block; }
.form-message.is-success {
  background: rgba(47, 63, 76, 0.08);
  color: var(--text);
  border: 1px solid rgba(47, 63, 76, 0.12);
}
.form-message.is-error {
  background: rgba(159, 51, 51, 0.08);
  color: #7d2323;
  border: 1px solid rgba(159, 51, 51, 0.16);
}

.mirror-list,
.benefits-list {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}
.mirror-list li,
.benefits-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-soft);
}
.mirror-list li::before,
.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-dark);
}

.cards-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
.info-card {
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--line);
  padding: 1.4rem;
}
.info-card p { margin-bottom: 0; }


.info-card h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.32;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.manifesto-copy {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.manifesto-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: var(--text);
  line-height: 1.2;
}
.manifesto-end {
  margin-top: 1.3rem;
  color: var(--text);
}

.book-grid { align-items: center; }
.book-figure {
  max-width: 320px;
  margin: 0 auto;
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--line);
  padding: 1rem;
}
.book-figure img { border-radius: calc(var(--radius-md) - 4px); }

.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.faq-item {
  background: rgba(255,255,255,0.56);
  border: 1px solid var(--line);
  padding: 0 1.15rem;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.75rem 1.15rem 0;
  position: relative;
  color: var(--text);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-size: 1.4rem;
  color: var(--accent-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin-bottom: 1rem;
}

.about-copy,
.narrow > p,
.manifesto-copy,
.book-copy {
  max-width: 68ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.8rem;
  background: rgba(255,255,255,0.16);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-inner p {
  margin: 0;
  color: var(--text);
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.footer-inner nav a:hover { color: var(--text); }
.footer-inner nav a[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 3.5rem;
  }
  .book-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 340px);
    gap: 3rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-card--full {
    grid-column: 1 / -1;
  }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .section { padding-left: 0; padding-right: 0; }
  .hero-card { padding: 1.75rem; }
}

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

.hero-copy p,
.hero-copy h1,
.hero-copy .eyebrow,
.card-intro,
#cta-final-title,
.section--cta .narrow > p,
.section--cta .form-note,
.faq-item p {
  text-align: left;
}

.center p,
.center h2 {
  text-align: center;
}

.book-copy .button,
.section--cta .button {
  margin-top: 1.35rem;
}

.book-copy .form-note,
.section--cta .form-note {
  margin-top: 0.9rem;
}

@media (min-width: 768px) {
  .section--hero {
    min-height: calc(100svh - var(--header-height));
  }
}


#hero-card {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

/* Footer layout and social links */
.footer-brand-block {
  display: grid;
  gap: 0.2rem;
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.footer-author {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.45);
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255,255,255,0.72);
}

.social-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  display: block;
  flex: 0 0 18px;
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* ================================
   Autopreneurship V3 — copy + layout
   Mantiene formulario y tracking condicionado al consentimiento.
   ================================ */

:root {
  --ink: #172333;
  --gold: #a98035;
  --gold-soft: rgba(169, 128, 53, 0.13);
  --deep: #111923;
  --deep-2: #182432;
  --teal-soft: rgba(64, 105, 98, 0.12);
  --blue-soft: rgba(47, 63, 76, 0.08);
}

p,
li {
  text-wrap: pretty;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p,
.concept-copy p,
.concept-panel p,
.author-copy p,
.archetype-card p,
.journey-card p,
.book-copy p,
.bridge-note p,
.hero-copy p {
  text-align: left;
}

.lead-emphasis,
.hero-statement,
.concept-thesis,
.question-line,
.journey-close,
.author-quote {
  color: var(--text);
  font-weight: 600;
}

.hero-lead--secondary {
  margin-top: -0.25rem;
}

.hero-statement {
  max-width: 46rem;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.5;
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.hero-note {
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.card-kicker {
  margin: 0 0 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(169, 128, 53, 0.15));
}

.archetype-grid {
  display: grid;
  gap: 1rem;
}

.archetype-card {
  position: relative;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: 0 8px 28px rgba(31, 43, 56, 0.035);
}

.archetype-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  color: var(--text);
  background: var(--gold-soft);
  border: 1px solid rgba(169, 128, 53, 0.24);
  font-size: 0.78rem;
  font-weight: 700;
}

.archetype-card h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.28;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.bridge-note {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 1.3rem 1.45rem;
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bridge-note p:last-child {
  margin-bottom: 0;
}

.concept-grid {
  display: grid;
  gap: 1.8rem;
  align-items: start;
}

.concept-copy,
.concept-panel {
  min-width: 0;
}

.concept-panel {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.45rem, 3vw, 2rem);
  box-shadow: 0 18px 44px rgba(17, 25, 35, 0.16);
  border: 1px solid rgba(255,255,255,0.08);
}

.concept-panel h3 {
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.stack-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.stack-list li {
  color: rgba(255,255,255,0.82);
  padding-left: 1.25rem;
  position: relative;
}

.stack-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.65em;
}

.author-section {
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: radial-gradient(circle at 18% 15%, rgba(169, 128, 53, 0.16), transparent 30%), linear-gradient(135deg, var(--deep), var(--deep-2));
  color: var(--white);
}

.author-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.author-photo-frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.04);
}

.author-photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.95);
}

.author-copy h2,
.author-copy strong {
  color: var(--white);
}

.author-copy p {
  color: rgba(255,255,255,0.76);
}

.eyebrow--light {
  color: rgba(255,255,255,0.68);
}

.author-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.22;
  color: var(--white) !important;
  margin: 1.25rem 0 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.journey-grid {
  display: grid;
  gap: 1rem;
}

.journey-card {
  background: rgba(255,255,255,0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  box-shadow: 0 8px 28px rgba(31, 43, 56, 0.035);
}

.journey-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.journey-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 1.25rem;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.journey-card--discover .tag-cloud span:nth-child(3n+1) { background: rgba(169, 128, 53, 0.10); }
.journey-card--discover .tag-cloud span:nth-child(3n+2) { background: rgba(64, 105, 98, 0.10); }

.journey-close {
  margin-top: 1rem;
  margin-bottom: 0;
}

.manifesto-copy--compact {
  max-width: 62ch;
}

.book-copy em {
  color: var(--text);
  font-style: italic;
}

@media (min-width: 768px) {
  .archetype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 3rem;
  }

  .author-grid {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  }

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .journey-card {
    display: flex;
    flex-direction: column;
  }

  .journey-close {
    margin-top: auto;
  }
}

@media (min-width: 1024px) {
  .archetype-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .author-photo-frame {
    max-width: 430px;
  }
}

@media (max-width: 767px) {
  .hero-actions .button {
    width: 100%;
  }

  .author-section {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .author-photo-frame {
    max-width: 360px;
  }
}

/* V3.1 — ajustes tras revisión: FAQ en página aparte y recorrido editorial */
.faq-teaser .button {
  margin-top: 1rem;
}

.faq-hero {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.faq-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}

.journey-card p strong {
  color: var(--text);
}

/* Legal, consentimiento y cookies */
.consent-group {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.checkbox-line input {
  margin-top: 0.18rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent-dark);
}

.checkbox-line a,
.legal-content a,
.cookie-panel__note a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-link-button,
.inline-link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: none;
}

.footer-link-button:hover,
.inline-link-button:hover {
  color: var(--text);
}

.inline-link-button {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 9999;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 50px rgba(31,43,56,0.18);
  backdrop-filter: blur(10px);
}

.cookie-banner p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-banner__title {
  color: var(--text) !important;
  font-weight: 800;
  margin-bottom: 0.2rem !important;
}

.cookie-banner__actions,
.cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cookie-banner .button,
.cookie-panel .button {
  white-space: nowrap;
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31,43,56,0.52);
}

.cookie-panel__box {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 80px rgba(31,43,56,0.24);
}

.cookie-panel__box h2 {
  margin-bottom: 0.8rem;
}

.cookie-panel__box p {
  color: var(--text-soft);
}

.cookie-panel__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(243,238,231,0.58);
  color: var(--text-soft);
}

.cookie-option input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-dark);
}

.cookie-option strong {
  color: var(--text);
}

.cookie-option--disabled {
  opacity: 0.85;
}

.cookie-panel__note {
  margin-top: 1rem;
  font-size: 0.84rem;
}

.legal-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.legal-content {
  color: var(--text-soft);
}

.legal-content h2,
.legal-content h3 {
  color: var(--text);
  margin-top: 2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-warning {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(169,128,53,0.22);
  border-radius: var(--radius-md);
  background: rgba(169,128,53,0.10);
  color: var(--text-soft);
  line-height: 1.6;
}

.legal-warning strong {
  color: var(--text);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  background: rgba(31,43,56,0.04);
}

@media (max-width: 767px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-banner__actions,
  .cookie-panel__actions {
    flex-direction: column;
  }

  .cookie-banner .button,
  .cookie-panel .button {
    width: 100%;
  }
}


/* Fase 2 — páginas pilar SEO/GEO y navegación exploratoria */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.96rem;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown__button::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.16rem);
}

.nav-dropdown:hover .nav-dropdown__button,
.nav-dropdown:focus-within .nav-dropdown__button {
  color: var(--text);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  width: min(270px, 80vw);
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px rgba(31, 43, 56, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 80;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.62rem 0.7rem;
  border-radius: 14px;
  color: var(--text-soft);
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: rgba(64, 105, 98, 0.08);
  color: var(--text);
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pillar-hero {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(2.7rem, 5vw, 4.5rem);
}

.pillar-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.75rem);
}

.pillar-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pillar-content {
  max-width: 74ch;
}

.pillar-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin-top: 2.2rem;
}

.pillar-content h2:first-child {
  margin-top: 0;
}

.pillar-content p + p {
  margin-top: 0.95rem;
}

.pillar-aside {
  display: grid;
  gap: 1rem;
}

.quote-panel,
.mini-panel,
.explore-card {
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(31, 43, 56, 0.035);
}

.quote-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.quote-panel p {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.22;
}

.mini-panel {
  padding: 1.35rem;
}

.mini-panel h3 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.explore-grid {
  display: grid;
  gap: 1rem;
}

.explore-card {
  display: block;
  padding: 1.35rem;
  color: var(--text-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.explore-card:hover,
.explore-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(64, 105, 98, 0.28);
  box-shadow: 0 14px 36px rgba(31, 43, 56, 0.08);
}

.explore-card span {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.explore-card strong {
  display: block;
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.explore-card p {
  margin: 0;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  .explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nav-dropdown {
    display: none;
  }
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
