/* ============================================================
   NUEVO ESTILO: cajas nude translúcidas flotando sobre fondos
   Tipografías y colores de la web (Cormorant, Montserrat, Qwitcher Grypen)
   ============================================================ */
:root {
  --nx-nude: rgba(203, 184, 167, 0.50);   /* #CBB8A7 con transparencia: cambia aquí el 0.50 para más/menos */
  --nx-nude-solid: #cbb8a7;
  --nx-ink: #201e1c;
  --nx-ink-soft: #3d3935;
}

/* ---------- Caja translúcida (la misma en toda la web) ---------- */
.nx-box,
.glass {
  background: var(--nx-nude) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 18px 44px rgba(70, 58, 46, 0.16) !important;
  color: var(--nx-ink);
}
.nx-box { position: relative; }

/* ---------- Fondo fijo (parallax) ---------- */
.nx-fondo {
  background: var(--bg) center / cover fixed no-repeat;
  position: relative;
}
@media (hover: none), (max-width: 900px) {
  .nx-fondo { background-attachment: scroll; }
}

.nx-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}
.nx-script {
  font-family: 'Qwitcher Grypen', cursive;
  font-weight: 400;
  line-height: 1;
}

/* ============ INICIO: PORTADA CON CAJA ============ */
.hero-section {
  height: auto !important;
  min-height: clamp(520px, calc(100vh - 200px), 660px) !important;
  padding: 70px 5% 90px;
}
.hero-section .hero-content { max-width: 880px; width: 100%; color: var(--nx-ink); padding: 0; }
.nx-hero-box {
  width: 100%;
  padding: 34px 48px 58px;
  text-align: center;
}
.nx-hero-script-wrap { overflow: hidden; padding: 0.12em 0.4em 0.18em; }
.nx-hero-script {
  display: inline-block;
  font-family: 'Qwitcher Grypen', cursive;
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  line-height: 1;
  color: var(--nx-ink);
  animation: nxSlide 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}
@keyframes nxSlide {
  from { opacity: 0; transform: translateX(-110px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nx-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 6px 0 0;
  color: var(--nx-ink);
}
.nx-hero-btnwrap {
  position: absolute;
  left: 0; right: 0;
  bottom: -24px;
  display: flex;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) { .nx-hero-script { animation: none; } }

/* ============ INICIO: DEMOSTRACIÓN ============ */
.nx-demo { padding: 90px 20px 90px; }
.nx-demo-box {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.5fr 1.4fr;
  align-items: center;
  padding: 22px 30px 22px 40px;
}
.nx-demo-photos { text-align: center; }
.nx-demo-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--nx-ink);
}
.nx-polas { position: relative; height: 150px; max-width: 340px; margin: 0 auto; }
.nx-pola {
  position: absolute;
  width: 43%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  line-height: 0;
}
.nx-pola img { width: 100%; height: auto; display: block; }
.nx-pola:nth-child(1) { left: 0;   top: 18px; transform: rotate(-8deg); z-index: 1; }
.nx-pola:nth-child(2) { left: 28%; top: 0;    transform: rotate(3deg);  z-index: 3; }
.nx-pola:nth-child(3) { left: 55%; top: 22px; transform: rotate(9deg);  z-index: 2; }

.nx-demo-mid { text-align: center; padding: 0 8px; }
.nx-demo-mid .nx-script { font-size: clamp(2.2rem, 3.4vw, 3rem); color: var(--nx-ink); }
.nx-demo-mid .nx-arrow {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  line-height: 1;
  margin-top: 4px;
  color: var(--nx-ink);
}

.nx-demo-video { margin: -52px 0; position: relative; }

/* ---------- Reproductor propio (vídeo + miniatura + play) ---------- */
.nx-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9e3dc;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}
.nx-video video, .nx-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: #bfae9e;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.nx-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #ae9b8a; }
.nx-play::after {
  content: "";
  position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
}
.nx-video.activo .nx-play { display: none; }

@media (max-width: 900px) {
  .nx-demo { padding: 50px 14px 90px; }
  .nx-demo-box { grid-template-columns: 1fr; padding: 26px 18px 22px; gap: 14px; }
  .nx-demo-mid .nx-arrow { transform: rotate(90deg); }
  .nx-demo-video { margin: 4px 0 -78px; }
  .nx-play { width: 60px; height: 60px; }
}

/* ============ SOBRE MÍ (inicio y página) ============ */
.nx-about { padding: 120px 20px 110px; }
.nx-about-wrap { max-width: 1040px; margin: 0 auto; position: relative; }
.nx-about-box {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: start;
  padding: 44px 54px 48px 40px;
  width: calc(100% - 190px);
}
.nx-about-box:not(.ancha) { padding-right: 150px; }
.nx-about-box.ancha { width: 100%; grid-template-columns: 330px 1fr; }
.nx-arch { margin: -118px 0 0; line-height: 0; filter: drop-shadow(0 14px 22px rgba(60, 48, 38, 0.22)); }
.nx-arch img { width: 100%; height: auto; display: block; }
.nx-about-text { color: var(--nx-ink); }
.nx-about-text .about-title { white-space: normal; }
.nx-about-text .about-subtitle { margin-bottom: 18px; color: var(--nx-ink-soft); }
.nx-about-text .about-description { color: var(--nx-ink); margin-bottom: 26px; }
.nx-about-text .about-greeting { color: var(--nx-ink); }
.nx-about-text .about-body p { color: var(--nx-ink); }
.nx-quote {
  position: absolute;
  right: 0; top: 50%;
  width: 300px;
  transform: translateY(-34%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end;
}
@media (max-width: 992px) {
  .nx-about { padding: 110px 14px 70px; }
  .nx-about-box, .nx-about-box.ancha {
    width: 100%; grid-template-columns: 1fr; gap: 22px;
    padding: 26px 22px 30px; text-align: center; justify-items: center;
  }
  .nx-arch { width: 250px; margin-top: -120px; }
  .nx-quote { position: relative; transform: none; width: 100%; max-width: 340px; margin: -24px auto 0; align-items: center; }
  .nx-about-text .about-body p { text-align: left; }
}

/* ============ ÁLBUMES: COLECCIONES ============ */
.nx-album { padding: 64px 20px 20px; text-align: center; }
.nx-intro { max-width: 820px; margin: 0 auto 44px; padding: 24px 34px 22px; }
.nx-intro .nx-label { margin-bottom: 2px; }
.nx-intro h1 {
  font-family: 'Qwitcher Grypen', cursive;
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 2px 0 8px;
}
.nx-intro .nx-p { font-size: 0.78rem; line-height: 1.65; font-weight: 300; max-width: 580px; margin: 0 auto 12px; letter-spacing: 0.02em; }
.nx-formatos { display: grid; grid-template-columns: 1fr 1fr; max-width: 620px; margin: 0 auto 12px; }
.nx-formatos div { padding: 0 18px; }
.nx-formatos div + div { border-left: 1px solid rgba(32, 30, 28, 0.3); }
.nx-formatos h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.25rem; margin-bottom: 3px; }
.nx-formatos p { font-size: 0.74rem; line-height: 1.55; font-weight: 300; }
.nx-cierre { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; line-height: 1.4; max-width: 540px; margin: 0 auto; }

.nx-col {
  --fs: clamp(38px, 8.2vw, 100px);
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 20px 30px 18px;
}
.nx-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: calc(var(--fs) * 0.56);
}
.nx-nombre {
  position: absolute; left: 0; right: 0;
  top: calc(var(--fs) * -0.6);
  z-index: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: var(--fs);
  line-height: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
  user-select: none; pointer-events: none;
}
.nx-item { position: relative; z-index: 1; }
.nx-item figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: #e9e3dc; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.nx-item figure > img, .nx-item figure > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-item figure > img { cursor: zoom-in; }
.nx-item p { margin-top: 12px; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--nx-ink); }

.nx-cierre-box { max-width: 780px; margin: 0 auto 30px; padding: 34px 48px 38px; }
.nx-cierre-box .nx-script { font-size: clamp(2.6rem, 4.6vw, 3.8rem); margin-bottom: 14px; display: block; }
.nx-cierre-box p.body { font-size: 0.9rem; font-weight: 300; line-height: 1.8; max-width: 620px; margin: 0 auto 10px; }
.nx-botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.nx-fin { height: 56px; }

.nx-visor { position: fixed; inset: 0; background: rgba(20, 16, 14, 0.88); display: none; align-items: center; justify-content: center; z-index: 2000; cursor: zoom-out; padding: 24px; }
.nx-visor.abierto { display: flex; }
.nx-visor img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5); }

@media (max-width: 760px) {
  .nx-album { padding: 36px 12px 6px; }
  .nx-intro { padding: 20px 18px 18px; }
  .nx-formatos { grid-template-columns: 1fr; gap: 12px; }
  .nx-formatos div + div { border-left: 0; border-top: 1px solid rgba(32, 30, 28, 0.3); padding-top: 12px; }
  .nx-col { padding: 18px 16px 16px; }
  .nx-grid { grid-template-columns: 1fr; gap: 22px; }
  .nx-play { width: 58px; height: 58px; }
  .nx-cierre-box { padding: 26px 20px 30px; }
}

/* ============ NATALICIOS ============ */
.nx-nat-col {
  max-width: 940px;
  margin: 0 auto 120px;
  padding: 28px 44px 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.nx-nat-left { text-align: center; }
.nx-nat-left .nx-label { margin-bottom: 4px; color: var(--nx-ink-soft); }
.nx-nat-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 26px;
}
/* foto original: marco blanco, como una foto normal */
.nx-foto {
  display: inline-block;
  width: 66%;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  line-height: 0;
  transition: transform 0.5s ease;
}
.nx-foto:hover { transform: rotate(0deg) translateY(-6px); }
.nx-foto img { width: 100%; height: auto; display: block; }
.nx-foto-cap { margin-top: 20px; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--nx-ink); }
/* natalicio: marco elaborado (línea fina + aire blanco) que sobresale de la caja */
.nx-nat-right { margin: -64px 0; text-align: center; position: relative; z-index: 2; }
.nx-marco {
  display: inline-block;
  width: 100%;
  background: #fff;
  padding: 14px;
  border: 1.5px solid #858585;
  outline: 1px solid rgba(133, 133, 133, 0.45);
  outline-offset: 6px;
  box-shadow: 0 18px 38px rgba(60, 48, 38, 0.3);
  line-height: 0;
}
.nx-marco img { width: 100%; height: auto; display: block; }
.nx-nat-right .nx-foto-cap { display: block; margin-top: 26px; }

.nx-nat-intro { max-width: 780px; margin: 0 auto 80px; padding: 34px 48px 38px; text-align: center; }
.nx-nat-intro .nx-label { margin-bottom: 4px; color: var(--nx-ink-soft); }
.nx-nat-intro h1 { font-family: 'Qwitcher Grypen', cursive; font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; margin-bottom: 18px; }
.nx-nat-intro p.body { font-size: 0.92rem; font-weight: 300; line-height: 1.85; max-width: 620px; margin: 0 auto 14px; }

@media (max-width: 900px) {
  .nx-nat-col { grid-template-columns: 1fr; gap: 26px; padding: 26px 20px 30px; margin-bottom: 40px; }
  .nx-nat-right { margin: 0 0 -70px; }
  .nx-foto { width: 70%; }
  .nx-marco { width: 80%; }
}

/* ============================================================
   CAMBIOS 2: fondo único en el inicio, menú y secciones en nude
   ============================================================ */
:root {
  --nx-nude-menu: rgba(203, 184, 167, 0.58);
  --nx-nude-seccion: rgba(203, 184, 167, 0.50);
  --nx-hero-box: rgba(150, 128, 108, 0.80);   /* caja de la portada, menos transparente para el texto blanco */
}

/* Fondo de las páginas sin foto: nude con transparencia sobre blanco */
html { background: #ffffff; }
body {
  background-color: #ffffff !important;
  background-image: linear-gradient(var(--nx-nude-seccion), var(--nx-nude-seccion)) !important;
}

/* Menú y franja superior */
.top-notice-bar { background: rgba(203, 184, 167, 0.35) !important; }
.main-nav {
  background: var(--nx-nude-menu) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.dropdown-content {
  background: rgba(214, 198, 184, 0.96) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.35) !important; }
@media (max-width: 992px) {
  .main-nav .nav-links.open { background: transparent; }
}

/* Franjas y pie de página */
.intro-banner, .page-band { background: rgba(203, 184, 167, 0.40) !important; }
.site-footer { background: rgba(203, 184, 167, 0.55) !important; }

/* ---------- INICIO: un solo fondo para toda la página ---------- */
body.nx-home {
  background-color: transparent !important;
  background-image: none !important;
}
body.nx-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('fondo-2.jpg') center / cover no-repeat;
}
html:has(body.nx-home) { background: #ece6df; }
.nx-home .services-section,
.nx-home .ba-section {
  background: var(--nx-nude-seccion);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nx-home .intro-banner { background: rgba(203, 184, 167, 0.55) !important; }
.nx-home .site-footer { background: rgba(203, 184, 167, 0.70) !important; }
.nx-home .hero-section { background: transparent; }

/* Caja de la portada: más opaca y con texto blanco */
.nx-hero-box.nx-box {
  background: var(--nx-hero-box) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.nx-hero-script, .nx-hero-title { color: #ffffff !important; text-shadow: 0 2px 10px rgba(60, 46, 36, 0.35); }

/* ---------- Sobre mí (inicio): texto · foto con círculo · cita flotando ---------- */
.nx-home .nx-about { padding-top: 130px; }
.nx-home .nx-about-wrap { max-width: 1120px; }
.nx-about-v2 {
  grid-template-columns: 1fr 280px !important;
  gap: 64px !important;
  padding: 44px 150px 48px 54px !important;
  width: calc(100% - 130px) !important;
  align-items: center !important;
}
.nx-arch-wrap { position: relative; margin-top: -122px; }
.nx-arch-wrap .nx-arch { margin: 0; }
.nx-arch-wrap .circle-badge { top: 14%; left: -80px; z-index: 4; }
@media (max-width: 992px) {
  .nx-about-v2 { width: 100% !important; grid-template-columns: 1fr !important; padding: 26px 22px 30px !important; gap: 22px !important; }
  .nx-arch-wrap { order: -1; width: 250px; margin-top: -124px; }
  .nx-arch-wrap .circle-badge { left: -40px; width: 110px; height: 110px; }
}

/* ============================================================
   CAMBIOS 3
   ============================================================ */
/* Caja de la portada: clara, como las demás, con texto negro y la frase en dos líneas */
.nx-hero-box.nx-box {
  background: var(--nx-nude) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}
.nx-hero-script, .nx-hero-title { color: var(--nx-ink) !important; text-shadow: none !important; }
.hero-section .hero-content { max-width: 940px; }
.nx-hero-box { padding: 34px 40px 58px; }
.nx-hero-title {
  font-size: clamp(1.25rem, 2.9vw, 2.35rem) !important;
  letter-spacing: 3px !important;
  text-wrap: balance;
}

/* Palabra SERVICIOS (marca de agua): blanca para que se lea */
.bg-watermark { color: rgba(255, 255, 255, 0.78) !important; }

/* Franja con fondo visible entre Servicios y Antes y después */
.nx-home .ba-section { margin-top: 80px; }

/* Cajas de "Donde todo comenzó": nude translúcido en lugar de blanco */
.chapter {
  background: rgba(203, 184, 167, 0.66) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Página Sobre mí: foto más grande, que también sobresale por la izquierda */
main.nx-about .nx-about-wrap { max-width: 1120px; }
.nx-about-box.ancha { grid-template-columns: 380px 1fr; }
.nx-about-box.ancha .nx-arch { width: 460px; margin: -118px 0 0 -80px; }
@media (max-width: 992px) {
  .nx-about-box.ancha { grid-template-columns: 1fr; }
  .nx-about-box.ancha .nx-arch { width: 270px; margin: -124px 0 0 0; }
}

/* ============================================================
   CAMBIOS 4: "Donde todo comenzó" — caja baja con texto y foto
   en marco blanco que sobresale por arriba y por abajo
   ============================================================ */
.chapter.nx-cap {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  padding: 26px 44px;
  max-width: 1000px;
  margin: 0 auto;
}
.chapter.nx-cap.nx-cap-rev { grid-template-columns: 1.5fr 0.8fr; }
.nx-cap-copy .chapter-number { color: #ffffff; text-shadow: 0 1px 8px rgba(70, 58, 46, 0.35); margin-bottom: 2px; }
.nx-cap-copy .chapter-title { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 10px; }
.nx-cap-copy .chapter-text { color: var(--nx-ink-soft); margin: 0; max-width: none; }

/* Foto con marco blanco que sobresale de la caja */
.nx-cap-media { margin: -52px 0; position: relative; z-index: 2; }
.nx-fr {
  margin: 0;
  background: #ffffff;
  padding: 9px 9px 9px;
  box-shadow: 0 16px 36px rgba(30, 24, 20, 0.35);
  line-height: 0;
}
.nx-fr-in { overflow: hidden; position: relative; }
.nx-fr-ancho .nx-fr-in img { width: 100%; height: auto; display: block; }
.nx-fr figcaption {
  line-height: 1;
  padding: 11px 0 4px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a4642;
}

/* Capítulo 1: tres fotos en fila */
.nx-trio { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.nx-mas { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; line-height: 1; color: #ffffff; text-shadow: 0 1px 8px rgba(30, 24, 20, 0.45); }
.nx-trio .nx-fr-in { aspect-ratio: 1 / 1; container-type: inline-size; }
.nx-in-pareja { background: linear-gradient(180deg, #efe9e1 0%, #d8cfc4 100%); }
.nx-in-pareja img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 108%; width: auto; max-width: none; }
.nx-in-nombres {
  background: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.nx-nom { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 3rem; font-size: 21cqw; color: #2f2c29; line-height: 1; }
.nx-amp { font-family: 'Qwitcher Grypen', cursive; font-size: 3.4rem; font-size: 28cqw; color: #2f2c29; line-height: 0.8; margin: 1cqw 0; }
.nx-in-lugar { background: var(--nx-lugar, #3b4654); }
body.nx-home { --nx-lugar: #3a2a22; }
.nx-in-lugar video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 992px) {
  .chapter.nx-cap, .chapter.nx-cap.nx-cap-rev {
    grid-template-columns: 1fr; gap: 22px; text-align: center; padding: 26px 18px 30px; margin: 0 16px 70px;
  }
  .nx-cap-rev .nx-cap-copy { order: 0; }
  .nx-cap-media { margin: 0 0 -64px; }
  .nx-cap-rev .nx-cap-media { order: 2; }
  .nx-mas { display: none; }
  .nx-trio { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nx-fr { padding: 6px 6px 6px; }
  .nx-fr figcaption { font-size: 0.42rem; letter-spacing: 1px; padding-top: 8px; }
}

/* Capítulo 1: más sitio para las tres fotos, así sobresalen de la caja */
#capitulo-1.chapter.nx-cap { max-width: 1120px; grid-template-columns: 0.5fr 1.5fr; gap: 34px; padding: 20px 40px; }
#capitulo-1 .nx-cap-copy .chapter-number { font-size: 36px; }
#capitulo-1 .nx-cap-copy .chapter-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
#capitulo-1 .nx-cap-copy .chapter-text { font-size: 0.84rem; line-height: 1.6; }
#capitulo-1 .nx-cap-media { margin: -60px 0; }
@media (max-width: 992px) {
  #capitulo-1.chapter.nx-cap { grid-template-columns: 1fr; padding: 24px 16px 30px; }
  #capitulo-1 .nx-cap-media { margin: 0 0 -64px; }
}

/* ============================================================
   CAMBIOS 5: botón bajo la demostración y página para los emails
   ============================================================ */
.nx-demo-cta { text-align: center; margin-top: 78px; }
@media (max-width: 900px) { .nx-demo-cta { margin-top: 110px; } }

/* Página para enviar por email (sin pestaña en el menú) */
.nx-cabecera { justify-content: flex-start !important; }
.nx-landing { padding: 100px 20px 90px; text-align: center; min-height: calc(100vh - 110px); }
.nx-demo-grande {
  max-width: 1240px;
  grid-template-columns: 1fr 0.45fr 1.7fr;
  padding: 26px 34px 26px 44px;
}
.nx-demo-grande .nx-demo-video { margin: -66px 0; }
.nx-demo-grande .nx-polas { height: 170px; max-width: 380px; }
.nx-demo-grande .nx-demo-cap { font-size: 1.6rem; }
.nx-landing-botones { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@media (max-width: 900px) {
  .nx-landing { padding: 50px 14px 70px; }
  .nx-demo-grande { grid-template-columns: 1fr; padding: 26px 18px 22px; }
  .nx-demo-grande .nx-demo-video { margin: 4px 0 -78px; }
  .nx-landing-botones { margin-top: 28px; }
}

/* Enlace directo a la sección de demostración (deja sitio bajo el menú fijo) */
#demostracion, #demonstration { scroll-margin-top: 140px; }

/* Pie de página: textos algo más oscuros para que se lean sobre el nude */
.site-footer .footer-tagline,
.site-footer .footer-note,
.site-footer .footer-legal-links a,
.site-footer .footer-copyright { color: #4a4642 !important; }
.site-footer .footer-social-links a:hover,
.site-footer .footer-legal-links a:hover { color: #201e1c !important; text-decoration: underline; }

/* Qwitcher Grypen es una manuscrita fina: algo más grande para que se lea bien */
.nx-demo-mid .nx-script { font-size: clamp(2.9rem, 4.3vw, 3.8rem); line-height: 0.95; }
.nx-intro h1 { font-size: clamp(2.8rem, 4.6vw, 3.8rem); }
@media (max-width: 900px) { .nx-demo-mid .nx-script { font-size: 3.2rem; } }
.nx-intro { max-width: 900px; }
.nx-intro h1 { font-size: clamp(2.5rem, 4vw, 3.3rem); text-wrap: balance; }

/* Texto de la página de demostración (bajo la caja del vídeo) */
.nx-landing-texto { max-width: 760px; margin: 100px auto 0; padding: 24px 40px 28px; }
.nx-landing-texto .nx-script { font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1; margin-bottom: 10px; color: var(--nx-ink); }
.nx-landing-p { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; line-height: 1.45; color: var(--nx-ink); text-wrap: balance; }
@media (max-width: 900px) { .nx-landing-texto { margin-top: 120px; padding: 20px 20px 24px; } }

/* ---------- Separaciones del texto de muestra ---------- */
.nx-demo .nx-landing-texto { margin-top: 84px; }
.nx-landing-texto + .nx-demo-cta { margin-top: 32px; }
.nx-landing-texto + .nx-landing-botones { margin-top: 34px; }
@media (max-width: 900px) { .nx-demo .nx-landing-texto { margin-top: 112px; } }
.nx-landing-texto { text-align: center; }

/* ============================================================
   LIENZOS PARA ENMARCAR: fondo con foto, cajas y franja divisoria
   ============================================================ */
body.nx-lienzos { background-color: transparent !important; background-image: none !important; }
body.nx-lienzos::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: url('fondo-3.jpg') center / cover no-repeat;
}
html:has(body.nx-lienzos) { background: #ece8e2; }

/* Cabecera en caja, como el texto del inicio */
body.nx-lienzos .page-band {
  background: var(--nx-nude) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 44px rgba(70, 58, 46, 0.16);
  max-width: 900px; margin: 70px auto 0; padding: 38px 48px 40px;
}
body.nx-lienzos .page-band .label { color: var(--nx-ink-soft); }
body.nx-lienzos .page-band p.lead { color: var(--nx-ink); max-width: 700px; }

/* Caja contenedora de los lienzos deslizantes: sobresalen por arriba */
body.nx-lienzos .ba-section {
  background: var(--nx-nude);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 44px rgba(70, 58, 46, 0.16);
  max-width: 1060px; margin: 190px auto 0; padding: 0 40px 56px;
}
body.nx-lienzos .ba-grid { margin-top: -130px; order: 1; position: relative; z-index: 3; }
body.nx-lienzos .ba-header { order: 2; margin: 34px 0 0; }
body.nx-lienzos .ba-hint { color: var(--nx-ink-soft); margin-top: 0; }

/* Franja divisoria antes de la historia */
.nx-franja {
  margin-top: 110px;
  background: rgba(203, 184, 167, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding: 44px 20px 48px;
  text-align: center;
  position: relative; z-index: 2;
}
.nx-franja .ba-cta { margin: 0 auto; max-width: 760px; }
.nx-franja .ba-cta-script { margin-bottom: 22px; }

@media (max-width: 992px) {
  body.nx-lienzos .page-band { margin: 40px 14px 0; padding: 30px 22px 32px; }
  body.nx-lienzos .ba-section { width: auto; margin: 120px 14px 0; padding: 0 16px 40px; }
  body.nx-lienzos .ba-grid { margin-top: -80px; }
  .nx-franja { margin-top: 80px; padding: 34px 16px 38px; }
}

/* Página Sobre mí: caja más nítida para que el texto se lea sobre la foto */
main.nx-about .nx-about-box.ancha {
  background: rgba(214, 198, 184, 0.84) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
main.nx-about .nx-about-box.ancha .about-body p,
main.nx-about .nx-about-box.ancha .about-greeting,
main.nx-about .nx-about-box.ancha .about-title { color: #1c1a18; }

/* Aviso al pulsar un email sin programa de correo */
.nx-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 28px);
  padding: 14px 18px; background: rgba(214, 198, 184, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 14px 36px rgba(60, 48, 38, 0.25);
  font-family: 'Montserrat', sans-serif; font-size: 13px; color: #201e1c; line-height: 1.4;
}
.nx-toast a { color: #201e1c; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.nx-toast button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #201e1c; padding: 0 2px; }
@media (max-width: 600px) { .nx-toast { flex-wrap: wrap; justify-content: center; text-align: center; bottom: 14px; } }
