/* PORTADA "NOCHE": fondo azul noche, dorado y Playfair grande.
   Todo va bajo .noche (el contenido) o body.tema-noche (la cabecera de la portada),
   así que no afecta a ninguna otra página. */

.noche {
    --noche: #08111f;
    --azul-n: #0e1b2e;
    --azul-2: #132339;
    --oro-vivo: #d8bd86;
    --marfil: #f3ede2;
    --niebla: #a8b0bd;
    --linea: rgba(193, 166, 119, .28);
    --linea-suave: rgba(243, 237, 226, .1);
    --serif: "Playfair Display", Georgia, serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--noche);
    color: var(--marfil);
    font-size: 1.0625rem;
}
.noche h1, .noche h2, .noche h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; color: var(--marfil); margin: 0; }
.noche h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
.noche em { font-style: italic; color: var(--oro); }
.noche p { margin: 0; }
.noche a { color: inherit; }


/* Piezas comunes */
.n-eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 500 .8rem/1 var(--bs-body-font-family); letter-spacing: .22em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.75rem !important; }
.n-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--oro); }
.n-lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--niebla); max-width: 56ch; }
.n-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 2px; font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.n-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.n-btn:hover svg { transform: translateX(4px); }
.noche .n-btn--oro { background: var(--oro); color: var(--noche); }
.noche .n-btn--oro:hover { background: var(--oro-vivo); color: var(--noche); }
.noche .n-btn--linea { border-color: rgba(243, 237, 226, .35); color: var(--marfil); }
.noche .n-btn--linea:hover { border-color: var(--oro); color: var(--oro-vivo); }
.n-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.noche .n-enlace { display: inline-flex; gap: 10px; align-items: center; color: var(--oro); text-decoration: none; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.n-enlace svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.n-enlace:hover svg { transform: translateX(4px); }

.n-seccion { padding: clamp(6rem, 12vw, 10.5rem) 0; position: relative; }
.n-seccion--corta { padding: clamp(4rem, 8vw, 7rem) 0; }
.n-seccion--azul { background: var(--azul-n); }
.n-cabeza { margin-bottom: clamp(3rem, 6vw, 5rem); }
.n-cabeza--fila { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 4rem; }

/* Aparición suave (solo con JavaScript y sin "reducir movimiento") */
.n-js .n-revelar { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.n-js .n-revelar.n-visto { opacity: 1; transform: none; }

/* 1. Portada */
.n-portada { position: relative; min-height: calc(100svh - 112px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.n-portada__foto { position: absolute; inset: 0; z-index: -2; }
.n-portada__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: grayscale(1) contrast(1.1) brightness(.75); transform: scale(1.08); animation: n-acercar 14s var(--ease) forwards; }
@keyframes n-acercar { to { transform: scale(1); } }
.n-portada::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 17, 31, .97) 0%, rgba(8, 17, 31, .88) 38%, rgba(8, 17, 31, .35) 70%, rgba(8, 17, 31, .55) 100%),
        linear-gradient(0deg, rgba(8, 17, 31, 1) 0%, rgba(8, 17, 31, 0) 45%); }
.n-portada__contenido { padding-top: 5rem; padding-bottom: 3rem; }
.n-portada h1 { font-size: clamp(2.75rem, 6.6vw, 6.5rem); line-height: 1; letter-spacing: -.025em; }
.n-linea { display: block; overflow: hidden; padding-bottom: .08em; }
.n-linea > span { display: block; transform: translateY(105%); animation: n-subir 1.1s var(--ease) forwards; }
.n-linea:nth-child(2) > span { animation-delay: .15s; }
@keyframes n-subir { to { transform: none; } }
.n-portada__fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; margin-top: 2.5rem; }
.n-portada .n-lead { color: #c9ced7; opacity: 0; animation: n-aparecer 1s .55s var(--ease) forwards; }
.n-portada .n-botones { opacity: 0; animation: n-aparecer 1s .7s var(--ease) forwards; }
@keyframes n-aparecer { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.n-sello { width: 168px; height: 168px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; text-align: center; position: relative; opacity: 0; animation: n-aparecer 1s .9s var(--ease) forwards; }
.n-sello::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid var(--linea-suave); }
.n-sello strong { display: block; font: 500 2.9rem/1 var(--serif); color: var(--oro); }
.n-sello span { display: block; font-size: .7rem; font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--niebla); margin-top: 8px; }
.n-medios { border-top: 1px solid var(--linea-suave); margin-top: 3.25rem; padding-top: 1.6rem; display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); flex-wrap: wrap; opacity: 0; animation: n-aparecer 1s 1.05s var(--ease) forwards; }
.n-medios__titulo { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--niebla); }
.n-medios__canal { color: rgba(243, 237, 226, .62); transition: color .3s; }
.n-medios__canal:hover { color: #fff; }
.n-medios__canal .logo-cadena { height: 28px; width: auto; }

/* 2. Cifras */
.n-cifras { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.n-cifra { padding: 3rem 2rem; border-left: 1px solid var(--linea); }
.n-cifra:first-child { border-left: 0; padding-left: 0; }
.n-cifra strong { display: block; font: 500 clamp(3.25rem, 6vw, 5.5rem)/1 var(--serif); color: var(--oro); letter-spacing: -.02em; }
.n-cifra span { display: block; margin-top: .9rem; color: var(--niebla); font-size: .95rem; max-width: 22ch; }

/* 3. No todos son abogados */
.n-manifiesto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.n-manifiesto .n-lead { margin-top: 2rem; }
.n-exigir { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.n-exigir li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 1.1rem 0; border-top: 1px solid var(--linea-suave); }
.n-exigir li:last-child { border-bottom: 1px solid var(--linea-suave); }
.n-exigir .icono { width: 20px; height: 20px; color: var(--oro); margin-top: 4px; }
.n-exigir b { display: block; font-weight: 600; }
.n-exigir span { color: var(--niebla); font-size: .95rem; }
.n-marco { position: relative; }
.n-marco::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--linea); }
.n-marco img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.n-marco__nota { position: absolute; right: -1px; bottom: 32px; background: var(--oro); color: var(--noche); padding: 18px 24px; max-width: 280px; font-weight: 500; font-size: .95rem; line-height: 1.45; }
.n-marco__nota b { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }

/* 4. Áreas */
.n-especialidad { display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, #1a2c47, var(--azul-2)); border: 1px solid var(--linea); overflow: hidden; }
.n-especialidad__texto { padding: clamp(2.25rem, 5vw, 4rem); }
.noche .n-especialidad__texto h3 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); }
.n-especialidad__texto > p:not(.n-eyebrow) { color: var(--niebla); margin-top: 1.1rem; max-width: 44ch; }
.n-reclamos { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.75rem; }
.n-reclamos li { display: flex; gap: 10px; align-items: baseline; }
.n-reclamos li::before { content: ""; width: 6px; height: 6px; background: var(--oro); transform: rotate(45deg) translateY(-2px); flex: none; }
.noche .n-reclamos a { text-decoration: none; font-weight: 500; }
.noche .n-reclamos a:hover { color: var(--oro-vivo); }
.n-especialidad__foto { position: relative; min-height: 420px; }
.n-especialidad__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); }
.n-especialidad__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--azul-2) 0%, rgba(19, 35, 57, 0) 40%); }
.n-area { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr) 48px; gap: 24px; align-items: center; padding: 2.1rem 0; border-bottom: 1px solid var(--linea-suave); text-decoration: none; position: relative; transition: padding .4s var(--ease); }
.n-area::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.n-area:hover::before { transform: scaleX(1); }
.n-area:hover { padding-left: 14px; color: var(--marfil); }
.n-area__num { font: 500 1.1rem/1 var(--serif); color: var(--oro); }
.n-area__nombre { font: 500 clamp(1.75rem, 2.8vw, 2.5rem)/1.1 var(--serif); }
.n-area__temas { color: var(--niebla); font-size: .95rem; }
.n-area__flecha { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; color: var(--oro); transition: background .3s, color .3s; }
.n-area:hover .n-area__flecha { background: var(--oro); color: var(--noche); }
.n-area__flecha svg { width: 18px; height: 18px; }

/* 5. Televisión */
.n-tv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.n-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--linea); background: #000; overflow: hidden; cursor: pointer; }
.n-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.n-video:hover img { transform: scale(1.03); }
.n-video__disco { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--oro); display: grid; place-items: center; color: var(--noche); box-shadow: 0 0 0 12px rgba(193, 166, 119, .18); transition: transform .4s var(--ease), box-shadow .4s; }
.n-video:hover .n-video__disco { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(193, 166, 119, .12); }
.n-video__disco .icono { width: 30px; height: 30px; margin-left: 4px; }
.noche .tarjeta-video__imagen { border: 1px solid var(--linea); }
.noche .tarjeta-video__imagen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.n-tv__titulo { margin-top: 1.4rem !important; font: 500 1.4rem/1.3 var(--serif); }
.n-tv__titulo small { display: block; font: 600 .7rem/1 var(--bs-body-font-family); letter-spacing: .16em; text-transform: uppercase; color: var(--oro); margin-bottom: .6rem; }
.n-tv__cita { margin-top: 1.1rem !important; color: var(--niebla); font-size: .95rem; }
.n-tv__cita b { color: var(--marfil); font-weight: 600; }
.n-apariciones { list-style: none; margin: 0; padding: 0; }
.n-apariciones a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 1.25rem 0; border-bottom: 1px solid var(--linea-suave); align-items: center; text-decoration: none; }
.n-apariciones li:first-child a { padding-top: 0; }
.n-apariciones img { width: 110px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.n-apariciones a:hover img { filter: none; }
.n-apariciones a:hover b { color: var(--oro-vivo); }
.n-apariciones small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); margin-bottom: .5rem; }
.n-apariciones b { font: 500 1.2rem/1.3 var(--serif); transition: color .3s; }

/* 6. Sentencias */
.n-sentencias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linea-suave); border: 1px solid var(--linea-suave); }
.n-sentencia { background: var(--noche); padding: 2.5rem 2.25rem 2.25rem; position: relative; transition: background .4s var(--ease); }
.n-sentencia::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 56px; background: var(--oro); transition: width .6s var(--ease); }
.n-sentencia:hover { background: #0c1829; }
.n-sentencia:hover::before { width: 100%; }
.n-sentencia__sello { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.n-sentencia__sello time { color: var(--niebla); letter-spacing: .08em; }
.noche .n-sentencia h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1.1; margin-top: 1.75rem; }
.n-sentencia p { color: #d4d8de; margin-top: .75rem !important; }
.n-sentencia small { display: block; color: var(--niebla); font-size: .82rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--linea-suave); }
.n-aviso { color: var(--niebla); font-size: .82rem; margin-top: 1.5rem !important; }
.noche .n-aviso a { color: var(--oro); }

/* 7. Cómo trabajamos */
.n-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 4rem); }
.n-paso { border-top: 1px solid var(--linea); padding-top: 2.25rem; }
.n-paso__num { display: block; font: 500 clamp(6rem, 10vw, 9.4rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--oro); margin-bottom: 1.75rem; }
.noche .n-paso h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.n-paso p { color: var(--niebla); margin-top: .9rem !important; }
.n-honorarios { margin-top: clamp(3.5rem, 7vw, 6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem; border: 1px solid var(--linea); background: linear-gradient(90deg, rgba(193, 166, 119, .12), rgba(193, 166, 119, 0)); }
.n-honorarios p { font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--serif); }
.n-honorarios span { display: block; font: 400 .95rem/1.5 var(--bs-body-font-family); color: var(--niebla); margin-top: .5rem; }

/* 8. Contacto */
.n-contacto { overflow: hidden; isolation: isolate; }
.n-contacto__fondo { position: absolute; inset: 0; z-index: -2; }
.n-contacto__fondo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); }
.n-contacto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 31, .96) 0%, rgba(8, 17, 31, .9) 50%, rgba(8, 17, 31, .78) 100%); }
.n-contacto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.noche .n-contacto h2 { font-size: clamp(2.6rem, 5.6vw, 5.25rem); }
.n-contacto .n-lead { margin-top: 1.75rem; }
.n-oficinas { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--linea-suave); }
.noche .n-oficinas a { text-decoration: none; }
.n-oficinas b { display: block; font: 500 1.4rem/1.2 var(--serif); }
.n-oficinas span { color: var(--niebla); font-size: .88rem; }
.noche .n-oficinas a:hover span { color: var(--oro-vivo); }
.noche .formulario { background: var(--marfil); border-radius: 2px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.noche .formulario .formulario__titulo { font-family: var(--serif); color: var(--noche); font-size: 2rem; }
.noche .formulario .btn-oro { background: var(--azul-n); border-color: var(--azul-n); color: var(--marfil); border-radius: 2px; }
.noche .formulario .btn-oro:hover { background: #1b2d48; border-color: #1b2d48; }
.noche .formulario a { color: var(--oro-texto); }

/* Tableta */
@media (max-width: 1199.98px) {
    .n-cifras { grid-template-columns: repeat(2, 1fr); }
    .n-cifra:nth-child(3) { border-left: 0; padding-left: 0; }
    .n-cifra:nth-child(n+3) { border-top: 1px solid var(--linea); }
    .n-manifiesto, .n-tv, .n-contacto__grid, .n-cabeza--fila { grid-template-columns: 1fr; gap: 2.5rem; }
    .n-especialidad { grid-template-columns: 1fr; }
    .n-especialidad__foto { min-height: 280px; order: -1; }
    .n-especialidad__foto::after { background: linear-gradient(0deg, var(--azul-2) 0%, rgba(19, 35, 57, 0) 50%); }
    .n-sentencias { grid-template-columns: 1fr 1fr; }
    .n-marco { max-width: 520px; }
}
/* Móvil */
@media (max-width: 719.98px) {
    .noche { font-size: 1rem; }
    .n-portada { min-height: calc(100svh - 70px); }
    .n-portada__contenido { padding-top: 3.5rem; padding-bottom: 2rem; }
    .n-portada__fila { grid-template-columns: 1fr; gap: 1.75rem; }
    .n-sello { display: none; }
    .n-botones .n-btn { width: 100%; }
    .n-medios { margin-top: 2.5rem; gap: 1rem 1.6rem; }
    .n-medios__titulo { width: 100%; }
    .n-medios__canal .logo-cadena { height: 22px; }
    .n-cifra { padding: 2rem 1rem 2rem 1.25rem; }
    .n-cifra:nth-child(odd) { padding-left: 0; border-left: 0; }
    .n-reclamos { grid-template-columns: 1fr; }
    .n-area { grid-template-columns: 44px minmax(0, 1fr) 40px; padding: 1.6rem 0; }
    .n-area__temas { grid-column: 2 / 3; grid-row: 2; }
    .n-area__flecha { width: 40px; height: 40px; grid-column: 3; grid-row: 1 / 3; }
    .n-apariciones a { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
    .n-apariciones img { width: 88px; }
    .n-sentencias, .n-pasos { grid-template-columns: 1fr; }
    .n-honorarios { padding: 2rem 1.5rem; }
    .n-honorarios .n-btn { width: 100%; }
    .n-oficinas { flex-direction: column; gap: 1.1rem; }
    .n-marco::before { inset: -10px 10px 10px -10px; }
    .n-enlace { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .noche *, .noche *::before, .noche *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
