/* =============================================================================
   NexoVenues Theme — diseño de nexovenues.com sobre el contenido del tema hijo.

   Las clases nexo-* son las del contenido del hijo (no se tocan en el HTML).
   Las clases nx-* son los contenedores que añade inc/diseno.php.
   ============================================================================= */

/* ─── Fuentes (dentro del theme, sin Google Fonts) ─── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

/* ─── Tokens ─── */
:root {
  --silver:   #C0C0C0;
  --teal:     #00343D;
  --teal-2:   #01353E;
  --navy:     #0A0E1A;
  --navy-2:   #080B14;
  --card:     #0D1120;
  --line:     #1A1E2A;
  --cream:    #FAF8F5;
  --off:      #E0DDD8;
  --gray-cc:  #CCCCCC;
  --gray-aa:  #AAAAAA;
  --gray-88:  #888888;
  --gray-66:  #666666;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad-x: 100px;
  --pad-y: 100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.nx-wrap { max-width: 1240px; margin: 0 auto; }

/* ═════════════════════════════════════════════════════════════════════════════
   CABECERA
   ═════════════════════════════════════════════════════════════════════════════ */

.site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 80px;
  padding: 0 60px;
  background: var(--teal-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.site-logo { flex-shrink: 0; line-height: 0; }
.site-logo img { max-height: 50px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links > li { position: relative; padding: 28px 0; }

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a { color: var(--silver); }

.nav-links > .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 270px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.nav-links .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Último elemento (Contacto) como botón plateado, igual que el CTA de la cabecera original. */
.nav-links > .menu-item:last-child > a {
  display: inline-flex;
  padding: 12px 28px;
  background: var(--silver);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: opacity 0.2s;
}
.nav-links > .menu-item:last-child > a:hover { color: var(--navy); opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.menu-abierto .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-abierto .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-abierto .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═════════════════════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════════════════════ */

.nx-hero { position: relative; overflow: hidden; background: var(--navy); }

.nx-hero__fondo {
  position: absolute;
  inset: 0;
  background: var(--nx-foto) center / cover no-repeat;
}

.nx-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.nx-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nx-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -2px;
  text-wrap: balance;
}

.nexo-intro {
  max-width: 620px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: var(--off);
}
.nexo-intro strong { font-weight: 500; color: #fff; }
.nexo-intro a,
.nx-sec p a,
.nx-sec li a,
.nexo-faq a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.nexo-intro a:hover,
.nx-sec p a:hover,
.nx-sec li a:hover { color: var(--silver); text-decoration-color: var(--silver); }

/* Miga de pan */
.nexo-breadcrumb { font-size: 12px; letter-spacing: 0.5px; color: var(--gray-88); }
.nexo-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nexo-breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.nexo-breadcrumb a { color: var(--gray-aa); text-decoration: none; transition: color 0.2s; }
.nexo-breadcrumb a:hover { color: var(--silver); }
.nexo-breadcrumb [aria-current="page"] { color: var(--silver); }

/* Portada: foto a sangre con degradado lateral. */
.nx-hero--portada { display: flex; align-items: center; min-height: 780px; }
.nx-hero--portada::before {
  background: linear-gradient(to right, rgba(10,14,26,0.94) 0%, rgba(10,14,26,0.62) 45%, rgba(10,14,26,0.2) 100%);
}
.nx-hero--portada .nx-hero__inner { padding: 120px var(--pad-x); max-width: 940px; }
.nx-hero--portada h1 { font-size: 88px; }

/* Resto de páginas: foto tenue detrás del título. */
.nx-hero--pagina { padding: 150px var(--pad-x) 90px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.nx-hero--pagina .nx-hero__fondo { opacity: 0.45; }
.nx-hero--pagina::before {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,52,61,0.35) 0%, transparent 60%),
    linear-gradient(to right, rgba(10,14,26,0.96) 0%, rgba(10,14,26,0.72) 60%, rgba(10,14,26,0.88) 100%);
}
.nx-hero--pagina .nx-hero__inner { max-width: 960px; }
.nx-hero--pagina h1 { font-size: 80px; }

/* Ficha de sala: la foto destacada a pantalla completa y el texto abajo. */
.nx-hero--sala { display: flex; align-items: flex-end; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); }
/* La foto se coloca respecto al hero entero, no respecto al bloque de texto. */
/* z-index:auto también: un elemento flex con z-index crea su propio apilamiento y subiría la foto sobre el degradado. */
.nx-hero--sala .nx-hero__inner { position: static; z-index: auto; }
.nx-hero--sala .nx-hero__inner > :not(.nexo-hero) { position: relative; z-index: 2; }
.nx-hero--sala .nexo-hero { position: absolute; inset: 0; z-index: 0; }
.nx-hero--sala .nexo-hero__img { width: 100%; height: 100%; object-fit: cover; }
/* Algunas portadas son muy claras: oscurece de abajo arriba y por la izquierda, donde va el texto. */
.nx-hero--sala::before {
  background:
    linear-gradient(to right, rgba(8,11,20,0.82) 0%, rgba(8,11,20,0.45) 55%, rgba(8,11,20,0.1) 100%),
    linear-gradient(to top, rgba(8,11,20,0.98) 0%, rgba(8,11,20,0.7) 38%, rgba(8,11,20,0.3) 70%, rgba(8,11,20,0.2) 100%);
}
.nx-hero--sala .nx-hero__inner { padding: 140px var(--pad-x) 80px; max-width: 1140px; gap: 20px; }
.nx-hero--sala h1 { font-size: 60px; letter-spacing: -1.5px; }

/* Nombre de la sala (Singapore, Las Vegas…): la firma de la ficha. */
.nexo-nombre {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 150px;
  line-height: 0.9;
  letter-spacing: -4px;
  color: var(--silver);
  margin: -6px 0 6px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   SECCIONES H2
   ═════════════════════════════════════════════════════════════════════════════ */

.nx-sec { padding: var(--pad-y) var(--pad-x); background: var(--navy); }
.nx-sec--alt { background: var(--navy-2); }

.nx-sec h2,
.nexo-faq h2,
.nexo-cta h2,
.nexo-form__titulo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -1px;
  text-wrap: balance;
}

.nx-sec h2 { font-size: 52px; }

.nx-sec__cabeza { display: flex; flex-direction: column; gap: 24px; }
.nx-sec__cuerpo { display: flex; flex-direction: column; gap: 22px; }

/* Answer capsule: la frase que responde al H2. */
.nexo-capsule {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--silver);
}

.nx-sec p:not([class]) {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-88);
}

/* Primera sección: banda teal centrada (la «tagline» de la portada original). */
.nx-sec--destacada { background: var(--teal-2); padding-top: 90px; padding-bottom: 90px; text-align: center; }
.nx-sec--destacada .nx-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 880px; }
.nx-sec--destacada .nx-sec__cabeza { align-items: center; }
.nx-sec--destacada .nx-sec__cabeza::before {
  content: '';
  width: 120px;
  height: 1px;
  margin-bottom: 8px;
  background: rgba(192,192,192,0.45);
}
.nx-sec--destacada h2 { font-size: 46px; }
.nx-sec--destacada .nexo-capsule { font-size: 28px; color: var(--cream); }
.nx-sec--destacada p:not([class]) { max-width: 700px; color: var(--gray-aa); font-size: 15px; }

/* Texto suelto: título a la izquierda, texto a la derecha. */
.nx-sec--texto .nx-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: end; }

/* Varias de texto seguidas: columnas separadas por filete. */
.nx-sec--columnas .nx-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.nx-sec--columnas .nx-wrap[data-n="2"],
.nx-sec--columnas .nx-wrap[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.nx-columna {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 44px;
  background: var(--navy);
}
.nx-sec--alt .nx-columna { background: var(--navy-2); }
.nx-columna h2 { font-size: 32px !important; letter-spacing: -0.5px; }
.nx-columna .nexo-capsule { font-size: 20px; }
.nx-columna p:not([class]) { font-size: 14px; line-height: 1.75; }

/* Ficha técnica: texto a la izquierda, caja de especificaciones a la derecha. */
.nx-sec--ficha .nx-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 80px; align-items: start; }
.nx-sec--ficha .nx-sec__cabeza { grid-column: 1; grid-row: 1; }
.nx-sec--ficha .nx-sec__cuerpo { display: contents; }
.nx-sec--ficha .nx-sec__cuerpo > p { grid-column: 1; grid-row: 2; }
.nx-sec--ficha .nexo-ficha { grid-column: 2; grid-row: 1 / span 2; }

.nexo-ficha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 36px 40px;
  list-style: none;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.nexo-ficha li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nexo-ficha li:nth-child(odd) { padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.05); }
.nexo-ficha li:nth-child(even) { padding-left: 20px; }
.nexo-ficha__etiqueta {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-66);
}
.nexo-ficha__valor {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
}

/* Listas (qué incluye, equipamiento…): rejilla de rasgos. */
.nx-sec--lista .nx-wrap { display: flex; flex-direction: column; gap: 56px; }
.nx-sec--lista .nx-sec__cabeza { align-items: center; max-width: 880px; margin: 0 auto; text-align: center; }
/* Filetes con bordes y no con hueco de rejilla: si el número de rasgos no cuadra, no queda un bloque gris. */
.nx-sec--lista ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.nx-sec--lista li {
  padding: 44px 36px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--navy);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-88);
}
.nx-sec--alt.nx-sec--lista li { background: var(--navy-2); }
.nx-sec--lista li::before { content: ''; display: block; width: 32px; height: 1px; margin-bottom: 24px; background: var(--silver); }
.nx-sec--lista li strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  color: #fff;
}
.nx-sec--lista .nx-sec__cuerpo > p:not([class]) { max-width: 760px; }

/* Tarjetas H3 numeradas (fichas de sala). */
.nx-sec--tarjetas .nx-wrap { display: flex; flex-direction: column; gap: 56px; }
.nx-sec--tarjetas .nx-sec__cabeza { max-width: 900px; }

.nx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  counter-reset: nx-card;
}
.nx-cards[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.nx-cards[data-n="4"] { grid-template-columns: repeat(4, 1fr); }
/* Las 8 de tipos de evento llevan párrafos largos: a 4 columnas el texto tapa la foto. */
.nx-cards--fotos[data-n="4"],
.nx-cards--fotos[data-n="8"] { grid-template-columns: repeat(2, 1fr); }

.nx-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 36px;
  background: var(--navy-2);
  counter-increment: nx-card;
  transition: background 0.3s;
}
.nx-sec--alt .nx-card { background: var(--navy); }
.nx-card:hover { background: var(--card); }
.nx-card::before {
  content: counter(nx-card, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: rgba(192,192,192,0.14);
}
.nx-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.nx-card p { font-size: 14px !important; line-height: 1.7 !important; color: var(--gray-88); }

/* Tarjetas H3 con foto (portada, listado, categorías). */
.nx-cards--fotos { gap: 16px; background: none; }
.nx-card--foto {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  min-height: 440px;
  padding: 30px;
  overflow: hidden;
  background: var(--navy-2) !important;
}
.nx-card--foto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8,11,20,0.96) 0%, rgba(8,11,20,0.72) 42%, rgba(8,11,20,0.18) 100%),
    var(--nx-foto) center / cover no-repeat;
  transition: transform 0.7s ease;
}
.nx-card--foto:hover::before { transform: scale(1.05); }
.nx-card--foto h3 { font-size: 32px; max-width: 520px; }
.nx-card--foto p { max-width: 560px; color: var(--gray-cc); }

/* Tabla comparativa como tarjetas de sala con foto. Sigue siendo la misma tabla. */
.nx-sec--tabla .nx-wrap { display: flex; flex-direction: column; gap: 48px; }
.nx-sec--tabla .nx-sec__cabeza { max-width: 900px; }
.nx-sec--tabla .nx-sec__cuerpo { gap: 36px; }
.nx-sec--tabla .nx-sec__cuerpo > p:not([class]) { max-width: 780px; }

.nexo-tabla-wrap { margin: 0; }
.nexo-tabla { display: block; width: 100%; border-collapse: collapse; }
.nexo-tabla caption {
  display: block;
  margin-bottom: 22px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
}
.nexo-tabla thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nexo-tabla tbody { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nexo-tabla tr {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 8px;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  background: var(--navy-2);
}
.nexo-tabla tr::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 70%),
    var(--nx-foto) center / cover no-repeat;
  transition: transform 0.6s ease;
}
.nexo-tabla tr:hover::before { transform: scale(1.05); }
.nexo-tabla th,
.nexo-tabla td { display: block; padding: 0; border: 0; text-align: left; font-weight: 400; }
.nexo-tabla th { flex-basis: 100%; margin-bottom: 8px; }
.nexo-tabla th a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
/* Toda la tarjeta enlaza a la ficha. */
.nexo-tabla th a::after { content: ''; position: absolute; inset: 0; }
.nexo-tabla td.nexo-num {
  padding: 6px 12px;
  background: rgba(8,11,20,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--gray-cc);
  font-variant-numeric: tabular-nums;
}
/* Las etiquetas de la cabecera de la tabla (m², Cóctel, Cena), junto a cada cifra. */
.nexo-tabla td:nth-of-type(1)::after { content: ' m\0000B2'; }
.nexo-tabla td:nth-of-type(2)::after { content: ' c\0000F3ctel'; }
.nexo-tabla td:nth-of-type(3)::after { content: ' cena'; }
.nexo-tabla td.nx-vacio { display: none; }
.nexo-tabla td:last-child {
  flex-basis: 100%;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--gray-aa);
}

/* ═════════════════════════════════════════════════════════════════════════════
   BLOQUES FINALES: CTA, galería, preguntas, formulario
   ═════════════════════════════════════════════════════════════════════════════ */

.nx-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 110px 40px;
  overflow: hidden;
  text-align: center;
}
.nx-cta__fondo { position: absolute; inset: 0; background: var(--nx-foto) center / cover no-repeat; }
.nx-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(8,11,20,0.94) 0%, rgba(8,11,20,0.66) 50%, rgba(8,11,20,0.94) 100%);
}
.nx-cta .nx-wrap { position: relative; z-index: 2; max-width: 940px; width: 100%; }

.nexo-cta { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.nexo-cta::before {
  content: '';
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--silver), transparent);
}
.nexo-cta h2 { font-size: 66px; line-height: 0.98; }
.nexo-cta p { max-width: 600px; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--gray-aa); }
.nexo-cta__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 6px; }

.nexo-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px;
  background: var(--silver);
  border: 1px solid var(--silver);
  border-radius: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.nexo-boton:hover { opacity: 0.85; color: var(--navy); }
.nexo-boton--linea { background: transparent; border-color: rgba(192,192,192,0.35); color: #fff; font-weight: 400; }
.nexo-boton--linea:hover { opacity: 1; color: #fff; border-color: rgba(255,255,255,0.75); }

/* Galería de la ficha. */
.nx-galeria { padding: var(--pad-y) var(--pad-x); background: var(--navy); }
.nexo-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nexo-galeria__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Mosaico decorativo de /galeria/. */
.nx-mosaico { padding: var(--pad-y) var(--pad-x) 0; background: var(--navy); }
.nx-mosaico .nx-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nx-mosaico__foto { aspect-ratio: 4 / 3; background: var(--navy-2) var(--nx-foto) center / cover no-repeat; }

/* Preguntas frecuentes: <details> nativo con el aspecto del acordeón original. */
.nx-faq { padding: var(--pad-y) var(--pad-x); background: var(--navy-2); }
.nexo-faq { max-width: 860px; margin: 0 auto; }
.nexo-faq h2 { margin-bottom: 44px; font-size: 52px; text-align: center; }
.nexo-faq__item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.nexo-faq__item summary {
  position: relative;
  padding: 28px 60px 28px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
}
.nexo-faq__item summary::-webkit-details-marker { display: none; }
.nexo-faq__item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--teal);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0C0C0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s;
}
.nexo-faq__item[open] summary::after { transform: rotate(45deg); }
.nexo-faq__respuesta p {
  padding: 0 60px 28px 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-88);
}

/* Formulario. */
.nx-form { padding: var(--pad-y) var(--pad-x); background: var(--navy); }
.nexo-form { max-width: 900px; margin: 0 auto; scroll-margin-top: 100px; }
.nexo-form__titulo { margin-bottom: 14px; font-size: 48px; text-align: center; }
.nexo-form__intro {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: var(--gray-88);
}
.nexo-form__aviso { margin: 0 0 28px; padding: 16px 20px; font-size: 14px; line-height: 1.6; }
.nexo-form__aviso--ok { background: rgba(0,150,80,0.12); border: 1px solid rgba(0,200,100,0.3); color: #6effc0; }
.nexo-form__aviso--error { background: rgba(200,50,50,0.12); border: 1px solid rgba(255,80,80,0.3); color: #ffaaaa; }
.nexo-form__campos { display: flex; flex-direction: column; gap: 20px; }
.nexo-form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nexo-form__campo { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.nexo-form__campo label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-88);
}
.nexo-form__campo input,
.nexo-form__campo select,
.nexo-form__campo textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0;
  outline: none;
  color: var(--cream);
  font: 300 14px/1.5 var(--sans);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.nexo-form__campo input:focus,
.nexo-form__campo select:focus,
.nexo-form__campo textarea:focus { border-color: var(--silver); }
.nexo-form__campo input[type="date"] { color-scheme: dark; }
.nexo-form__campo select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C0C0C0' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 16px;
  background-repeat: no-repeat;
}
.nexo-form__campo select option { background: #fff; color: #111; }
.nexo-form__campo textarea { min-height: 130px; resize: vertical; }
.nexo-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nexo-form__enviar { display: flex; justify-content: center; margin: 12px 0 0; }

/* Páginas de lectura (legales): una columna cómoda, como las legales de nexovenues.com. */
.nx-libre.nx-lectura .nx-wrap { max-width: 820px; }
.nx-libre.nx-lectura h2 {
  margin: 52px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #fff;
}
.nx-libre.nx-lectura h3 {
  margin: 28px 0 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--off);
}
.nx-libre.nx-lectura p,
.nx-libre.nx-lectura li { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--gray-aa); }
.nx-libre.nx-lectura p { margin: 0 0 14px; }
.nx-libre.nx-lectura ul { margin: 0 0 14px; padding-left: 22px; }
.nx-libre.nx-lectura li { margin-bottom: 6px; }
.nx-libre.nx-lectura strong { font-weight: 500; color: var(--cream); }
.nx-libre.nx-lectura a { color: var(--silver); text-underline-offset: 0.2em; }
.nx-libre.nx-lectura a:hover { color: #fff; }
.nx-libre.nx-lectura .nx-tabla-legal { margin: 20px 0; overflow-x: auto; }
.nx-libre.nx-lectura table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.nx-libre.nx-lectura th { padding: 12px 16px; text-align: left; background: rgba(255,255,255,0.04); color: var(--off); font-weight: 600; border-bottom: 1px solid var(--line); }
.nx-libre.nx-lectura td { padding: 12px 16px; vertical-align: top; color: var(--gray-aa); border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Botones flotantes de WhatsApp y llamada. */
.nx-flotantes {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nx-flotante {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nx-flotante:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.nx-flotante svg { width: 28px; height: 28px; }
.nx-flotante--whatsapp { background: #25D366; color: #fff; }
.nx-flotante--llamar { background: var(--silver); color: var(--navy); }
.nx-flotante--llamar svg { width: 24px; height: 24px; }
.menu-abierto .nx-flotantes { display: none; }

/* Enlaces a las políticas dentro del aviso de cookies. */
.nx-cookies-enlaces { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 4px; font-size: 13px; }
.nx-cookies-enlaces a { color: #1863dc; text-decoration: underline; }

/* Bloque sin estructura reconocible (página reescrita a mano) y listados. */
.nx-libre, .nx-indice { padding: var(--pad-y) var(--pad-x); }
.nx-libre p, .nx-indice p { margin-bottom: 1em; color: var(--gray-aa); font-weight: 300; line-height: 1.8; }
.nx-libre h2, .nx-libre h3, .nx-indice h1, .nx-indice h2 { margin: 1.2em 0 0.5em; font-family: var(--serif); font-style: italic; color: #fff; }
.nx-indice h1 { font-size: 64px; }
.nx-indice article { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nx-indice a { text-decoration: none; }

/* ═════════════════════════════════════════════════════════════════════════════
   PIE
   ═════════════════════════════════════════════════════════════════════════════ */

.site-footer { background: var(--teal-2); }

.footer-top { display: flex; gap: 60px; padding: 72px var(--pad-x) 56px; }
.footer-brand { flex: 0 0 200px; padding-top: 2px; }
.footer-brand img { max-height: 44px; width: auto; }

.nexo-foot { flex: 1; min-width: 0; }
.nexo-foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nexo-foot__tit {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
}
.nexo-foot__col ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nexo-foot__col a {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s;
}
.nexo-foot__col a:hover { color: #fff; }
.nexo-foot__cta { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0; }
.nexo-foot__cta a { color: var(--silver); font-weight: 500; }
.nexo-foot__seo {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.56);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--pad-x);
  border-top: 1px solid rgba(0,0,0,0.25);
}
.footer-copyright { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.56); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-legal a { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.56); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ─── Aparición al hacer scroll (la clase la pone el JS: sin JS no se oculta nada) ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  :root { --pad-x: 48px; --pad-y: 80px; }

  .navbar { padding: 0 24px 0 32px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 32px 48px;
    overflow-y: auto;
    background: var(--navy);
  }
  .admin-bar .nav-links { top: 112px; }
  .menu-abierto .nav-links { display: flex; }
  .menu-abierto { overflow: hidden; }
  .nav-links > li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links > li > a { font-size: 15px; }
  .nav-links .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 12px;
    padding: 0 0 0 16px;
    background: none;
    border: 0;
    border-left: 1px solid rgba(192,192,192,0.2);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links .sub-menu a { padding: 7px 0; font-size: 13px; letter-spacing: 0.3px; text-transform: none; color: var(--gray-aa); }
  .nav-links > .menu-item:last-child { border-bottom: 0; padding-top: 24px; }

  .nx-hero--portada h1 { font-size: 68px; }
  .nx-hero--pagina h1 { font-size: 62px; }
  .nx-hero--sala h1 { font-size: 48px; }
  .nexo-nombre { font-size: 112px; letter-spacing: -3px; }

  .nx-sec h2, .nexo-faq h2 { font-size: 44px; }
  .nexo-cta h2 { font-size: 52px; }
  .nx-sec--texto .nx-wrap { gap: 48px; }
  .nx-sec--columnas .nx-wrap { grid-template-columns: repeat(2, 1fr); }
  .nx-cards, .nx-cards[data-n="4"], .nx-cards[data-n="8"] { grid-template-columns: repeat(2, 1fr); }
  .nexo-tabla tbody { grid-template-columns: repeat(2, 1fr); }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { flex-basis: auto; }
}

/* Con sesión iniciada, la barra de WordPress mide 46px por debajo de 783px. */
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-links { top: 126px; }
}

@media (max-width: 760px) {
  :root { --pad-x: 20px; --pad-y: 60px; }
  .admin-bar .nav-links { top: 118px; }

  .navbar { height: 72px; padding: 0 12px 0 20px; }
  .nav-links { top: 72px; }
  .site-logo img { max-height: 42px; }

  .nx-hero h1 { letter-spacing: -1px; }
  .nx-hero--portada { min-height: 620px; }
  /* En móvil el texto ocupa todo el ancho: el degradado lateral no basta. */
  .nx-hero--portada::before { background: linear-gradient(to top, rgba(10,14,26,0.96) 0%, rgba(10,14,26,0.72) 55%, rgba(10,14,26,0.45) 100%); }
  .nx-hero--sala::before { background: linear-gradient(to top, rgba(8,11,20,0.97) 0%, rgba(8,11,20,0.78) 50%, rgba(8,11,20,0.5) 100%); }
  .nx-hero--portada .nx-hero__inner { padding: 90px var(--pad-x) 70px; }
  .nx-hero--portada h1 { font-size: 48px; }
  .nx-hero--pagina { padding-top: 90px; padding-bottom: 60px; }
  .nx-hero--pagina h1 { font-size: 42px; }
  .nx-hero--sala .nx-hero__inner { padding: 110px var(--pad-x) 48px; }
  .nx-hero--sala h1 { font-size: 36px; }
  .nexo-nombre { font-size: 76px; letter-spacing: -2px; }
  .nexo-intro { font-size: 15px; }

  .nx-sec h2, .nexo-faq h2, .nexo-form__titulo { font-size: 36px; }
  .nx-sec--destacada h2 { font-size: 34px; }
  .nexo-capsule, .nx-sec--destacada .nexo-capsule { font-size: 21px; }
  .nx-columna { padding: 40px 24px; }
  .nx-columna h2 { font-size: 28px !important; }

  .nx-sec--texto .nx-wrap,
  .nx-sec--ficha .nx-wrap { grid-template-columns: 1fr; gap: 28px; }
  .nx-sec--ficha .nx-sec__cabeza,
  .nx-sec--ficha .nx-sec__cuerpo > p,
  .nx-sec--ficha .nexo-ficha { grid-column: 1; grid-row: auto; }

  .nexo-ficha { padding: 24px; }
  .nexo-ficha__valor { font-size: 24px; }

  .nx-sec--columnas .nx-wrap,
  .nx-sec--columnas .nx-wrap[data-n="2"],
  .nx-sec--columnas .nx-wrap[data-n="4"],
  .nx-cards, .nx-cards[data-n="2"], .nx-cards[data-n="4"], .nx-cards[data-n="8"],
  .nexo-tabla tbody,
  .nexo-galeria,
  .nx-mosaico .nx-wrap,
  .nexo-foot__grid { grid-template-columns: 1fr; }

  .nx-card { padding: 36px 24px; }
  .nx-card--foto, .nexo-tabla tr { min-height: 360px; }
  .nexo-tabla th a { font-size: 34px; }

  .nexo-cta h2 { font-size: 38px; }
  .nexo-cta__acciones { flex-direction: column; align-self: stretch; }
  .nexo-boton { width: 100%; padding: 17px 24px; }

  .nexo-faq__item summary { font-size: 19px; padding-right: 48px; }
  .nexo-faq__respuesta p { padding-right: 0; }
  .nexo-form__fila { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .nx-flotantes { right: 16px; bottom: 16px; gap: 10px; }
  .nx-flotante { width: 52px; height: 52px; }
  .nx-libre.nx-lectura h2 { font-size: 26px; }
}
