/* ===== Variables ===== */
:root {
  --color-bg: #0a0a0a;
  --color-text: #f5f5f5;
  --color-text-muted: #cfcfcf;
  --color-accent: #e8722c;
  --color-accent-hover: #ff8a3d;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 84px;
}

/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

/* ===== Modal — provisional ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #141414;
  border: 1px solid rgba(232, 114, 44, 0.4);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.modal-text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

body.modal-open {
  overflow: hidden;
}

/* ===== Sección 0 — Navegación principal ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  padding: 0.7em 1.5em;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Sección 1 — Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../assets/hero/HERO_HORIZONTE_TRANSFORMACION_ESCRITORIO.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-height);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(3, 3, 3, 0.92) 0%,
    rgba(3, 3, 3, 0.86) 25%,
    rgba(3, 3, 3, 0.72) 42%,
    rgba(3, 3, 3, 0.42) 58%,
    rgba(3, 3, 3, 0.1) 76%,
    rgba(3, 3, 3, 0) 100%
  );
  pointer-events: none;
}

.hero-media-mobile {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 48px 24px;
  margin-left: 6vw;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-brand-phrase {
  position: relative;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: #e8722c;
  display: inline-block;
  background: none;
  border-radius: 0;
  padding: 0;
  isolation: isolate;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 8px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(0, 0, 0, 0.65);
  margin-bottom: 18px;
}

.hero-brand-phrase::before {
  content: "";
  position: absolute;
  inset: -0.45rem -0.9rem;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.35) 48%,
    rgba(0, 0, 0, 0) 80%
  );
  filter: blur(6px);
  pointer-events: none;
}

.hero-main-text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #f2f2f2;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 32px;
  max-width: 540px;
}

/* ===== Separador dorado ===== */
.separator {
  display: block;
  width: 280px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(242, 120, 32, 0.58));
}

/* ===== Anclas provisionales (sin contenido aún) ===== */
.section-placeholder {
  height: 0;
  overflow: hidden;
}

/* ===== Elementos compartidos de bloques conceptuales ===== */
.eyebrow {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.quote-mobile {
  display: none;
}

.quote-line {
  display: block;
  white-space: nowrap;
}

/* ===== Sección 2 — Primer bloque conceptual ===== */
.section-2 {
  background-color: var(--color-bg);
  padding: 48px 24px 120px;
}

.section-2-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-2-text {
  position: relative;
  z-index: 2;
}

.section-2-quote {
  font-size: clamp(1.125rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 24px;
}

.section-2-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.section-2-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  overflow: hidden;
}

.section-2-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 74% 50%,
    rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, 0.96) 52%,
    rgba(0, 0, 0, 0.72) 68%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 88% at 74% 50%,
    rgba(0, 0, 0, 1) 38%,
    rgba(0, 0, 0, 0.96) 52%,
    rgba(0, 0, 0, 0.72) 68%,
    rgba(0, 0, 0, 0.28) 84%,
    rgba(0, 0, 0, 0) 100%
  );
}

.section-2-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.95) 16%,
      rgba(10, 10, 10, 0.68) 30%,
      rgba(10, 10, 10, 0.28) 44%,
      rgba(10, 10, 10, 0) 60%
    ),
    linear-gradient(
      to bottom,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.55) 10%,
      rgba(10, 10, 10, 0) 24%,
      rgba(10, 10, 10, 0) 72%,
      rgba(10, 10, 10, 0.45) 86%,
      #0a0a0a 100%
    );
}

/* ===== Sección 2 — imagen ampliada (solo escritorio, ≥769px) ===== */
@media (min-width: 769px) {
  .section-2-inner {
    grid-template-columns: 45fr 55fr;
  }

  .section-2-media {
    aspect-ratio: 4 / 5;
    overflow: visible;
  }

  .section-2-media img {
    position: absolute;
    top: 0;
    left: -180px;
    width: calc(100% + 180px);
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      rgba(0, 0, 0, 0.48) 25%,
      rgba(0, 0, 0, 0.78) 40%,
      #000 58%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      rgba(0, 0, 0, 0.48) 25%,
      rgba(0, 0, 0, 0.78) 40%,
      #000 58%
    );
  }

  .section-2-media::after {
    background: linear-gradient(
      to bottom,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.4) 6%,
      rgba(10, 10, 10, 0) 14%,
      rgba(10, 10, 10, 0) 80%,
      rgba(10, 10, 10, 0.4) 92%,
      #0a0a0a 100%
    );
  }
}

/* ===== Sección 3 — Realidad e interpretación ===== */
.section-3 {
  background-color: var(--color-bg);
  padding: 120px 24px;
}

.section-3-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.section-3-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-3-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.section-3-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

/* ===== Sección 4 — Interludio de impacto ===== */
.section-4 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  background-image: url("../assets/fondos/FONDO_MENTE_CONSCIENCIA_FJ_MANGA.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-4-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.7;
  text-transform: none;
  max-width: 800px;
}

.section-4-quote .word-vida {
  color: var(--color-accent);
  font-weight: 500;
}

.section-4-quote .word-mente {
  color: var(--color-accent);
  font-weight: 500;
}

/* ===== Sección 5 — Patrones mentales ===== */
.section-5 {
  background-color: var(--color-bg);
  padding: 120px 24px;
}

.section-5-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-5-heading {
  border-left: 2px solid var(--color-accent);
  padding-left: 28px;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-5-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0;
}

.section-5-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  padding-left: 28px;
}

.section-5-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ===== Sección 6 — Recuerdos y condicionamiento ===== */
.section-6 {
  background-color: var(--color-bg);
  padding: 120px 24px;
  scroll-margin-top: 100px;
}

.section-6-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-6-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.section-6-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.section-6-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ===== Sección 6 — altura de imagen igualada a "Patrones" (solo escritorio, ≥769px) ===== */
@media (min-width: 769px) {
  .section-6-media {
    aspect-ratio: 1122 / 1402;
    overflow: hidden;
  }

  .section-6-media img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* ===== Sección 7 — Consciencia observadora ===== */
.section-7 {
  background-color: var(--color-bg);
  padding: 120px 24px;
  text-align: center;
}

.section-7-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-7-media {
  margin-bottom: 40px;
}

.section-7-media img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.section-7-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 32px;
}

.section-7-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* ===== Sección 8 — Presentación del libro ===== */
.section-8 {
  background-color: var(--color-bg);
  padding: 120px 24px;
}

.section-8-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-8-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.section-8-transition {
  color: var(--color-accent);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 20px;
}

.section-8-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-8-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.section-8-synopsis {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ===== Sección 9 — Para quién es el libro ===== */
.section-9 {
  padding: 120px 24px;
  background-image: url("../assets/fondos/FONDO_CITA_REFLEXIVA_01.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.section-9-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-9-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #1a1512;
  margin-bottom: 20px;
}

.section-9-intro {
  color: #4a423c;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  text-align: left;
  margin-bottom: 64px;
}

.section-9-item-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1512;
  margin-bottom: 12px;
}

.section-9-item-text {
  color: #4a423c;
  line-height: 1.7;
  font-size: 0.95rem;
}

.section-9-closing {
  color: #4a423c;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Sección 10 — Autor ===== */
.section-10 {
  background-color: var(--color-bg);
  padding: 120px 24px;
}

.section-10-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-10-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-10-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.section-10-body {
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.section-10-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* ===== Sección 11 — Vídeos y contenido ===== */
.section-11 {
  background-color: var(--color-bg);
  padding: 120px 24px;
  text-align: center;
}

.section-11-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-11-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.section-11-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-11-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-bottom: 48px;
}

.section-11-video {
  display: block;
  color: inherit;
}

.section-11-video img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.section-11-video-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.section-11-video:hover .section-11-video-title {
  color: var(--color-accent);
}

.section-11-video-text {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Sección 12 — Llamada final a la acción ===== */
.section-12 {
  position: relative;
  background-color: var(--color-bg);
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}

.section-12-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-width: none;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.section-12-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.section-12-title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-12-subtitle {
  position: relative;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 32px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 10px rgba(0, 0, 0, 0.55);
}

.section-12-subtitle::before {
  content: "";
  position: absolute;
  inset: -14px -28px;
  z-index: -1;
  background: radial-gradient(
    ellipse 72% 80% at center,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.26) 48%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(5px);
  pointer-events: none;
}

/* ===== Mapa Samsárico ===== */
.map-section {
  background-color: var(--color-bg);
  padding: 140px 24px;
  text-align: center;
}

.map-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.map-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 780px;
  margin: 0 auto 28px;
}

.map-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 64px;
}

.map-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: left;
  margin-bottom: 56px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
}

.map-level {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  border-left: 1px solid rgba(245, 245, 245, 0.12);
  text-align: center;
}

.map-level-cta {
  margin-top: auto;
  min-width: 140px;
  padding: 0.55em 1.3em;
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.map-share-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Compartir el Mapa Samsárico — seis iconos ===== */
.map-share-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px auto 0;
}

.share-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #141414;
  border: 1px solid rgba(245, 245, 245, 0.18);
  color: #f5f5f5;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.share-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.share-icon-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0a;
}

.share-icon-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.share-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #141414;
  border: 1px solid rgba(245, 245, 245, 0.18);
  color: #f5f5f5;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
}

.share-icon-btn[data-tooltip]:hover::after,
.share-icon-btn[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .share-icon-btn {
    transition: none;
  }

  .share-icon-btn[data-tooltip]::after {
    transition: none;
  }
}

.map-level:first-child {
  border-left: none;
}

.map-level::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.map-level-1::after {
  background: rgba(232, 114, 44, 0.35);
}

.map-level-2::after {
  background: rgba(232, 114, 44, 0.65);
}

.map-level-3::after {
  background: rgba(232, 114, 44, 1);
}

.map-level-test {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  color: #f5f5f5;
  margin-bottom: 16px;
}

.map-level-name {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: 20px;
}

.map-level-text {
  font-family: Georgia, "Times New Roman", serif;
  color: #f5f5f5;
  line-height: 1.65;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ===== Utilidad accesible — oculto visualmente, disponible para lectores de pantalla ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Campos y casillas compartidos — Comparte tu reflexión y Newsletter ===== */
.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  display: block;
  width: 100%;
  background-color: #141414;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-field.has-icon input,
.form-field.has-icon textarea {
  padding-left: 46px;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(245, 245, 245, 0.45);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #e05a4e;
}

.form-field-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  pointer-events: none;
}

.form-field-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.field-error {
  color: #ff8a7a;
  font-size: 0.82rem;
  margin-top: 6px;
}

.field-error:empty {
  display: none;
}

.field-hint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin: -10px 0 20px 30px;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-checkbox-row input[type="checkbox"][aria-invalid="true"] {
  outline: 1px solid #e05a4e;
  outline-offset: 2px;
}

.form-checkbox-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.form-checkbox-row input[type="checkbox"]:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-checkbox-row label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

/* ===== Comparte tu reflexión ===== */
.reflexion-section {
  position: relative;
  background-color: var(--color-bg);
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}

.reflexion-glow {
  position: absolute;
  width: 520px;
  max-width: none;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.reflexion-glow-left {
  top: -140px;
  left: -180px;
}

.reflexion-glow-right {
  bottom: -180px;
  right: -180px;
}

.reflexion-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.ornament {
  display: block;
  width: 70px;
  height: 10px;
  margin: 0 auto 20px;
  position: relative;
}

.ornament::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(232, 114, 44, 0.8);
}

.reflexion-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.reflexion-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
}

.reflexion-form {
  text-align: left;
  background-color: #0d0d0d;
  border: 1px solid rgba(232, 114, 44, 0.25);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 0 40px rgba(232, 114, 44, 0.06);
}

.reflexion-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
}

/* ===== Newsletter ===== */
.newsletter-section {
  background-color: var(--color-bg);
  padding: 120px 24px;
  text-align: center;
  scroll-margin-top: 100px;
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.newsletter-text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.newsletter-form {
  text-align: left;
  background-color: #0d0d0d;
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: 12px;
  padding: 36px 28px;
}

.newsletter-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.newsletter-notice {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .form-field input,
  .form-field textarea {
    transition: none;
  }
}

/* ===== Modal — extensiones Fase 03 (antetítulo, texto secundario,
   formularios y modal de próximos libros). Comparten el mismo motor
   accesible que .modal-overlay / .modal-box ya existente. ===== */
.modal-eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.modal-eyebrow:empty {
  display: none;
}

.modal-text-secondary {
  font-size: 0.85rem;
  opacity: 0.85;
}

.modal-text-secondary:empty {
  display: none;
  margin: 0;
}

.modal-title-left,
.modal-text-left {
  text-align: left;
}

.modal-box-form,
.modal-box-libros {
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.modal-box-libros {
  max-width: 640px;
}

.modal-form {
  text-align: left;
}

.modal-form .form-field {
  margin-bottom: 16px;
}

.modal-form select {
  display: block;
  width: 100%;
  background-color: #141414;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.modal-form select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.modal-form select[aria-invalid="true"] {
  border-color: #e05a4e;
}

.modal-form-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.libros-list {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.libro-item {
  border-left: 2px solid var(--color-accent);
  padding-left: 20px;
}

.libro-item-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.libro-item-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.libro-item-text {
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.libros-closing {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .modal-form select {
    transition: none;
  }
}

/* ===== Conecta con FJ. Manga — cinco tarjetas ===== */
.conecta-section {
  background-color: var(--color-bg);
  padding: 120px 24px;
  text-align: center;
}

.conecta-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.conecta-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.conecta-intro {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 64px;
}

.conecta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

.conecta-card {
  flex: 1 1 320px;
  max-width: 360px;
  background-color: #0d0d0d;
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.conecta-card-icon {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.conecta-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.conecta-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.conecta-card-text {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
  margin-bottom: 28px;
  flex: 1;
}

.conecta-card-cta {
  width: 100%;
  margin-top: auto;
}

/* ===== Footer (Fase 04) — dos niveles + cierre editorial de tres zonas ===== */
.site-footer {
  background-color: #050505;
  border-top: 1px solid rgba(245, 245, 245, 0.08);
}

.footer-info {
  padding: 80px 24px 48px;
}

.footer-info-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-brand {
  flex: 1 1 260px;
  max-width: 340px;
}

.footer-nav,
.footer-social {
  flex: 1 1 160px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand-text {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-brand-line {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--color-text);
  font-size: 0.95rem;
}

.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.footer-nav-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 2.1;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--color-accent);
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.2);
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

.social-icon-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.social-icon-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-notices {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding: 28px 24px;
}

.footer-notices-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-notice {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 920px;
}

.footer-legal-links {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding: 20px 24px;
}

.footer-legal-links-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  /* Espacio inferior extra: el botón flotante "CHATEA CON FJ. MANGA" es
     position:fixed sobre la esquina inferior derecha; este colchón evita
     que tape el logo de Samarcanda al llegar al final de la página. */
  padding: 24px 24px 96px;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom-logo img {
  height: 28px;
  width: auto;
}

.footer-bottom-copy {
  flex: 1;
  text-align: center;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-copyright-secondary {
  font-size: 0.75rem;
  color: rgba(207, 207, 207, 0.7);
  margin-top: 4px;
}

.footer-samarcanda {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-samarcanda-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.footer-samarcanda-logo {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav-link,
  .footer-legal-link,
  .social-icon-btn {
    transition: none;
  }
}

/* ===== Modal — Configurar privacidad (Fase 04) ===== */
.modal-box-privacidad {
  max-width: 560px;
}

.privacidad-categorias {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privacidad-row-locked-on input[type="checkbox"]:disabled + label {
  opacity: 1;
}

.privacidad-hint {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.privacidad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.privacidad-btn {
  flex: 1 1 150px;
  padding: 0.85em 1.2em;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.privacidad-btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(245, 245, 245, 0.3);
}

.privacidad-btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.privacidad-btn-primary {
  background-color: var(--color-accent);
  color: #0a0a0a;
  border: 1px solid var(--color-accent);
}

.privacidad-btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.privacidad-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ===== Páginas legales provisionales (Fase 04) — plantilla compartida ===== */
.legal-page-header {
  padding: 24px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

.legal-page-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-page-logo img {
  height: 36px;
  width: auto;
}

.legal-page-back {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.legal-page-back:hover {
  color: var(--color-accent);
}

.legal-page {
  padding: 72px 24px;
  min-height: 55vh;
}

.legal-page-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 12px 0 28px;
}

.legal-page-text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.legal-page-subtitle {
  font-weight: 700;
  color: var(--color-text);
  margin: 32px 0 12px;
}

.legal-page-list {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0 0 28px 20px;
}

.legal-page-list li {
  margin-bottom: 6px;
}

.legal-page-cta {
  margin-top: 8px;
}

.legal-page-footer {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
  padding: 28px 24px;
}

.legal-page-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.legal-page-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.legal-page-footer-links a {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.legal-page-footer-links a:hover {
  color: var(--color-accent);
}

.legal-page-copyright {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .legal-page-back,
  .legal-page-footer-links a {
    transition: none;
  }
}

/* ===== El Reflejo (Fase 05, Mapa Samsárico · Nivel 1) — modal de
   test con cuatro pantallas internas (introducción, pregunta, revisión,
   resultado). Reutiliza .modal-overlay / .modal-box / .modal-box-form ya
   existentes; solo se añaden los elementos propios del test. ===== */
.modal-box-reflejo {
  max-width: 580px;
}

.reflejo-intro-meta {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 20px 0;
}

.reflejo-intro-notice {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-left: 2px solid var(--color-accent);
  background-color: rgba(232, 114, 44, 0.06);
}

.reflejo-intro-cta {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.reflejo-progress {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(245, 245, 245, 0.12);
  overflow: hidden;
  margin-bottom: 12px;
}

.reflejo-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.reflejo-progress-label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-bottom: 22px;
}

.reflejo-question {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}

.reflejo-question:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.reflejo-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.reflejo-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 8px;
}

.reflejo-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 8px;
  background-color: #141414;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reflejo-option:hover {
  border-color: rgba(232, 114, 44, 0.5);
}

.reflejo-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.reflejo-option input[type="radio"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.reflejo-option-text {
  color: var(--color-text);
  line-height: 1.5;
  font-size: 0.95rem;
}

.reflejo-option.is-selected {
  border-color: var(--color-accent);
  background-color: rgba(232, 114, 44, 0.08);
}

.reflejo-option.is-selected .reflejo-option-text {
  font-weight: 600;
}

#reflejoValidationError:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.reflejo-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.reflejo-nav .reflejo-btn-outline,
.reflejo-nav .btn {
  flex: 1;
}

.reflejo-btn-outline {
  display: inline-block;
  padding: 0.9em 1.8em;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(245, 245, 245, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.reflejo-btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.reflejo-btn-outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.reflejo-review-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

#reflejoReviewTitle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.reflejo-result-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  margin-bottom: 20px;
}

.reflejo-result-title:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.reflejo-result-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
}

.reflejo-score-row {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.reflejo-result-label {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 18px 0 6px;
}

.reflejo-result-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.reflejo-result-phrase {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 114, 44, 0.25);
}

.reflejo-result-closing {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.reflejo-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.reflejo-confirm {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(232, 114, 44, 0.35);
  border-radius: 8px;
  background-color: #141414;
}

.reflejo-confirm-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.reflejo-confirm-title:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.reflejo-confirm-text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.reflejo-confirm-actions {
  display: flex;
  gap: 12px;
}

.reflejo-confirm-actions button {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reflejo-progress-bar,
  .reflejo-option,
  .reflejo-btn-outline {
    transition: none;
  }
}

/* ===== El Mapa (Fase 06, Mapa Samsárico · Nivel 2) — reutiliza casi por
   completo las clases de El Reflejo (.reflejo-screen, .reflejo-question,
   .reflejo-fieldset, .reflejo-options, .reflejo-option, .reflejo-nav,
   .reflejo-btn-outline, .reflejo-review-actions, .reflejo-result-title,
   .reflejo-result-scores, .reflejo-result-body, .reflejo-result-actions,
   .reflejo-confirm*). Solo se añaden aquí los elementos propios de El
   Mapa: ancho del modal, aviso de transición (tras las preguntas 10/20/30),
   metadatos del resultado y bloque de combinación dominante+secundario. ===== */
.modal-box-mapa {
  max-width: 640px;
}

.mapa-transition {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-left: 2px solid var(--color-accent);
  background-color: rgba(232, 114, 44, 0.06);
}

.mapa-transition[hidden] {
  display: none;
}

.mapa-result-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.mapa-combination {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.mapa-combination-title {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#mapaReviewTitle:focus,
#mapaValidationError:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== La Arquitectura (Fase 07, Mapa Samsárico · Nivel 3) — reutiliza
   casi por completo las clases ya creadas para El Reflejo y El Mapa
   (.reflejo-screen, .reflejo-question, .reflejo-fieldset,
   .reflejo-options, .reflejo-option, .reflejo-nav, .reflejo-btn-outline,
   .reflejo-result-title, .reflejo-result-scores/label/text/closing,
   .reflejo-result-actions, .reflejo-confirm*, .mapa-transition). Solo se
   añaden aquí el ancho del modal, la lista de la pantalla de
   procesamiento y las barras de distribución de los seis reinos. ===== */
.modal-box-arq {
  max-width: 680px;
}

.arq-processing-list {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arq-processing-list li {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}

.arq-processing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.arq-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.arq-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arq-bar-label {
  flex: 0 0 132px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.arq-bar-track {
  flex: 1 1 auto;
  height: 10px;
  border-radius: 5px;
  background-color: rgba(245, 245, 245, 0.1);
  overflow: hidden;
}

.arq-bar-fill {
  height: 100%;
  border-radius: 5px;
  background-color: rgba(245, 245, 245, 0.35);
}

.arq-bar-fill.is-dominant {
  background-color: var(--color-accent);
}

.arq-bar-fill.is-secondary {
  background-color: rgba(232, 114, 44, 0.5);
}

.arq-bar-value {
  flex: 0 0 44px;
  text-align: right;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.arq-block-heading {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.98rem;
  margin: 28px 0 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.arq-block-heading:first-child {
  padding-top: 0;
  border-top: none;
  margin-top: 8px;
}

.arq-block-type {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-bottom: 12px;
}

#arqProcessingTitle:focus,
#arqValidationError:focus,
#arqRestartConfirmTitle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== Diploma del Mapa Samsárico (Fase 08) — modal único compartido por
   El Mapa y La Arquitectura. Reutiliza .modal-overlay/.modal-box/
   .reflejo-screen/.form-field/.form-checkbox-row/.reflejo-btn-outline/
   .reflejo-nav/.reflejo-result-actions/.reflejo-intro-notice ya
   existentes. Solo se añaden aquí los elementos propios del diploma:
   ancho del modal, campo y previsualización de fotografía, y la propia
   lámina del diploma (vista previa local, formato A4 vertical). ===== */
.modal-box-diploma {
  max-width: 640px;
}

.diploma-photo-field input[type="file"] {
  display: block;
  width: 100%;
  background-color: #141414;
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.85rem;
}

.diploma-photo-field input[type="file"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.diploma-photo-field input[aria-invalid="true"] {
  border-color: #e05a4e;
}

.diploma-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* Corrige un fallo real preexistente (Fase 08): al tener la misma
   especificidad que la regla nativa [hidden]{display:none} del
   navegador, .diploma-photo-preview la sobrescribía por orden de
   cascada y la miniatura (con su icono roto y su botón "QUITAR
   FOTOGRAFÍA") quedaba visible incluso antes de elegir ninguna
   fotografía, en los tres diplomas (El Reflejo, El Mapa, La
   Arquitectura). */
.diploma-photo-preview[hidden] {
  display: none;
}

.diploma-photo-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(232, 114, 44, 0.4);
}

/* ----- Fase 10E — selector de fotografía a medida, exclusivo de El
   Reflejo (.reflejo-diploma-*): el input nativo queda visualmente oculto
   pero sigue siendo focuseable por teclado (mismo patrón que .sr-only),
   y una <label for> asociada hace de botón visible. No se toca
   .diploma-photo-field (clase compartida con El Mapa/La Arquitectura). ----- */
.reflejo-diploma-photo-field {
  margin-top: 24px;
}

.reflejo-diploma-file-caption {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.reflejo-diploma-file-control {
  position: relative;
  display: inline-block;
}

.reflejo-diploma-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6em 1.15em;
  background-color: rgba(232, 114, 44, 0.12);
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  color: var(--color-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.reflejo-diploma-file-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.reflejo-diploma-file-label:hover {
  background-color: var(--color-accent);
  color: #0a0a0a;
}

.reflejo-diploma-file-input:focus-visible + .reflejo-diploma-file-label {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 3px;
}

.reflejo-diploma-file-input[aria-invalid="true"] + .reflejo-diploma-file-label {
  border-color: #e05a4e;
  color: #ff8a7a;
  background-color: rgba(224, 90, 78, 0.1);
}

.reflejo-diploma-file-label:active {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #0a0a0a;
}

.reflejo-diploma-photo-field .field-hint {
  margin: 10px 0 16px 0;
}

.reflejo-diploma-photo-field .diploma-photo-preview {
  margin-top: 16px;
}

.reflejo-diploma-photo-field .diploma-photo-preview img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid rgba(232, 114, 44, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.reflejo-diploma-share-status {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 4px;
}

.reflejo-diploma-share-status:empty {
  display: none;
}

.diploma-consents {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

#diplomaFormTitle:focus,
#diplomaPreviewHeading:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== Diploma del Mapa Samsárico (Fase 12 — plantilla PNG oficial
   definitiva, web/assets/images/diplomas/diploma-mapa-samsarico-fj-manga.png).
   La imagen no se redibuja ni se modifica: se muestra tal cual (fondo,
   marco, adornos, logo oficial de FJ. Manga, sello, ilustraciones,
   colores) y el contenido dinámico se superpone únicamente sobre sus
   zonas en blanco, mediante capas de texto posicionadas en porcentaje
   sobre el propio ancho/alto de la imagen (1024×1536, proporción 2:3
   exacta), de forma que la posición relativa se mantiene igual en
   cualquier tamaño de pantalla. ===== */
.diploma-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.msd-frame {
  --msd-ink-navy: #1c2438;
  --msd-ink-sepia: #4a3f30;
  --msd-rose: #b5495a;
  --msd-orange: #c1721f;
  --msd-green: #3f6650;
  --msd-gold-deep: #805f22;
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1024 / 1536;
  margin: 0 auto;
  font-size: clamp(8.5px, 1.85vw, 12px);
  color: var(--msd-ink-sepia);
  overflow: hidden;
  box-shadow: 0 22px 60px -16px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.msd-template-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ----- Fotografía: recuadro superior izquierdo de la plantilla. Si no
   hay fotografía real, el propio fondo de la imagen ya muestra una
   silueta neutra elegante, así que basta con no superponer nada. ----- */
.msd-photo-slot {
  position: absolute;
  left: 4.1%;
  top: 3.85%;
  width: 30.4%;
  height: 28.4%;
  border-radius: 4.2% / 3.4%;
  overflow: hidden;
}

.msd-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.msd-photo-slot img:not([src]),
.msd-photo-slot img[src=""] {
  display: none;
}

/* ----- Capas de texto dinámico ----- */
.msd-overlay {
  position: absolute;
  text-align: left;
  overflow: hidden;
  padding: 1.5% 2%;
  box-sizing: border-box;
}

.msd-ov-text {
  margin: 0;
  line-height: 1.42;
}

.msd-ov-name {
  left: 38%;
  top: 20.1%;
  width: 34.5%;
  height: 3.2%;
  margin: 0;
  text-align: center;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  color: var(--msd-ink-navy);
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55em;
  white-space: nowrap;
}

.msd-ov-esencia-main {
  left: 34.2%;
  top: 37.2%;
  width: 32%;
  height: 8.7%;
  color: var(--msd-rose);
}

.msd-ov-esencia-aside {
  left: 69%;
  top: 37.2%;
  width: 24.5%;
  height: 7.3%;
  font-style: italic;
  color: var(--msd-rose);
  text-align: center;
}

.msd-ov-advertencia-main {
  left: 34.2%;
  top: 51.3%;
  width: 32%;
  height: 8%;
  color: var(--msd-orange);
}

.msd-ov-advertencia-aside {
  left: 69%;
  top: 51.3%;
  width: 24.5%;
  height: 6.8%;
  font-style: italic;
  color: var(--msd-orange);
  text-align: center;
}

.msd-ov-resumen-main {
  left: 34.2%;
  top: 65.3%;
  width: 32%;
  height: 8.4%;
  color: var(--msd-green);
}

.msd-ov-resumen-aside {
  left: 69%;
  top: 65.3%;
  width: 24.5%;
  height: 7%;
  font-style: italic;
  color: var(--msd-green);
  text-align: center;
}

.msd-ov-esencia-main .msd-ov-text,
.msd-ov-advertencia-main .msd-ov-text,
.msd-ov-resumen-main .msd-ov-text,
.msd-ov-esencia-aside .msd-ov-text,
.msd-ov-advertencia-aside .msd-ov-text,
.msd-ov-resumen-aside .msd-ov-text {
  font-size: 0.98em;
}

.msd-ov-perfil {
  left: 18.7%;
  top: 79.9%;
  width: 16.3%;
  height: 6.6%;
  font-size: 0.82em;
}

.msd-ov-perfil-line {
  margin: 0 0 0.35em;
  line-height: 1.3;
  color: var(--msd-ink-sepia);
}

.msd-ov-perfil-line strong {
  display: block;
  color: var(--msd-gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.msd-ov-cita {
  left: 40.8%;
  top: 78.6%;
  width: 23.4%;
  height: 7.4%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msd-ov-cita .msd-ov-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.92em;
  line-height: 1.4;
  color: var(--msd-ink-navy);
}

.msd-ov-unico {
  left: 69.3%;
  top: 79.9%;
  width: 25.2%;
  height: 6.9%;
}

.msd-unique-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msd-unique-list li {
  font-size: 0.78em;
  line-height: 1.32;
  margin-bottom: 0.18em;
  color: var(--msd-ink-sepia);
}

.msd-date-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}


/* ===== Botón flotante de chat — "CHATEA CON FJ. MANGA" ===== */
.chat-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background-color: var(--color-accent);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(232, 114, 44, 0.45), 0 0 0 1px rgba(10, 10, 10, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-float-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chat-float-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 114, 44, 0.6), 0 0 0 1px rgba(10, 10, 10, 0.4);
}

.chat-float-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .chat-float-btn {
    transition: none;
  }
}

/* ===== Responsive — Móvil ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 400px;
  }

  .nav-link {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin: 20px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  /* El botón DESCUBRIR EL LIBRO no permanece visible en la barra colapsada:
     vive únicamente dentro de .nav-links, oculto hasta abrir el menú. */

  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-image: none;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 40px;
  }

  .hero::before {
    display: block;
    background: linear-gradient(
      180deg,
      rgba(3, 3, 3, 0.55) 0%,
      rgba(3, 3, 3, 0.35) 26%,
      rgba(3, 3, 3, 0.62) 55%,
      rgba(3, 3, 3, 0.88) 100%
    );
  }

  .hero-media-mobile {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .hero-media-mobile .hero-img-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 40%;
    display: block;
  }

  .hero-content {
    margin-left: 0;
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 0 20px;
  }

  .hero-main-text {
    margin-left: auto;
    margin-right: auto;
  }

  /* ===== Separador dorado — tablet ===== */
  .separator {
    width: 190px;
  }

  /* ===== Sección 2 — móvil ===== */
  .section-2 {
    padding: 48px 20px;
  }

  .section-2-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-2-media {
    order: -1;
  }

  .section-2-body {
    max-width: none;
  }

  .quote-desktop {
    display: none;
  }

  .quote-mobile {
    display: inline;
  }

  .quote-mobile .quote-line {
    font-size: clamp(0.95rem, 4.6vw, 1.125rem);
  }

  /* ===== Sección 3 — móvil ===== */
  .section-3 {
    padding: 64px 20px;
  }

  .section-3-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-3-body {
    max-width: none;
  }

  /* ===== Sección 4 — móvil ===== */
  .section-4 {
    min-height: 60vh;
    padding: 48px 20px;
  }

  /* ===== Sección 5 — móvil ===== */
  .section-5 {
    padding: 64px 20px;
  }

  .section-5-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-5-media {
    order: -1;
  }

  .section-5-body {
    max-width: none;
  }

  /* ===== Sección 6 — móvil ===== */
  .section-6 {
    padding: 64px 20px;
  }

  .section-6-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-6-body {
    max-width: none;
  }

  /* ===== Sección 7 — móvil ===== */
  .section-7 {
    padding: 64px 20px;
  }

  .section-7-media {
    margin-bottom: 32px;
  }

  .section-7-body {
    max-width: none;
  }

  /* ===== Sección 8 — móvil ===== */
  .section-8 {
    padding: 64px 20px;
  }

  .section-8-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-8-synopsis {
    max-width: none;
  }

  /* ===== Sección 9 — móvil ===== */
  .section-9 {
    padding: 64px 20px;
  }

  .section-9-intro {
    margin-bottom: 40px;
  }

  .section-9-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  /* ===== Sección 10 — móvil ===== */
  .section-10 {
    padding: 64px 20px;
  }

  .section-10-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-10-media {
    order: -1;
  }

  .section-10-body {
    max-width: none;
  }

  /* ===== Sección 11 — móvil ===== */
  .section-11 {
    padding: 64px 20px;
  }

  .section-11-intro {
    margin-bottom: 40px;
  }

  .section-11-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  /* ===== Sección 12 — móvil ===== */
  .section-12 {
    padding: 80px 20px;
  }

  .section-12-glow {
    width: 560px;
  }

  /* ===== Mapa Samsárico — móvil ===== */
  .map-section {
    padding: 72px 20px;
  }

  .map-title {
    margin-bottom: 20px;
  }

  .map-intro {
    margin-bottom: 40px;
  }

  .map-levels {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  .map-level {
    border-left: none;
    border-bottom: 1px solid rgba(245, 245, 245, 0.12);
    padding: 32px 4px;
  }

  .map-level:last-child {
    border-bottom: none;
  }

  /* ===== Comparte tu reflexión — móvil ===== */
  .reflexion-section {
    padding: 72px 20px;
  }

  .reflexion-glow {
    width: 320px;
  }

  .reflexion-glow-left {
    top: -80px;
    left: -140px;
  }

  .reflexion-glow-right {
    bottom: -100px;
    right: -140px;
  }

  .reflexion-form {
    padding: 28px 20px;
  }

  /* ===== Newsletter — móvil ===== */
  .newsletter-section {
    padding: 72px 20px;
  }

  .newsletter-form {
    padding: 28px 20px;
  }

  /* ===== Conecta con FJ. Manga — móvil (una columna, margen 20 px) ===== */
  .conecta-section {
    padding: 64px 20px;
  }

  .conecta-intro {
    margin-bottom: 40px;
  }

  .conecta-grid {
    gap: 20px;
  }

  .conecta-card {
    flex: 1 1 100%;
    max-width: none;
    padding: 32px 24px;
  }

  /* ===== Modales de formulario y próximos libros — móvil ===== */
  .modal-box-form,
  .modal-box-libros {
    max-width: none;
    padding: 32px 20px;
  }

  /* ===== Botón flotante de chat — móvil (margen mínimo 20 px, discreto para no tapar el CTA del hero) ===== */
  .chat-float-btn {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 0.7rem;
    box-shadow: 0 4px 18px rgba(232, 114, 44, 0.4), 0 0 0 1px rgba(10, 10, 10, 0.4);
  }

  .chat-float-btn svg {
    width: 18px;
    height: 18px;
  }

  /* ===== Footer — móvil (tres zonas apiladas, margen 20 px) ===== */
  .footer-info {
    padding: 56px 20px 40px;
  }

  .footer-info-inner {
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-notices {
    padding: 24px 20px;
  }

  .footer-legal-links {
    padding: 20px 20px;
  }

  .footer-legal-links-inner {
    justify-content: flex-start;
  }

  .footer-bottom {
    padding: 24px 20px 84px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom-copy {
    order: 2;
  }

  .footer-samarcanda {
    order: 3;
  }

  .footer-bottom-logo {
    order: 1;
  }

  /* ===== Modal Configurar privacidad — móvil ===== */
  .privacidad-actions {
    flex-direction: column;
  }

  .privacidad-btn {
    flex: 1 1 auto;
  }

  /* ===== Páginas legales provisionales — móvil ===== */
  .legal-page-header {
    padding: 20px;
  }

  .legal-page {
    padding: 48px 20px;
  }

  .legal-page-footer {
    padding: 24px 20px;
  }

  /* ===== El Reflejo — móvil ===== */
  .reflejo-nav {
    flex-direction: column;
  }

  .reflejo-confirm-actions {
    flex-direction: column;
  }
}

/* ===== Separador dorado — móvil estrecho ===== */
@media (max-width: 480px) {
  .separator {
    width: 135px;
  }
}
