/* ==========================================================================
   ESTHER TUR — NUEVO DISEÑO (preview)
   Dirección: editorial de moda / lujo oscuro. Tinta profunda, Bodoni de gran
   escala, retícula asimétrica, acento cobre, grano y revelados al scroll.
   Totalmente aislado bajo .nd — no afecta a ninguna página en producción.
   ========================================================================== */

.nd {
  --nd-ink:        #0C0B0A;
  --nd-ink-2:      #141110;
  --nd-ink-3:      #1C1815;
  --nd-ivory:      #F7F3ED;
  /* Antes #9A8F85: sobre tinta quedaba demasiado apagado para leer cómodo. */
  --nd-mute:       #C3B9AE;
  --nd-copper:     #C08A5E;
  --nd-copper-lt:  #E0B287;
  --nd-line:       rgba(244, 239, 232, .13);

  --nd-display: "Bodoni Moda", "DM Serif Text", Georgia, serif;
  --nd-ui:      "Jost", "Lato", system-ui, sans-serif;

  --nd-gut:  clamp(20px, 5vw, 80px);
  --nd-maxw: 1440px;

  background: var(--nd-ink);
  color: var(--nd-ivory);
  font-family: var(--nd-ui);
  font-weight: 400;   /* la 300 resultaba demasiado fina sobre fondo oscuro */
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.nd *, .nd *::before, .nd *::after { box-sizing: border-box; }
.nd h1, .nd h2, .nd h3, .nd h4, .nd p, .nd figure, .nd blockquote { margin: 0; }
/* El CSS base pinta los encabezados de azul marino; aquí mandan los nuestros. */
.nd h1, .nd h2, .nd h3, .nd h4 { color: var(--nd-ivory); font-family: var(--nd-display); font-weight: 400; }
.nd img { display: block; max-width: 100%; }
.nd a { color: inherit; text-decoration: none; }

/* Grano: textura fina sobre todo el documento -------------------------- */
.nd::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nd__wrap { max-width: var(--nd-maxw); margin-inline: auto; padding-inline: var(--nd-gut); }

/* Etiquetas de sección -------------------------------------------------- */
.nd-eyebrow {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .28em;
  font-weight: 400; color: var(--nd-copper);
}
.nd-secnum {
  display: flex; align-items: center; gap: 18px;
  font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--nd-mute); margin-bottom: clamp(28px, 5vw, 56px);
}
.nd-secnum::after { content: ""; flex: 1; height: 1px; background: var(--nd-line); }
.nd-secnum b { color: var(--nd-copper); font-weight: 400; }

/* Títulos --------------------------------------------------------------- */
.nd-h {
  font-family: var(--nd-display); font-weight: 400; line-height: .95;
  letter-spacing: -.015em; color: var(--nd-ivory);
}
.nd-h em { font-style: italic; color: var(--nd-copper-lt); }

/* Botón ----------------------------------------------------------------- */
.nd-btn {
  --b: var(--nd-copper);
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font-family: var(--nd-ui); font-size: .74rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 17px 34px; border: 1px solid var(--b); background: transparent;
  color: var(--nd-ivory); position: relative; overflow: hidden;
  transition: color .45s ease, border-color .45s ease;
}
.nd-btn span { position: relative; z-index: 1; }
.nd-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--b);
  transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.nd-btn:hover { color: var(--nd-ink); }
.nd-btn:hover::before { transform: translateY(0); }
.nd-btn--solid { background: var(--nd-copper); color: var(--nd-ink); }
.nd-btn--solid::before { background: var(--nd-ivory); }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.nd-head {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--nd-gut);
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nd-head.is-stuck {
  background: rgba(12, 11, 10, .82); backdrop-filter: blur(14px);
  padding-block: 12px; border-bottom-color: var(--nd-line);
}
.nd-head__logo { display: flex; align-items: center; gap: 12px; }
.nd-head__logo img { width: 40px; height: 40px; opacity: .95; mix-blend-mode: screen; }
.nd-head__logo b {
  font-family: var(--nd-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .04em;
}
.nd-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nd-nav a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--nd-ivory);
  opacity: .9; position: relative; padding-block: 4px;
}
.nd-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--nd-copper); transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.nd-nav a:hover { opacity: 1; }
.nd-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nd-head__cta { flex: none; }
@media (max-width: 900px) { .nd-nav { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.nd-hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(36px, 6vw, 76px); overflow: hidden;
}
.nd-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Vídeo autoalojado: recorte "cover" sencillo — sin los trucos que hacían falta
   para tapar el cromo de YouTube (ya no hay iframe ni controles que ocultar). */
.nd-hero__video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  border: 0; pointer-events: none;
}
/* Póster del vídeo: visible desde el primer instante, tapa el botón de play y
   el fondo negro de carga de YouTube. Se desvanece solo cuando el reproductor
   informa de que está reproduciendo (ver la API de YouTube en la plantilla). */
.nd-video__poster {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 1; transition: opacity 1.1s ease;
}
[data-nd-video].is-playing .nd-video__poster { opacity: 0; }
/* Variante para el clip vertical: mismo recorte que su iframe. */
.nd-video__poster--cover {
  inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 100%; width: 316%; min-width: 316%; max-width: none; object-fit: cover;
}

.nd-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(192,138,94,.20), transparent 58%),
    linear-gradient(180deg, rgba(12,11,10,.60) 0%, rgba(12,11,10,.40) 40%, rgba(12,11,10,.95) 100%);
}
.nd-hero__wrap { position: relative; z-index: 2; width: 100%; }

.nd-hero__meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 3vw, 34px);
}
.nd-hero__meta span { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--nd-copper); }
.nd-hero__meta i { width: 52px; height: 1px; background: var(--nd-copper); opacity: .6; display: block; }

.nd-hero__title {
  font-family: var(--nd-display); font-weight: 400;
  font-size: clamp(3.6rem, 15.5vw, 15rem); line-height: .84; letter-spacing: -.03em;
  text-transform: uppercase;
}
.nd-hero__title .l2 { display: block; padding-left: clamp(0px, 9vw, 190px); }
.nd-hero__title em {
  font-style: italic; text-transform: lowercase; color: var(--nd-copper-lt);
  letter-spacing: -.02em;
}

.nd-hero__foot {
  margin-top: clamp(30px, 5vw, 58px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  border-top: 1px solid var(--nd-line); padding-top: 26px;
}
.nd-hero__claim {
  font-family: var(--nd-display); font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.6rem); color: var(--nd-ivory); opacity: .92; max-width: 30ch;
}
.nd-hero__acts { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entrada escalonada */
.nd-rise { opacity: 0; transform: translateY(26px); animation: ndRise .95s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes ndRise { to { opacity: 1; transform: none; } }
.nd-d1 { animation-delay: .10s } .nd-d2 { animation-delay: .22s }
.nd-d3 { animation-delay: .34s } .nd-d4 { animation-delay: .46s } .nd-d5 { animation-delay: .58s }

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.nd-sec { padding-block: clamp(74px, 11vw, 168px); position: relative; }
.nd-sec--soft { background: var(--nd-ink-2); }

/* Revelado al scroll */
.nd-rev { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.nd-rev.is-in { opacity: 1; transform: none; }

/* --- MANIFIESTO -------------------------------------------------------- */
.nd-mani { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.nd-mani__txt p { color: var(--nd-mute); font-size: 1.06rem; max-width: 46ch; margin-top: 26px; }
.nd-mani__lead {
  font-family: var(--nd-display); font-size: clamp(1.9rem, 4.2vw, 4rem); line-height: 1.06;
  letter-spacing: -.02em; color: var(--nd-ivory);
}
.nd-mani__lead em { font-style: italic; color: var(--nd-copper-lt); }
.nd-mani__media { position: relative; }
.nd-mani__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.28) contrast(1.05); }
.nd-mani__media::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--nd-copper);
  z-index: -1;
}
.nd-mani__cap {
  position: absolute; left: -10px; bottom: -22px; background: var(--nd-ink);
  padding: 10px 18px; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--nd-copper);
  border: 1px solid var(--nd-line);
}
@media (max-width: 880px) { .nd-mani { grid-template-columns: 1fr; } .nd-mani__media { order: -1; } }

/* --- SERVICIOS (lista editorial numerada) ------------------------------ */
.nd-serv { border-top: 1px solid var(--nd-line); }
.nd-serv__row {
  position: relative; display: grid; grid-template-columns: 88px 1fr auto;
  gap: clamp(14px, 3vw, 40px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--nd-line);
  transition: padding-left .55s cubic-bezier(.2,.8,.2,1);
}
.nd-serv__row:hover { padding-left: 22px; }
.nd-serv__n { font-family: var(--nd-ui); font-size: .72rem; letter-spacing: .2em; color: var(--nd-copper); }
.nd-serv__name {
  display: block; /* son <span>: sin esto la descripción se pega en la misma línea */
  font-family: var(--nd-display); font-weight: 400;
  font-size: clamp(1.8rem, 5.2vw, 4.1rem); line-height: 1; letter-spacing: -.02em;
  transition: color .45s ease;
}
.nd-serv__row:hover .nd-serv__name { color: var(--nd-copper-lt); }
.nd-serv__desc { display: block; color: var(--nd-mute); font-size: 1rem; max-width: 52ch; margin-top: 12px; }
.nd-serv__go {
  font-size: 1.5rem; color: var(--nd-copper); opacity: 0; transform: translateX(-12px);
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}
.nd-serv__row:hover .nd-serv__go { opacity: 1; transform: none; }
/* Imagen que aparece al pasar el cursor (solo escritorio) */
.nd-serv__peek {
  position: absolute; right: 6%; top: 50%; width: 230px; aspect-ratio: 3/4;
  transform: translate(0, -46%) rotate(-4deg) scale(.94);
  opacity: 0; pointer-events: none; z-index: 3;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.nd-serv__peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 900px) {
  .nd-serv__row:hover .nd-serv__peek { opacity: 1; transform: translate(0, -50%) rotate(-4deg) scale(1); }
}
@media (max-width: 900px) {
  .nd-serv__row { grid-template-columns: 54px 1fr; }
  .nd-serv__go, .nd-serv__peek { display: none; }
}

/* --- EL ESPACIO -------------------------------------------------------- */
.nd-space { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(18px, 4vw, 60px); align-items: start; }
/* El clip es vertical y YouTube lo enmarca en 16:9: el marco debe seguir siendo
   9/16 para recortar justo el vídeo (si se ensancha reaparecen las bandas
   negras laterales). Se limita el ancho para que no crezca ~1000px de alto. */
.nd-space__vid {
  position: relative; aspect-ratio: 9/16; overflow: hidden; background: #000;
  width: 100%; max-width: 400px;
}
.nd-space__vid iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 100%; width: 316%; min-width: 316%; border: 0; pointer-events: none;
}
.nd-space__side { padding-top: 4px; }
.nd-space__side img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-top: 30px; filter: grayscale(.2); }
.nd-space__side p { color: var(--nd-mute); margin-top: 20px; max-width: 42ch; }
@media (max-width: 880px) { .nd-space { grid-template-columns: 1fr; } }

/* --- TESTIMONIOS ------------------------------------------------------- */
.nd-quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 66px); }
.nd-quote { border-top: 1px solid var(--nd-line); padding-top: 28px; }
.nd-quote p {
  font-family: var(--nd-display); font-style: italic; font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.42; color: var(--nd-ivory);
}
.nd-quote footer {
  margin-top: 20px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--nd-copper);
}
.nd-quote__mark { font-family: var(--nd-display); font-size: 3rem; line-height: .6; color: var(--nd-copper); opacity: .5; display: block; margin-bottom: 12px; }
@media (max-width: 780px) { .nd-quotes { grid-template-columns: 1fr; } }

/* --- MARQUESINA DE PRODUCTOS ------------------------------------------ */
.nd-marq { overflow: hidden; border-block: 1px solid var(--nd-line); padding-block: clamp(20px, 3vw, 34px); }
.nd-marq__track { display: flex; gap: 46px; width: max-content; animation: ndMarq 46s linear infinite; }
.nd-marq:hover .nd-marq__track { animation-play-state: paused; }
.nd-marq__i {
  font-family: var(--nd-display); font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  letter-spacing: .01em; color: var(--nd-ivory); opacity: .72; white-space: nowrap;
  display: flex; align-items: center; gap: 46px;
}
.nd-marq__i::after { content: "✦"; font-size: .6em; color: var(--nd-copper); opacity: .9; }
@keyframes ndMarq { to { transform: translateX(-50%); } }

/* --- DIARIO / NOTICIAS ------------------------------------------------- */
.nd-post {
  display: grid; grid-template-columns: 130px 1fr auto; gap: clamp(14px, 3vw, 40px); align-items: baseline;
  padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--nd-line);
  transition: padding-left .5s cubic-bezier(.2,.8,.2,1);
}
.nd-post:first-child { border-top: 1px solid var(--nd-line); }
.nd-post:hover { padding-left: 18px; }
.nd-post__date { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--nd-mute); }
.nd-post__t {
  font-family: var(--nd-display); font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.12;
  transition: color .4s ease;
}
.nd-post:hover .nd-post__t { color: var(--nd-copper-lt); }
.nd-post__go { color: var(--nd-copper); font-size: 1.1rem; }
@media (max-width: 760px) { .nd-post { grid-template-columns: 1fr; gap: 8px; } .nd-post__go { display: none; } }

/* --- CIERRE / RESERVA -------------------------------------------------- */
.nd-cta { text-align: center; }
.nd-cta__h {
  font-family: var(--nd-display); font-size: clamp(2.5rem, 9vw, 8rem); line-height: .92;
  letter-spacing: -.03em; text-transform: uppercase;
}
.nd-cta__h em { font-style: italic; text-transform: lowercase; color: var(--nd-copper-lt); }
.nd-cta p { color: var(--nd-mute); margin: 26px auto 38px; max-width: 46ch; }
.nd-cta__acts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- PIE --------------------------------------------------------------- */
.nd-foot { background: var(--nd-ink); border-top: 1px solid var(--nd-line); padding-block: clamp(46px, 7vw, 84px) 30px; }
.nd-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 5vw, 70px); }
.nd-foot h4 { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--nd-copper); font-weight: 400; margin-bottom: 18px; }
.nd-foot p, .nd-foot li { color: var(--nd-mute); font-size: .96rem; }
.nd-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nd-foot a:hover { color: var(--nd-copper-lt); }
.nd-foot__brand { font-family: var(--nd-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.nd-foot__bar {
  margin-top: clamp(34px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--nd-line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--nd-mute);
}
@media (max-width: 780px) { .nd-foot__grid { grid-template-columns: 1fr; } }

/* --- Aviso de vista previa -------------------------------------------- */
.nd-preview {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200;
  background: rgba(20, 17, 16, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--nd-copper); color: var(--nd-ivory);
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 20px; display: flex; align-items: center; gap: 12px;
}
.nd-preview b { color: var(--nd-copper); font-weight: 400; }
.nd-preview button {
  background: none; border: 0; color: var(--nd-mute); cursor: pointer; font: inherit;
  padding: 0 0 0 6px; border-left: 1px solid var(--nd-line);
}
.nd-preview button:hover { color: var(--nd-copper-lt); }
/* En móvil el aviso tapaba el botón "Reservar cita" del hero: se compacta a una
   sola línea y el hero reserva sitio debajo para que nada quede oculto. */
@media (max-width: 700px) {
  .nd-preview {
    left: 12px; right: 12px; bottom: 12px; transform: none;
    justify-content: center; gap: 10px;
    padding: 8px 12px; font-size: .58rem; letter-spacing: .14em;
  }
  .nd-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .nd *, .nd *::before, .nd *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .nd-rise, .nd-rev { opacity: 1 !important; transform: none !important; }
  .nd-marq__track { animation: none; }
}
