/*
 * Hangar10 · portada
 *
 * Todo va bajo .h10-home para no tocar nada del resto del sitio.
 * Los hovers y los bucles infinitos son CSS; GSAP solo se encarga de las
 * entradas ligadas al scroll.
 */

.h10-home {
	--h10-bg: #080808;
	--h10-surface: #111111;
	--h10-glass: rgba(15, 15, 15, .55);
	--h10-glass-strong: rgba(15, 15, 15, .88);

	--h10-text: #f5f2ea;
	--h10-text-2: #9a9a9a;
	--h10-text-3: #666666;

	--h10-line: rgba(255, 255, 255, .10);
	--h10-line-2: rgba(255, 255, 255, .25);

	/* Rojo muestreado del propio logotipo (#FF0032), para que la web y la
	   marca sean exactamente el mismo rojo. */
	--h10-accent: #ff0032;
	--h10-accent-dark: #cc0028;
	--h10-glow: rgba(255, 0, 50, .30);

	--h10-display: 'Space Grotesk', system-ui, sans-serif;
	--h10-body: 'DM Sans', system-ui, sans-serif;
	--h10-mono: 'JetBrains Mono', ui-monospace, monospace;

	--h10-gut: clamp(1.25rem, 5vw, 3rem);
	--h10-max: 1200px;
	--h10-nav-h: 72px;

	background: var(--h10-bg);
	color: var(--h10-text);
	font-family: var(--h10-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

.h10-home img,
.h10-home video { display: block; max-width: 100%; }

.h10-home a { color: inherit; text-decoration: none; }

.h10-home :focus-visible {
	outline: 2px solid var(--h10-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Enlace de salto para teclado y lectores de pantalla. */
.h10-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: .75rem 1.25rem;
	background: var(--h10-accent);
	color: #fff;
	font-weight: 600;
}
.h10-skip:focus { left: 0; }

.h10-wrapper { max-width: var(--h10-max); margin-inline: auto; padding-inline: var(--h10-gut); }

.h10-section { position: relative; padding-block: clamp(4rem, 10vw, 8rem); }

/* ---------------------------------------------------------------- tipografía */

.h10-eyebrow {
	font-family: var(--h10-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--h10-accent);
}

.h10-display {
	font-family: var(--h10-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-transform: uppercase;
	margin: 0;
	font-size: clamp(2.5rem, 8vw, 5rem);
}

.h10-h2 {
	font-family: var(--h10-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
	font-size: clamp(1.9rem, 5vw, 3rem);
}

.h10-h3 {
	font-family: var(--h10-display);
	font-weight: 700;
	margin: 0;
	font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}

.h10-lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--h10-text-2); margin: 0; }
.h10-muted { color: var(--h10-text-3); }

/* -------------------------------------------------------------------- botones */

.h10-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 2rem;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--h10-display);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .18s cubic-bezier(.4, 0, .2, 1),
	            background-color .18s ease,
	            border-color .18s ease,
	            box-shadow .18s ease;
}

.h10-btn--primary {
	background: var(--h10-accent);
	color: #fff;
	box-shadow: 0 0 0 rgba(255, 0, 50, 0);
}
.h10-btn--primary:hover {
	background: var(--h10-accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -8px var(--h10-glow);
}

.h10-btn--ghost {
	background: transparent;
	border-color: var(--h10-line-2);
	color: var(--h10-text);
}
.h10-btn--ghost:hover { border-color: var(--h10-accent); color: var(--h10-accent); transform: translateY(-2px); }

.h10-btn:active { transform: scale(.97); }

/* ----------------------------------------------------------------- navegación */

.h10-nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--h10-nav-h);
	display: flex;
	align-items: center;
	transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
	border-bottom: 1px solid transparent;
}
.h10-nav.is-scrolled {
	background: var(--h10-glass-strong);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--h10-line);
}

/* La barra de administración desplaza el documento; el nav es fijo y hay que compensarlo. */
body.admin-bar .h10-nav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .h10-nav { top: 46px; } }

.h10-nav__inner {
	max-width: var(--h10-max);
	margin-inline: auto;
	padding-inline: var(--h10-gut);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.h10-nav__logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.h10-nav__logo img {
	height: 38px;
	width: auto;
	flex-shrink: 0;
}
.h10-footer__logo img { height: 52px; width: auto; margin-bottom: 1rem; }
.h10-nav__logo-text {
	font-family: var(--h10-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.h10-nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.h10-nav__link {
	position: relative;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--h10-text-2);
	padding-block: .4rem;
	transition: color .18s ease;
	white-space: nowrap;
}
.h10-nav__link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--h10-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.h10-nav__link:hover { color: var(--h10-text); }
.h10-nav__link:hover::after { transform: scaleX(1); }

/* Altímetro: guiño al cuadro de mando, alimentado por el scroll. */
.h10-nav__alt {
	font-family: var(--h10-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	color: var(--h10-accent);
	border: 1px solid var(--h10-line);
	padding: .3rem .55rem;
	border-radius: 2px;
}

.h10-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: none;
	border: 1px solid var(--h10-line);
	border-radius: 2px;
	cursor: pointer;
}
.h10-nav__toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	margin-inline: auto;
	background: var(--h10-text);
	transition: transform .25s ease, opacity .2s ease;
}
.h10-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.h10-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.h10-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
	.h10-nav__toggle { display: flex; }
	.h10-nav__alt { display: none; }
	.h10-nav__menu {
		position: fixed;
		inset: var(--h10-nav-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 1rem var(--h10-gut) 2rem;
		background: var(--h10-glass-strong);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--h10-line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .22s ease, transform .22s ease, visibility .22s;
	}
	body.admin-bar .h10-nav__menu { top: calc(var(--h10-nav-h) + 46px); }
	.h10-nav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.h10-nav__link { padding-block: .9rem; border-bottom: 1px solid var(--h10-line); font-size: 1rem; }
	.h10-nav__link::after { display: none; }
}

/* ---------------------------------------------------------------------- hero */

.h10-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
	padding-top: var(--h10-nav-h);
}

.h10-hero__media { position: absolute; inset: 0; z-index: 0; }
.h10-hero__media video,
.h10-hero__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .45;
}

.h10-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(8, 8, 8, .75) 0%, rgba(8, 8, 8, .55) 45%, rgba(8, 8, 8, .95) 100%);
}

/* El resplandor se mueve animando background-position, que sí es composited.
   Animar background-image, como hacía el original, cuesta mucho más. */
.h10-hero__glow {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: .5;
	background: radial-gradient(circle at 30% 40%, var(--h10-glow) 0%, transparent 55%);
	background-size: 200% 200%;
	animation: h10-drift 14s ease-in-out infinite;
}

@keyframes h10-drift {
	0%, 100% { background-position: 20% 50%; }
	50%      { background-position: 80% 80%; }
}

.h10-hero__inner { position: relative; z-index: 3; max-width: 60rem; }

.h10-hero__title { margin-block: 1.25rem .5rem; }
.h10-hero__title span { color: var(--h10-accent); }

.h10-hero__sub { max-width: 42rem; margin-inline: auto; margin-block: 1.25rem 2rem; }

.h10-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.h10-hero__bars {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	translate: -50% 0;
	z-index: 3;
	display: flex;
	gap: .6rem;
	align-items: flex-end;
}
.h10-hero__bars i {
	display: block;
	width: 3px;
	background: linear-gradient(180deg, var(--h10-accent), transparent);
	border-radius: 2px;
	animation: h10-breathe 3s ease-in-out infinite;
}
.h10-hero__bars i:nth-child(1) { height: 20px; animation-delay: 0s; }
.h10-hero__bars i:nth-child(2) { height: 30px; animation-delay: .2s; }
.h10-hero__bars i:nth-child(3) { height: 40px; animation-delay: .4s; }

@keyframes h10-breathe {
	0%, 100% { opacity: .25; }
	50%      { opacity: .9; }
}

/* ------------------------------------------------------------------- tarifas */

.h10-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.h10-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--h10-glass);
	border: 1px solid var(--h10-line);
	border-radius: 3px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform .22s cubic-bezier(.4, 0, .2, 1), border-color .22s ease, background-color .22s ease;
}
.h10-card:hover {
	transform: translateY(-4px);
	border-color: var(--h10-line-2);
	background: rgba(20, 20, 20, .7);
}

.h10-card__kicker { font-family: var(--h10-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--h10-text-3); }
.h10-card__title { margin-block: .5rem 1.25rem; }

.h10-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.25rem; }
.h10-price__num { font-family: var(--h10-display); font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--h10-accent); }
.h10-price__unit { font-family: var(--h10-mono); font-size: .8rem; letter-spacing: .1em; color: var(--h10-text-3); }

.h10-card__body { flex: 1; font-size: .95rem; color: var(--h10-text-2); margin-block: 0 1.75rem; }
.h10-card__body strong { color: var(--h10-text); font-weight: 600; }
.h10-card__note { display: block; margin-top: .6rem; font-size: .8rem; color: var(--h10-text-3); }

.h10-card .h10-btn { width: 100%; }

/* --------------------------------------------------------- bloques con medio */

.h10-split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.h10-split { grid-template-columns: 1fr 1fr; }
	.h10-split--reverse .h10-split__media { order: -1; }
}

.h10-split__media {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--h10-line);
	border-radius: 3px;
	aspect-ratio: 16 / 10;
	background: var(--h10-surface);
}
.h10-split__media video,
.h10-split__media img { width: 100%; height: 100%; object-fit: cover; }

.h10-split__body > * + * { margin-top: 1.1rem; }
.h10-split__list { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.h10-split__list li {
	position: relative;
	padding-left: 1.5rem;
	color: var(--h10-text-2);
	font-size: .98rem;
}
.h10-split__list li + li { margin-top: .7rem; }
.h10-split__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--h10-accent);
}

/* --------------------------------------------------------------- testimonios */

.h10-quote {
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--h10-glass);
	border: 1px solid var(--h10-line);
	border-left: 2px solid var(--h10-accent);
	border-radius: 3px;
	transition: transform .22s cubic-bezier(.4, 0, .2, 1), border-color .22s ease;
}
.h10-quote:hover { transform: translateY(-3px); }
.h10-quote p { margin: 0 0 1rem; color: var(--h10-text-2); font-size: .98rem; }
.h10-quote cite { font-style: normal; font-family: var(--h10-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--h10-text-3); }

.h10-stars { color: var(--h10-accent); letter-spacing: .15em; font-size: .85rem; margin-bottom: .75rem; }

/* ---------------------------------------------------------------- cta final */

.h10-cta { position: relative; overflow: hidden; text-align: center; }
.h10-cta__media { position: absolute; inset: 0; z-index: 0; }
.h10-cta__media video, .h10-cta__poster { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.h10-cta__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,.9), rgba(8,8,8,.75)); }
.h10-cta__inner { position: relative; z-index: 2; }
.h10-cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2rem; }

/* -------------------------------------------------------------------- footer */

.h10-footer { border-top: 1px solid var(--h10-line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.h10-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.h10-footer h4 {
	font-family: var(--h10-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--h10-text-3);
	margin: 0 0 1rem;
}
.h10-footer ul { margin: 0; padding: 0; list-style: none; }
.h10-footer li + li { margin-top: .6rem; }
.h10-footer a { color: var(--h10-text-2); font-size: .92rem; transition: color .18s ease; }
.h10-footer a:hover { color: var(--h10-accent); }
.h10-footer address { font-style: normal; color: var(--h10-text-2); font-size: .92rem; line-height: 1.8; }

.h10-footer__bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--h10-line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	font-size: .82rem;
	color: var(--h10-text-3);
}
.h10-footer__tag { font-family: var(--h10-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--h10-accent); }

/* ------------------------------------------------------- entradas por scroll */

/* Estado inicial solo si el JavaScript está vivo: sin él, todo se ve. */
.h10-js [data-h10-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.h10-home *,
	.h10-home *::before,
	.h10-home *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.h10-js [data-h10-reveal] { opacity: 1 !important; transform: none !important; }
	.h10-hero__glow { animation: none; }
}
