/* Universo Stream — sistema visual 2026
   Lenguaje: sala de control. Fondo negro de monitor, rojo tally, rejilla técnica, tipografía condensada de TV. */

@font-face { font-family: "Mohave"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/Mohave-Light.woff2) format("woff2"); }
@font-face { font-family: "Mohave"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/Mohave-Regular.woff2) format("woff2"); }
@font-face { font-family: "Mohave"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/Mohave-Medium.woff2) format("woff2"); }
@font-face { font-family: "Mohave"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/Mohave-Bold.woff2) format("woff2"); }

:root {
	--ink: #08090a;
	--ink-2: #0d0f11;
	--panel: #13161a;
	--panel-2: #191d22;
	--line: #242830;
	--line-2: #353a45;
	--text: #d9d7d1;
	--muted: #8e929b;
	--white: #f5f3ee;
	--red: #e71700;
	--red-hot: #ff3b24;
	--display: "Mohave", "Arial Narrow", Impact, sans-serif;
	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: var(--sans); /* sin tipografía tecnológica: las etiquetas usan la misma sans del texto */
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--maxw: 76rem;
	--topbar-h: 1.9rem;
	--header-h: 5.75rem;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
	margin: 0; background: var(--ink); color: var(--text);
	font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-hot); }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.small { font-size: .875rem; color: var(--muted); }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--red); color: #fff; padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; color: #fff; }

/* Piezas recurrentes ------------------------------------------------------ */
.tally { display: inline-block; width: .55rem; height: .55rem; background: var(--red); border-radius: 50%; margin-right: .6rem; vertical-align: .05em; box-shadow: 0 0 0 0 rgba(231, 23, 0, .6); animation: tally 2.4s infinite; }
@keyframes tally { 0% { box-shadow: 0 0 0 0 rgba(231, 23, 0, .55); } 70%, 100% { box-shadow: 0 0 0 .5rem rgba(231, 23, 0, 0); } }

/* Barras de color SMPTE, como en una carta de ajuste */
.bars { height: 6px; background: linear-gradient(90deg, #c8c8c8 0 14.28%, #c8c800 0 28.56%, #00c8c8 0 42.84%, #00c800 0 57.12%, #c800c8 0 71.4%, #c80000 0 85.68%, #0000c8 0 100%); opacity: .85; }

.eyebrow { color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; }

.btn {
	display: inline-flex; align-items: center; gap: .75rem; padding: .95rem 1.6rem; border: 1px solid var(--white); color: var(--white);
	font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: transparent; cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Barra superior -------------------------------------------------------- */
.topbar { background: var(--ink); border-bottom: 1px solid var(--line); color: var(--muted); height: var(--topbar-h); position: relative; z-index: 60; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar .mono { font-size: .68rem; }
.topbar time { color: var(--white); }

/* Cabecera y navegación ------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); height: var(--header-h); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 2rem; }
.brand { display: block; line-height: 0; }
.brand { flex: none; }
.brand img { width: 230px; height: auto; }
@media (max-width: 80rem) { .brand img { width: 190px; } .nav__list > li > a, .nav__sub-btn { padding: 0 .65rem; font-size: 1.12rem; } }

.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__sub-btn {
	display: flex; align-items: center; gap: .5rem; height: var(--header-h); padding: 0 .8rem; color: var(--text); text-decoration: none; white-space: nowrap;
	font: 500 1.2rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: none; border: 0; cursor: pointer;
	border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav__list > li > a:hover, .nav__sub-btn:hover, .has-sub.is-open > .nav__sub-btn { color: var(--white); border-bottom-color: var(--red); background: var(--panel); }
.nav__list a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }
.nav__list > li.nav__cta > a { color: #fff; background: var(--red); border-bottom-color: var(--red); padding-inline: 1.4rem; margin-left: .75rem; }
.nav__list > li.nav__cta > a:hover { background: var(--white); color: var(--ink); border-bottom-color: var(--white); }
.caret { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-sub.is-open .caret { transform: translateY(2px) rotate(-135deg); }

.nav__list > li.has-sub { position: static; }
.mega {
	position: absolute; right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); top: 100%; width: min(46rem, 92vw); background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--red);
	padding: 1.25rem 1.5rem 1.5rem; display: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.has-sub.is-open .mega { display: block; }
.mega__label { color: var(--muted); margin: 0 0 .75rem; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.mega__list a { display: flex; gap: .85rem; align-items: baseline; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.mega__list a .mono { color: var(--red-hot); font-size: .68rem; flex: none; }
.mega__list a:hover, .mega__list a[aria-current="page"] { color: var(--white); background: var(--panel-2); padding-left: .5rem; }

.menu-btn { display: none; align-items: center; gap: .7rem; background: none; border: 1px solid var(--line-2); color: var(--white); padding: .6rem .9rem; cursor: pointer; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 64rem) {
	.menu-btn { display: inline-flex; }
	.nav { position: fixed; inset: calc(var(--header-h) + var(--topbar-h)) 0 0 0; background: var(--ink); overflow-y: auto; padding: 1rem var(--gutter) 3rem; display: none; border-top: 1px solid var(--line); }
	.nav.is-open { display: block; }
	body.menu-open { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li > a, .nav__sub-btn { height: auto; width: 100%; padding: 1.1rem 0; font-size: 1.8rem; justify-content: space-between; border-bottom: 1px solid var(--line); margin: 0; }
	.nav__list > li > a:hover, .nav__sub-btn:hover, .has-sub.is-open > .nav__sub-btn { background: none; border-bottom-color: var(--line); color: var(--red-hot); }
	.nav__list > li.nav__cta > a { margin: 1.5rem 0 0; justify-content: center; padding-block: 1.1rem; border-bottom: 0; font-size: 1.6rem; }
	.nav__list > li.nav__cta > a:hover { background: var(--white); color: var(--ink); }
	.mega { position: static; width: auto; box-shadow: none; border: 0; border-left: 3px solid var(--red); padding: .25rem 0 .5rem 1rem; background: none; }
	.mega__list { grid-template-columns: 1fr; }
	.mega__label { display: none; }
	.topbar__r { display: none; }
}

/* Cabecera de páginas internas ------------------------------------------ */
.page-hero { background: var(--ink-2) url(../img/br-type-bg-head-realizacion.jpg) center 35% / cover no-repeat; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,9,10,.94) 0%, rgba(8,9,10,.82) 45%, rgba(8,9,10,.35) 100%), linear-gradient(0deg, rgba(8,9,10,.6), transparent 40%); }
.page-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px calc(100% / 12));
	-webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero__in { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.crumbs { display: flex; gap: .6rem; color: var(--muted); margin-bottom: 2.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.page-hero__title {
	font: 500 clamp(2.7rem, 7vw, 6rem)/.94 var(--display); letter-spacing: .005em; text-transform: uppercase; color: var(--white);
	margin: 0; max-width: 20ch; text-wrap: balance;
}
.page-hero__lead { max-width: 46rem; margin: 1.75rem 0 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; color: var(--text); font-weight: 300; border-left: 3px solid var(--red); padding-left: 1.25rem; }

/* Contenido editorial ------------------------------------------------- */
.prose-wrap { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.prose { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.prose :is(.container, .container-fluid, .row, [class^="span"], .team-container, main, .portfolio-wrapper) { display: block; width: auto; margin: 0; padding: 0; float: none; }
.prose > * { max-width: 100%; }
.prose p { max-width: 72ch; margin: 0 0 1.25rem; }
.prose strong { color: var(--white); font-weight: 600; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 500; text-transform: uppercase; color: var(--white); line-height: 1; letter-spacing: .02em; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 3.5rem 0 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); position: relative; }
.prose h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 4rem; height: 3px; background: var(--red); }
.prose h3 { font-size: 1.7rem; margin: 2.25rem 0 .75rem; }
/* Subtítulos de lista (p con sólo negrita) */
.prose p:has(> strong:only-child) { margin: 2.25rem 0 .9rem; padding-top: 1rem; border-top: 1px solid var(--line); max-width: none; }
.prose p:has(> strong:only-child) > strong { font-size: 1.1rem; color: var(--white); }
.prose p.cierre { border: 0; padding: 0; margin: 3rem 0 0; }
.prose p.cierre:has(> strong:only-child) > strong { font: 500 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; color: var(--white); letter-spacing: .01em; display: block; max-width: 28ch; border-left: 4px solid var(--red); padding-left: 1.25rem; }

.prose ul, .prose ol { list-style: none; margin: 0 0 1.5rem; padding: 0; column-width: 24rem; column-gap: 3rem; }
.prose li { break-inside: avoid; position: relative; padding: .6rem 0 .6rem 1.35rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.55; margin: 0; }
.prose li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .5rem; height: .5rem; background: var(--red); }
.prose li:last-child { border-bottom: 1px solid var(--line); }
.prose ul.slides li::before, .prose ul.accordion-wrap li::before { content: none; }

.prose a { color: var(--white); }
.prose blockquote { margin: 3rem 0 0; padding: 1.5rem 1.75rem; background: var(--panel); border-left: 4px solid var(--red); max-width: 52rem; }
.prose blockquote p { margin: 0; max-width: none; color: var(--text); }
.prose img { display: block; border: 1px solid var(--line); background: var(--panel); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 1px solid var(--line); background: #000; display: block; }
.prose figure { margin: 0; }
.prose figcaption { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .65rem; }

/* Bloques de imágenes/video (antes sliders) */
.prose ul.slides { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; columns: auto; margin: 1.5rem 0 2.5rem; }
.prose ul.slides li { padding: 0; border: 0; font-size: .85rem; color: var(--muted); }
.prose ul.slides li:last-child { border: 0; }
.prose ul.slides li > a, .prose figure > a { display: block; position: relative; }
.prose a.fancyframe::after { content: "▶ Ver video"; position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .55rem .9rem; }
.prose .portfolio-project-slider-wrapper { margin: 2rem 0; }
#slider-buttons { display: none; }

/* Ficha técnica lateral */
.prose .row:has(> aside) { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; align-items: start; }
.prose aside { display: block !important; width: auto; margin: 0 !important; background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--red); }
.prose aside aside { border: 0; }
.prose aside h2 { font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0; padding: 1rem 1.25rem; border: 0; color: var(--muted); background: transparent !important; }
.prose aside h2::before { content: none; }
.prose aside div, .prose aside ul { background: transparent !important; }
.prose aside ul { column-width: auto; margin: 0; padding: 0 1.25rem 1rem; }
.prose aside li { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; color: var(--white); }
@media (max-width: 62rem) { .prose .row:has(> aside) { grid-template-columns: 1fr; gap: 1rem; } .prose aside { margin-top: 1.5rem !important; } }

/* Preguntas frecuentes */
.faq-grupo { margin-bottom: 1rem; }
.faq-n { counter-reset: faq; }
.faq details { border-top: 1px solid var(--line); counter-increment: faq; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 3rem 1fr 1.5rem; gap: 1rem; align-items: baseline; padding: 1.15rem 0; cursor: pointer; list-style: none; color: var(--white); font-weight: 500; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); font: 500 .72rem var(--mono); color: var(--red-hot); letter-spacing: .08em; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--mono); color: var(--muted); justify-self: end; transition: transform .2s; }
.faq details[open] > summary::after { content: "–"; color: var(--red-hot); }
.faq summary:hover { color: var(--red-hot); }
.faq .faq-resp { padding: 0 0 1.5rem 4rem; max-width: 52rem; }
.faq .faq-resp p { max-width: none; color: var(--text); }
@media (max-width: 40rem) { .faq summary { grid-template-columns: 2rem 1fr 1rem; gap: .6rem; } .faq .faq-resp { padding-left: 2.6rem; } }

/* Quiénes somos */
.equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.persona { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.persona__foto { position: relative; border-bottom: 3px solid var(--red); }
.persona__foto img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 20%; border: 0; filter: grayscale(.25) contrast(1.05); }
.persona__cuerpo { padding: 1.5rem 1.75rem 1.75rem; }
.persona__rol { margin: 0 0 .4rem; color: var(--muted); }
.persona h2 { margin: 0 0 1rem; padding: 0; border: 0; font-size: 2.4rem; }
.persona h2::before { content: none; }
.persona p { font-size: .98rem; max-width: none; }
.persona details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; }
.persona summary { cursor: pointer; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.persona summary:hover { color: var(--red-hot); }
.persona__links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
.persona__links a { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .55rem .85rem; border: 1px solid var(--line-2); text-decoration: none; }
.persona__links a:hover { border-color: var(--red-hot); }
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border: 1px solid var(--line); }
.pilar { padding: 1.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -1px 0 0 -1px; }
.pilar h3 { margin: 0 0 .8rem; font-size: 1.9rem; color: var(--white); }
.pilar p { margin: 0; font-size: .98rem; }
.pilar .mono { color: var(--red-hot); display: block; margin-bottom: .6rem; }

/* Clientes (antes de la banda de contacto) ------------------------------- */
.clientes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); padding: 2.25rem 0 2.5rem; overflow: hidden; }
.clientes__head { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.clientes__t { margin: 0; color: var(--white); }
.clientes__s { margin: 0; color: var(--muted); font-size: .95rem; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 140s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; padding: 0 1.75rem; display: flex; align-items: center; }
.marquee__track img { height: 3.6rem; width: auto; opacity: .75; transition: opacity .2s; }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Banda de contacto ------------------------------------------------------ */
.cta-band { background: var(--red); color: #fff; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.25rem, 5vw, 3.75rem) 0; flex-wrap: wrap; }
.cta-band .eyebrow { color: rgba(255, 255, 255, .8); }
.cta-band .tally { background: #fff; animation: none; }
.cta-band__t { margin: 0; font: 500 clamp(2.2rem, 5vw, 4rem)/.95 var(--display); text-transform: uppercase; max-width: 22ch; }
.cta-band .btn--solid { background: var(--ink); border-color: var(--ink); }
.cta-band .btn--solid:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Pie ------------------------------------------------------------------- */
.site-footer { background: var(--ink); border-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: 3.5rem 0 2.5rem; }
.site-footer__about p { max-width: 24rem; font-size: .95rem; }
.site-footer__about img { margin-bottom: 1.25rem; }
.site-footer__col h2 { margin: 0 0 1rem; color: var(--muted); }
.site-footer__col h2:not(:first-child) { margin-top: 2rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col nav ul, .site-footer__col[aria-label] ul { columns: 1; }
.site-footer__col li a { display: block; padding: .32rem 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.site-footer__col li a:hover { color: var(--red-hot); }
.site-footer address { font-style: normal; font-size: .95rem; line-height: 1.7; }
.social { list-style: none; padding: 0; margin: .75rem 0 0; }
.social a { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 1px solid var(--line-2); color: var(--white); text-decoration: none; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.social a:hover { border-color: var(--red-hot); color: var(--red-hot); }
.site-footer__legal { display: flex; align-items: center; gap: 2rem; padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.site-footer__legal p { margin: 0; max-width: 40rem; }
.aliados { position: relative; width: 12.5rem; flex: none; line-height: 0; }
.aliados img { width: 100%; height: auto; }
.aliados__a { position: absolute; top: 15%; bottom: 0; }
.aliados__a--sda { left: 0; width: 51%; }
.aliados__a--cda { left: 51%; width: 49%; }
.aliados__a:hover { outline: 1px solid var(--red-hot); }
@media (max-width: 62rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* HOME -------------------------------------------------------------------- */
.is-home .site-header { position: fixed; left: 0; right: 0; top: var(--topbar-h); background: linear-gradient(180deg, rgba(8, 9, 10, .8), rgba(8, 9, 10, 0)); border-bottom-color: transparent; }
.is-home .topbar { position: fixed; left: 0; right: 0; top: 0; background: rgba(8, 9, 10, .55); border-bottom-color: rgba(255, 255, 255, .1); }
.is-home .nav__list > li > a, .is-home .nav__sub-btn { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.is-home .nav__list > li > a:hover, .is-home .nav__sub-btn:hover, .is-home .has-sub.is-open > .nav__sub-btn { background: rgba(8, 9, 10, .6); }
@media (max-width: 64rem) { .is-home .nav { top: calc(var(--header-h) + var(--topbar-h)); } .is-home .site-header { background: linear-gradient(180deg, rgba(8, 9, 10, .9), rgba(8, 9, 10, .0)); } }

.is-home.is-scrolled .site-header { background: var(--ink); border-bottom-color: var(--line); }
.is-home.is-scrolled .topbar { background: var(--ink); border-bottom-color: var(--line); }
.is-home .site-header, .is-home .topbar { transition: background .25s; }

/* El video del home: mismo archivo, mismo comportamiento (autoplay mudo, clic para activar sonido) */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 34rem; background: #000; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(8, 9, 10, .88), rgba(8, 9, 10, 0)); }

.hero__ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(1.25rem, 3.5vw, 2.5rem); pointer-events: none; }
.hero__ui a, .hero__ui button { pointer-events: auto; }
.lower-third { display: flex; align-items: stretch; max-width: 46rem; }
.lower-third__tab { background: var(--red); width: .6rem; flex: none; }
.lower-third__body { background: rgba(8, 9, 10, .82); padding: 1rem 1.5rem 1.15rem; }
.lower-third .mono { color: var(--muted); display: block; margin-bottom: .5rem; font-size: .68rem; }
.lower-third h1 { margin: 0; font: 500 clamp(1.7rem, 3.6vw, 3rem)/1 var(--display); text-transform: uppercase; color: var(--white); letter-spacing: .01em; }
.hero__bar { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hero__ctrl { display: inline-flex; align-items: center; gap: .6rem; background: rgba(8, 9, 10, .7); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); padding: .55rem .85rem; font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.hero__ctrl:hover { border-color: var(--red-hot); color: var(--red-hot); }
.hero__tc { margin-left: auto; color: var(--white); text-shadow: 0 1px 6px #000; font-variant-numeric: tabular-nums; }
.hero__scroll { color: var(--white); text-decoration: none; text-shadow: 0 1px 6px #000; }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .15); }
.hero__progress i { display: block; height: 100%; width: 0; background: var(--red); }
/* Marcas de encuadre, como en el visor de una cámara */
.fr { position: absolute; width: 1.6rem; height: 1.6rem; border: 0 solid rgba(255, 255, 255, .55); pointer-events: none; }
.fr--tl { top: calc(var(--topbar-h) + var(--header-h) + .75rem); left: var(--gutter); border-left-width: 2px; border-top-width: 2px; }
.fr--tr { top: calc(var(--topbar-h) + var(--header-h) + .75rem); right: var(--gutter); border-right-width: 2px; border-top-width: 2px; }
.rec { position: absolute; top: calc(var(--topbar-h) + var(--header-h) + 1rem); left: calc(var(--gutter) + 2.4rem); color: var(--white); text-shadow: 0 1px 6px #000; font-size: .68rem; pointer-events: none; }
@media (max-width: 64rem) { .fr, .rec { display: none; } }
@media (max-width: 40rem) { .hero__tc { margin-left: 0; } }

/* Datos del servicio */
.specs { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.specs__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 2.25rem 1.5rem 2.25rem 0; border-right: 1px solid var(--line); padding-left: 1.5rem; }
.spec:first-child { padding-left: 0; }
.spec:last-child { border-right: 0; }
.spec b { display: block; font: 500 clamp(2.8rem, 5.6vw, 4.6rem)/1 var(--display); color: var(--white); }
.spec b small { font-size: .5em; color: var(--red-hot); margin-left: .25em; }
.spec span { display: block; margin-top: .6rem; color: var(--muted); font-size: .92rem; line-height: 1.4; max-width: 15rem; }
@media (max-width: 52rem) { .specs__grid { grid-template-columns: 1fr 1fr; } .spec { padding-left: 1.25rem; border-bottom: 1px solid var(--line); } .spec:nth-child(odd) { padding-left: 0; } .spec:nth-child(2) { border-right: 0; } .spec:nth-child(n+3) { border-bottom: 0; } }

.sec { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.sec__title { margin: 0; font: 500 clamp(2.6rem, 6.5vw, 5.4rem)/.92 var(--display); text-transform: uppercase; color: var(--white); text-wrap: balance; }
.sec__intro { margin: 0; max-width: 34rem; color: var(--text); font-weight: 300; font-size: 1.15rem; }
@media (max-width: 52rem) { .sec__head { grid-template-columns: 1fr; gap: 1.25rem; } }

.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 1px solid var(--line-2); }
.svc-list a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: padding .25s var(--ease), background .25s var(--ease); }
.svc-list .mono { color: var(--red-hot); }
.svc-list b { display: block; font: 500 1.9rem/1.05 var(--display); text-transform: uppercase; color: var(--white); letter-spacing: .015em; }
.svc-list small { display: block; margin-top: .4rem; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.svc-list i { font-style: normal; color: var(--muted); font-size: 1.4rem; transition: transform .25s var(--ease), color .25s; }
.svc-list a:hover { background: var(--panel); padding-inline: 1rem; }
.svc-list a:hover b { color: var(--red-hot); }
.svc-list a:hover i { transform: translateX(.4rem); color: var(--red-hot); }
@media (max-width: 52rem) { .svc-list { grid-template-columns: 1fr; } }

.statement { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) 0; align-items: start; }
.statement h2 { margin: 0; font: 500 clamp(2.6rem, 6vw, 5rem)/.95 var(--display); text-transform: uppercase; color: var(--white); text-wrap: balance; }
.statement p { margin: 0 0 1.25rem; max-width: 34rem; }
.statement .btn { margin-top: .75rem; }
@media (max-width: 52rem) { .statement__in { grid-template-columns: 1fr; } }

/* Contacto -------------------------------------------------------------- */
.contacto { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contacto__intro { max-width: 40rem; margin-bottom: 2.5rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: .5rem; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field label b { color: var(--red-hot); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
	width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 0; color: var(--white); padding: .9rem 1rem; font: 400 1rem/1.4 var(--sans); transition: border-color .15s, background .15s;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hot); background: var(--panel-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 1.45rem, calc(100% - .9rem) 1.45rem; background-size: .4rem .4rem; background-repeat: no-repeat; }
.field fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.field .radios { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: .95rem; color: var(--text); }
.radio input { accent-color: var(--red); }
.radio:has(input:checked) { border-color: var(--red-hot); color: var(--white); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--red-hot); }
.field .hint { display: flex; justify-content: space-between; margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.estado { margin: 0; font-size: .98rem; min-height: 1.5em; }
.estado.ok { color: #6fd69a; }
.estado.err { color: #ff8a7a; }
.aviso { padding: 1.25rem 1.5rem; margin-bottom: 2rem; border-left: 4px solid var(--red); background: var(--panel); }
.aviso.ok { border-left-color: #3fbf7a; }
.aviso p { margin: 0; max-width: none; }
.datos { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--red); padding: 1.75rem; }
.datos h2 { margin: 0 0 1rem; font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.datos dl { margin: 0; }
.datos dt { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red-hot); margin-top: 1.25rem; }
.datos dd { margin: .3rem 0 0; font-size: .98rem; line-height: 1.55; }
.mapa { margin-top: clamp(2.5rem, 6vw, 4.5rem); border: 1px solid var(--line-2); line-height: 0; }
.mapa iframe { width: 100%; height: 26rem; border: 0; filter: grayscale(1) invert(.9) contrast(.88); }
@media (max-width: 62rem) { .contacto { grid-template-columns: 1fr; } .datos { position: static; } }
@media (max-width: 40rem) { .form { grid-template-columns: 1fr; } }

/* 404 ------------------------------------------------------------------- */
.nosenal { text-align: center; padding: clamp(4rem, 12vw, 9rem) 0; }
.nosenal__codigo { font: 700 clamp(7rem, 24vw, 18rem)/.85 var(--display); color: var(--white); margin: 0; letter-spacing: .02em; }
.nosenal .bars { max-width: 30rem; margin: 2rem auto; height: 10px; }
.nosenal p { margin-inline: auto; max-width: 32rem; }

/* Visor de video (reemplaza a fancybox) */
dialog.visor { width: min(70rem, 94vw); padding: 0; border: 1px solid var(--line-2); background: #000; color: #fff; }
dialog.visor::backdrop { background: rgba(0, 0, 0, .85); }
dialog.visor iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
dialog.visor button { position: absolute; top: .5rem; right: .5rem; z-index: 2; background: var(--red); color: #fff; border: 0; padding: .55rem .8rem; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tally, .marquee__track { animation: none; }
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	* { transition-duration: .01ms !important; }
}
@media print { .topbar, .site-header, .cta-band, .clientes, .menu-btn { display: none; } body { background: #fff; color: #000; } }

/* Ajuste: las opciones de radio no heredan el estilo de las etiquetas de campo */
.field label.radio { display: inline-flex; margin: 0; font: 400 .95rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.field label.radio:has(input:checked) { color: var(--white); }
.trampa label { font: inherit; }

/* Clientes (página antigua) */
.prose .three-cols-portfolio, .prose .portfolio-article { display: block; }
.prose .portfolio-article { margin: 0 0 1.5rem; }
.prose .row:has(> .portfolio-article) { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.5rem; }
.prose .portfolio-content { background: var(--panel); border: 1px solid var(--line); height: 100%; }
.prose .portfolio-content img { width: 100%; border: 0; border-bottom: 3px solid var(--red); }
.prose .portfolio-content-wrap { padding: 1.25rem 1.5rem 1.5rem; }
.prose .portfolio-content-wrap h2 { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 2rem; }
.prose .portfolio-content-wrap h2::before { content: none; }
.prose .portfolio-content-wrap p { font-size: .95rem; }

/* Tipografía de títulos fuera de .prose */
.persona h2, .pilar h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; color: var(--white); line-height: 1; letter-spacing: .02em; }
.persona h2 { font-size: 2.6rem; }
.pilar h3 { font-size: 2rem; }

/* Galería del home */
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: .5rem; }
.galeria li { margin: 0; }
.galeria a { display: block; position: relative; overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s; filter: saturate(.9); }
.galeria a:hover img { transform: scale(1.05); filter: none; }
.galeria a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.galeria a:hover::after, .galeria a:focus-visible::after { transform: scaleX(1); }
dialog.visor--foto { width: min(80rem, 96vw); background: #000; }
dialog.visor--foto img { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: #000; }
dialog.visor--foto p { margin: 0; padding: .75rem 1rem; font-size: .9rem; color: var(--muted); background: var(--panel); }
dialog.visor .nav-foto { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 4rem; padding: 0; font-size: 1.6rem; background: rgba(8,9,10,.7); }
dialog.visor .nav-foto--prev { left: .5rem; right: auto; }
dialog.visor .nav-foto--next { right: .5rem; }
@media (max-width: 40rem) { .brand img { width: 180px; } .galeria { grid-template-columns: 1fr 1fr; } }

/* Selector de idioma, Equipamiento y avisos */
.nav__plain { background: none; border: 0; border-bottom: 3px solid transparent; }
.nav__list > li.nav__lang { margin-left: .5rem; }
.nav__lang ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.nav__list > li.nav__lang a { height: auto; padding: .45rem .5rem; font: 600 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); border: 1px solid transparent; }
.nav__list > li.nav__lang a:hover { background: none; color: var(--white); border-color: var(--line-2); }
.nav__list > li.nav__lang a[aria-current] { color: var(--white); border-color: var(--red); }
@media (max-width: 64rem) { .nav__list > li.nav__lang { margin: 1.5rem 0 0; } .nav__lang ul { gap: .5rem; } .nav__list > li.nav__lang a { padding: .7rem .9rem; font-size: .9rem; } }
dialog.visor--pronto { width: min(34rem, 92vw); background: var(--panel); border-color: var(--line-2); border-top: 3px solid var(--red); }
dialog.visor--pronto form { margin: 0; }
.pronto { padding: 2.5rem 2rem 2.25rem; }
.pronto h2 { margin: 0 0 1rem; font: 500 clamp(2.8rem, 8vw, 4.2rem)/.95 var(--display); text-transform: uppercase; color: var(--white); }
.pronto p:last-child { margin: 0; color: var(--text); }
.aviso-idioma { padding-top: 1.5rem; }
.aviso-idioma p { margin: 0; padding: .9rem 1.25rem; background: var(--panel); border-left: 4px solid var(--red); font-size: .95rem; }

/* Ajuste de ancho del menú (8 entradas + idiomas) */
.nav__list > li.nav__cta > a { height: 2.7rem; padding-inline: 1.1rem; margin: 0 .5rem; border-bottom: 0; }
.site-header__in { gap: 1rem; }
@media (min-width: 64.01rem) and (max-width: 90rem) {
	.brand img { width: 170px; }
	.nav__list > li > a, .nav__sub-btn { padding: 0 .5rem; font-size: 1.02rem; }
	.nav__list > li.nav__lang { margin-left: 0; }
	.nav__list > li.nav__lang a { padding: .4rem .35rem; }
}

/* Lenguaje de TV: VERDE = previo (hover/foco), ROJO = al aire (página actual / botón presionado) */
:root { --green: #1fd65f; }
a:hover { color: var(--green); }
:focus-visible { outline-color: var(--green); }
.nav__list > li > a:hover, .nav__sub-btn:hover, .has-sub.is-open > .nav__sub-btn { border-bottom-color: var(--green); color: var(--white); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--red); }
.nav__list > li.nav__cta > a:hover { background: var(--green); border-color: var(--green); color: #04130a; }
.nav__list > li.nav__cta > a:active, .nav__list > li.nav__cta > a[aria-current="page"] { background: var(--red); color: #fff; }
.nav__list > li.nav__lang a:hover { border-color: var(--green); color: var(--green); }
.btn:hover { background: var(--green); border-color: var(--green); color: #04130a; }
.btn:active { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--green); border-color: var(--green); color: #04130a; }
.cta-band .btn--solid:hover { background: var(--green); border-color: var(--green); color: #04130a; }
.mega__list a:hover { color: var(--green); }
.mega__list a[aria-current="page"] { color: var(--white); }
.svc-list a:hover b, .svc-list a:hover i { color: var(--green); }
.svc-list a:hover .mono { color: var(--green); }
.site-footer__col li a:hover, .social a:hover, .persona__links a:hover, .persona summary:hover { color: var(--green); border-color: var(--green); }
.faq summary:hover { color: var(--green); }
.hero__ctrl:hover { border-color: var(--green); color: var(--green); }
.hero__ctrl:active { border-color: var(--red); color: var(--red-hot); }
.galeria a:hover::after, .galeria a:focus-visible::after { background: var(--green); }
.aliados__a:hover { outline-color: var(--green); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.radio:has(input:checked) { border-color: var(--red-hot); }
.menu-btn:hover { border-color: var(--green); color: var(--green); }

/* Aire arriba y abajo del logo */
:root { --header-h: 7.25rem; }
.brand { padding: .75rem 0; }
@media (max-width: 64rem) { :root { --header-h: 6.25rem; } }
@media (max-width: 40rem) { :root { --header-h: 5.75rem; } .brand img { width: 170px; } }

/* Retratos recortados (PNG sin fondo) sobre fondo de estudio */
.persona__foto { background: radial-gradient(ellipse at 50% 85%, #2a2f38 0%, #14171c 65%, #0d0f11 100%); overflow: hidden; }
.persona__foto img { aspect-ratio: 4 / 4.1; object-fit: cover; object-position: center 8%; filter: none; }

/* Logos de clientes más grandes */
.clientes { padding: 2.75rem 0 3rem; }
.marquee__track li { padding: 0 2.75rem; }
.marquee__track img { height: 6.25rem; max-width: 14rem; object-fit: contain; opacity: .9; }
.marquee__track { animation-duration: 200s; }
@media (max-width: 40rem) { .marquee__track img { height: 4.5rem; } .marquee__track li { padding: 0 1.75rem; } }

/* Retratos: tamaño natural (370 px) para que no se pixelen */
.persona__foto { display: flex; justify-content: center; align-items: flex-end; }
.persona__foto img { width: auto; max-width: 100%; height: auto; max-height: 24rem; aspect-ratio: auto; object-fit: contain; object-position: bottom; }
