/* ==========================================================================
   Tecnovad — hoja de estilos única
   Marca: azul marino #1F2D4E y azul cielo #41A9D4 (logotipo)
   ========================================================================== */

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fuente de reserva calibrada con Outfit (anchura media de los textos de la web) para que,
   mientras carga la fuente, las líneas se partan igual y no haya saltos de maquetación (CLS) */
@font-face {
	font-family: "Outfit Fallback";
	src: local("Arial");
	font-weight: 100 549;
	size-adjust: 97.3%;
	ascent-override: 102.8%;
	descent-override: 26.7%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Outfit Fallback";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 550 900;
	size-adjust: 94%;
	ascent-override: 106.4%;
	descent-override: 27.7%;
	line-gap-override: 0%;
}

:root {
	--navy: #1F2D4E;
	--navy-700: #2B3C64;
	--navy-900: #111B31;
	--sky: #41A9D4;
	--sky-100: #E3F3FA;
	--accent: #1A78A6;          /* azul de acción con contraste AA sobre blanco */
	--accent-hover: #135F86;
	--ink: #18213A;
	--muted: #556079;
	--line: #E2E8F1;
	--bg: #FFFFFF;
	--bg-soft: #F4F7FB;
	--danger: #B42318;
	--success: #12805C;

	--font: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(17, 27, 49, .06), 0 2px 8px rgba(17, 27, 49, .05);
	--shadow: 0 10px 30px -10px rgba(17, 27, 49, .22), 0 2px 6px rgba(17, 27, 49, .06);
	--shadow-lg: 0 30px 60px -20px rgba(17, 27, 49, .35);
	--header-h: 72px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 7rem);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
strong, b { font-weight: 650; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
q { quotes: "«" "»"; font-weight: 600; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.eyebrow, .tag {
	display: inline-block; margin: 0 0 1rem;
	font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tag { padding: .35rem .8rem; border-radius: 999px; background: var(--sky-100); color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(26, 120, 166, .7); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:disabled { background: #9AB3C4; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }
.btn-outline { color: var(--accent); border-color: currentColor; background: transparent; margin-top: .75rem; }
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline .icon { transition: transform .2s var(--ease); }
.btn-outline:hover .icon { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-align: left; }
.link-button:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
/* El desenfoque va en un pseudo-elemento: un backdrop-filter en la propia cabecera la convertiría
   en el bloque contenedor del menú móvil (position: fixed) y este quedaría recortado a 72px de alto. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}
body.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 27, 49, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: block; flex: none; }
.brand-logo { width: 156px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .55rem .85rem; border-radius: 10px; border: 0; background: none;
	color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-soft); color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .chev { width: .7em; height: .7em; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid var(--line); background: #fff; color: var(--navy);
	align-items: center; justify-content: center; font-size: 1.25rem;
}
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.has-sub { position: relative; }
.submenu {
	position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
	width: min(680px, 90vw); padding: .75rem;
	background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu-list { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.submenu-list a {
	display: flex; gap: .85rem; align-items: flex-start;
	padding: .8rem; border-radius: 14px; color: var(--ink); text-decoration: none;
}
.submenu-list a:hover, .submenu-list a[aria-current="page"] { background: var(--bg-soft); }
.submenu-list strong { display: block; font-weight: 600; color: var(--navy); }
.submenu-list small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.submenu-icon {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
	background: var(--sky-100); color: var(--accent); font-size: 1.05rem;
}

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang-switch a {
	padding: .25rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
	color: var(--muted); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 1.5rem;
		padding: 1.25rem var(--gutter) 2rem; margin: 0;
		background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s, transform .2s var(--ease), visibility .2s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-item { border-bottom: 1px solid var(--line); }
	.nav-link { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: 1.1rem; border-radius: 0; }
	.nav-link:hover, .nav-link[aria-expanded="true"] { background: none; }
	.submenu {
		position: static; translate: none; width: auto; padding: 0 0 .75rem; border: 0; box-shadow: none;
		display: none; opacity: 1; visibility: visible; transform: none;
	}
	.has-sub.is-open .submenu { display: block; }
	.submenu-list { grid-template-columns: 1fr; }
	.submenu-list a { padding: .7rem .5rem; }
	.submenu-list strong { font-size: 1.05rem; }
	.submenu-list small { font-size: .95rem; }
	.lang-switch a { padding: .4rem .85rem; font-size: .95rem; }
	.nav-actions { justify-content: space-between; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Portada (hero) ---------- */
.hero {
	position: relative; isolation: isolate; z-index: 1;
	display: grid; align-items: center;
	min-height: clamp(560px, calc(100svh - var(--header-h)), 820px);
	padding-block: 5rem 7rem;
	color: #fff; background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media picture { position: absolute; inset: 0; }
.hero-media img, .hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-video.is-ready { opacity: 1; }
.hero-blur .hero-media img { filter: blur(3px); transform: scale(1.06); }
.hero-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(100deg, rgba(17, 27, 49, .94) 0%, rgba(17, 27, 49, .82) 42%, rgba(31, 45, 78, .45) 100%),
		radial-gradient(60% 80% at 100% 100%, rgba(65, 169, 212, .35), transparent 70%);
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { max-width: 12.65em; margin-bottom: 1.5rem; }
.hero-points { display: grid; gap: .8rem 2.5rem; max-width: 820px; margin-bottom: 2.25rem; font-size: 1.1rem; align-items: start; }
@media (min-width: 720px) { .hero-points { grid-template-columns: 1fr 1fr; } }
/* Variante en dos listas independientes (portada) */
.hero-points-split { display: grid; gap: .8rem 2.5rem; max-width: 820px; margin-bottom: 2.25rem; }
.hero-points-split .hero-points { grid-template-columns: 1fr; margin: 0; align-content: start; }
@media (min-width: 720px) { .hero-points-split { grid-template-columns: 1fr 1fr; } }

/* Punto destacado de la portada (Tecnovad AI), a todo el ancho y con el degradado de la IA */
.hero-featured {
	display: flex; align-items: center; gap: .85rem; width: fit-content; max-width: 100%;
	margin: 0 0 1.25rem; padding: .6rem 1.1rem .6rem .6rem; border-radius: 999px;
	color: #fff; font-size: 1.1rem; font-weight: 600; text-decoration: none;
	border: 1.5px solid transparent;
	background: linear-gradient(rgba(17, 27, 49, .55), rgba(17, 27, 49, .55)) padding-box,
	            linear-gradient(90deg, #22D3EE, #6366F1) border-box;
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .55);
	transition: box-shadow .25s, transform .25s var(--ease);
}
a.hero-featured:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .8); }
.hero-featured-icon {
	display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
	background: linear-gradient(135deg, #0EA5E9, #6366F1); font-size: 1rem;
}
.hero-featured-arrow { opacity: .8; transition: transform .2s var(--ease); }
a.hero-featured:hover .hero-featured-arrow { transform: translateX(3px); }
@media (max-width: 599px) { .hero-featured { border-radius: 18px; font-size: 1rem; } }
.hero-points li { display: flex; align-items: flex-start; gap: .7rem; color: rgba(255, 255, 255, .92); }
.hero-points .icon {
	width: 1.5rem; height: 1.5rem; padding: .35rem; margin-top: .05rem; border-radius: 50%;
	background: rgba(65, 169, 212, .22); color: var(--sky);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
/* Logo giratorio centrado sobre el borde inferior de la portada.
   La "muesca" blanca es una única forma SVG (curva cóncava + arco del círculo + curva cóncava)
   para que el contorno salga continuo y suavizado. Círculo r=42, curvas de unión r=18. */
.hero-scroll {
	position: absolute; left: 50%; bottom: -42px; translate: -50% 0; z-index: 2;
	display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
}
.hero-scroll::before {
	/* 1px por debajo del borde: la franja inferior del SVG cae sobre la sección blanca y no se ve */
	content: ""; position: absolute; left: 50%; bottom: calc(50% - 1px); translate: -50% 0;
	width: 116px; height: 43px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-58 -42 116 43'%3E%3Cpath fill='%23fff' d='M-58 1V0h.8A18 18 0 0 0-40.04-12.6 42 42 0 0 1 40.04-12.6 18 18 0 0 0 57.2 0h.8v1z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}
.hero-scroll::after {
	content: ""; position: absolute; inset: 50% 0 0; border-radius: 0 0 42px 42px; background: #fff;
}
.hero-scroll img {
	position: relative; z-index: 1; width: 50px; height: 50px;
	animation: spin 14s linear infinite; will-change: transform; backface-visibility: hidden;
}
.hero-video-toggle {
	position: absolute; right: var(--gutter); bottom: 1.75rem;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .4); background: rgba(17, 27, 49, .45); color: #fff;
}
.hero-video-toggle[hidden] { display: none; }   /* sin vídeo (móvil, ahorro de datos) no hay botón */
.hero-video-toggle .is-paused, .hero-video-toggle.is-paused .is-playing { display: none; }
.hero-video-toggle.is-paused .is-paused { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cabecera simple (Misión, Colaborar) */
.page-intro {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(4rem, 10vw, 8rem);
	color: #fff; text-align: center;
	background: radial-gradient(70% 90% at 85% 10%, rgba(65, 169, 212, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.page-intro .eyebrow { color: var(--sky); }
.page-intro .lead { color: rgba(255, 255, 255, .85); margin-inline: auto; max-width: 40.7em; margin-bottom: 2rem; }
.page-intro-mark {
	position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 420px; height: 420px;
	opacity: .12; filter: brightness(3); animation: spin 60s linear infinite;
}

/* Cabecera dividida (Asesoramiento) */
.split-hero { padding-block: clamp(3rem, 7vw, 6rem); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.split-hero .eyebrow { color: var(--accent); }
.split-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.split-hero .btn { margin-top: 1.75rem; }

/* ---------- Secciones ---------- */
.tone-soft { background: var(--bg-soft); }

.intro { padding-block: var(--section); text-align: center; }
.intro .lead { margin-inline: auto; max-width: 45.9em; }
.intro .lead + .lead { margin-top: -.25rem; }
.pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.pill-grid li {
	display: flex; align-items: center; gap: .85rem; min-width: 200px;
	padding: .85rem 1.4rem .85rem .85rem; border-radius: 999px;
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	font-weight: 600; color: var(--navy); text-transform: capitalize; text-align: left; line-height: 1.25;
}
.pill-grid small { display: block; font-weight: 500; color: var(--muted); }
.pill-icon {
	display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
	background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; font-size: 1.25rem;
}

.feature { padding-block: var(--section); }
/* Dos bloques blancos seguidos comparten el espacio (no se duplica el margen) */
.feature:not([class*="tone-"]) + .feature:not([class*="tone-"]) { padding-top: 0; }
.feature-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) {
	.feature-grid { grid-template-columns: 1fr 1fr; }
	.feature-grid.is-reverse .feature-media { order: -1; }
}
.feature-text h2 { margin-bottom: 1rem; }
.feature-text h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; color: var(--navy); }
.feature-text p { color: var(--muted); font-size: 1.08rem; }
.feature-text p strong { color: var(--ink); }
.feature-media picture, .feature-media img { width: 100%; }
.feature-media:not(.is-art) img {
	border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 3; object-fit: cover;
}
.feature-media.is-art img { max-height: 460px; width: auto; margin-inline: auto; object-fit: contain; }
.feature-media.is-wide img { aspect-ratio: auto; }
.feature-text .tag { color: var(--accent); }
/* Sección de Tecnovad AI en la portada: imagen con halo azul */
.feature-ai .feature-media img { box-shadow: 0 30px 70px -25px rgba(37, 99, 235, .55), 0 0 0 1px rgba(56, 189, 248, .25); }
.split-hero .feature-media img { aspect-ratio: 4 / 4.4; }

.checklist { display: grid; gap: .85rem; margin: 1.25rem 0 .5rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; color: var(--muted); }
.checklist li strong { color: var(--ink); }
.checklist .icon {
	width: 1.6rem; height: 1.6rem; padding: .4rem; margin-top: .05rem; border-radius: 50%;
	background: var(--sky-100); color: var(--accent);
}
.checklist.is-strong li { color: var(--ink); font-weight: 600; }

/* Productos (panal) */
.products { padding-block: var(--section); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.product-card { flex: 0 1 340px; }   /* 6 productos: 3 + 3 en escritorio */
@media (max-width: 599px) { .product-card { flex-basis: 100%; } }
.product-card a {
	position: relative; display: flex; flex-direction: column; align-items: center; height: 100%;
	padding: 1rem 1rem 1.6rem; text-align: center; text-decoration: none; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: 24px;
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.product-card a:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card-media { position: relative; display: block; width: 100%; margin-bottom: 1.6rem; }
.card-photo {
	display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: 16px; background: var(--bg-soft);
}
.card-photo picture { width: 100%; height: 100%; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card a:hover .card-photo img { transform: scale(1.06); }
.card-photo.is-contain { background: linear-gradient(160deg, #F2F8F4, #E6F4EA); }
.card-photo.is-contain img { object-fit: contain; padding: 6%; }
.product-icon {
	position: absolute; right: 12px; bottom: -20px;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--accent); color: #fff; border: 3px solid #fff; font-size: 1rem;
}
.badge {
	display: inline-block; vertical-align: middle; padding: .12rem .5rem; border-radius: 999px;
	font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: #fff; background: linear-gradient(90deg, #0EA5E9, #6366F1);
}
.card-badge { position: absolute; z-index: 2; top: 1.6rem; left: 1.6rem; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .8); }
.product-card.is-featured a {
	border: 1.5px solid transparent;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #38BDF8, #6366F1, #38BDF8) border-box;
	box-shadow: 0 18px 40px -22px rgba(56, 189, 248, .8);
}
.product-card h3 { margin-bottom: .35rem; color: var(--navy); }
.product-card p { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-bottom: 1.1rem; }
.product-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; }
.product-card a:hover .more .icon { transform: translateX(3px); }
.product-card .more .icon { transition: transform .2s var(--ease); }

/* Valores */
.values { padding-block: var(--section); }
.value-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } .value-grid.is-wide { grid-template-columns: repeat(2, 1fr); } }
.value-card { padding: 2rem; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.tone-soft .value-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.value-card h3 { margin: 1.25rem 0 .5rem; color: var(--navy); }
.value-card p { color: var(--muted); margin: 0; }
.value-icon {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; font-size: 1.4rem;
}

/* ---------- Contacto ---------- */
.contact {
	padding-block: var(--section); color: #fff;
	background: radial-gradient(60% 70% at 0% 0%, rgba(65, 169, 212, .28), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.contact-intro .lead { color: rgba(255, 255, 255, .88); }
.contact-intro .lead strong { color: #fff; }
.contact-intro p { color: rgba(255, 255, 255, .75); }
.contact-points { display: grid; gap: .75rem; margin: 1.75rem 0 2rem; }
.contact-points li { display: flex; gap: .7rem; align-items: center; color: rgba(255, 255, 255, .9); }
.contact-points .icon { color: var(--sky); }
.contact-form {
	display: grid; grid-template-columns: 1fr; gap: 1.1rem;
	padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
	background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; color: var(--navy); }
.field label span { color: var(--accent); }
.input {
	width: 100%; padding: .8rem 1rem; border-radius: 12px;
	border: 1.5px solid var(--line); background: var(--bg-soft);
	font: inherit; font-size: 1rem; color: var(--ink);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.input::placeholder { color: #8A93A7; }
.input:hover { border-color: #C9D3E1; }
.input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(65, 169, 212, .2); }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
textarea.input { resize: vertical; min-height: 96px; }
.form-error { margin: 0; color: var(--danger); font-weight: 500; font-size: .95rem; }
.form-submit .btn { width: 100%; }
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { grid-column: 1 / -1; margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.recaptcha-note a { color: inherit; }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 4rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { width: 190px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 21em; }
.footer-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a, .footer-col .link-button { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-cta { margin-top: 3rem; padding-block: 1.25rem; border-top: 1px solid var(--line); text-align: center; }
.footer-cta a { font-weight: 600; text-decoration: none; }
.footer-bottom {
	display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
	padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Diálogos ---------- */
.dialog {
	width: min(440px, calc(100vw - 2rem)); padding: 2.25rem 2rem 2rem; border: 0; border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg); color: var(--ink); text-align: center;
}
.dialog::backdrop { background: rgba(17, 27, 49, .55); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog-close {
	position: absolute; top: .9rem; right: .9rem; display: grid; place-items: center;
	width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--muted);
}
.dialog-close:hover { background: var(--line); color: var(--ink); }
.dialog-title { font-size: 1.4rem; margin-bottom: .5rem; }
.dialog p { color: var(--muted); }
.dialog-status { display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2.75rem; color: var(--success); }
.dialog-status .is-error, .dialog.is-error .dialog-status .is-ok { display: none; }
.dialog.is-error .dialog-status { color: var(--danger); }
.dialog.is-error .dialog-status .is-error { display: block; }
.dialog-status.is-download { color: var(--accent); }
.dialog-actions { margin-top: 1.25rem; }
.catalog-form { display: grid; gap: .75rem; text-align: left; }
.catalog-form small { color: var(--muted); }
.catalog-form .btn { margin-top: .5rem; }

/* ---------- Ventana flotante (portada) ---------- */
.newsletter {
	position: fixed; z-index: 40; right: 1.25rem; bottom: 1.25rem;
	width: min(360px, calc(100vw - 2rem)); padding: 1.75rem 1.5rem 1.5rem;
	background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	animation: slide-in .45s var(--ease);
}
.newsletter[hidden] { display: none; }
@keyframes slide-in { from { opacity: 0; transform: translateY(24px); } }
.newsletter-title { font-weight: 650; font-size: 1.15rem; line-height: 1.3; color: var(--navy); padding-right: 2rem; }
.newsletter form { display: grid; gap: .6rem; }
.newsletter .input { padding: .65rem .9rem; }
.newsletter .btn { margin-top: .35rem; }

/* ---------- Animaciones al hacer scroll ----------
   site.js solo oculta (.will-reveal) los elementos que están fuera de pantalla al cargar:
   sin JavaScript todo el contenido es visible. */
.reveal.will-reveal { opacity: 0; transform: translateY(18px); }
.reveal.will-reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

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

/* ---------- Página de error ---------- */
.error-page { padding-block: clamp(4rem, 12vw, 9rem); text-align: center; }
.error-page .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 750; line-height: 1; color: var(--sky); margin-bottom: 1rem; }
.error-page .lead { margin-inline: auto; max-width: 34.1em; }
.error-page .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Móvil: nada debe ser más ancho que la pantalla ----------
   Los elementos de una rejilla no se encogen por debajo de su contenido salvo con min-width: 0. */
html, body { overflow-x: clip; }
.feature-grid > *, .contact-grid > *, .footer-grid > *, .contact-form > *, .hero-points-split > * { min-width: 0; }
.input { min-width: 0; }
h1, h2, h3, p, li { overflow-wrap: break-word; }

@media (max-width: 599px) {
	/* Texto más grande en pantallas pequeñas */
	body { font-size: 1.125rem; }
	h3 { font-size: 1.3rem; }
	.lead { font-size: 1.15rem; }
	.eyebrow, .tag { font-size: .85rem; letter-spacing: .1em; }
	.feature-text p { font-size: 1.125rem; }
	.product-card p { font-size: 1.05rem; }
	.hero-points, .hero-featured { font-size: 1.15rem; }
	.recaptcha-note { font-size: .85rem; }
	.footer-bottom, .footer-title { font-size: .9rem; }
	.site-footer { font-size: 1.05rem; }
	.field label { font-size: 1rem; }
	.input { font-size: 1.05rem; }

	/* Menos texto: en la portada solo la primera columna de ventajas */
	.hero-points-split > .hero-points + .hero-points { display: none; }
	/* Tarjetas de producto más compactas */
	.card-photo { aspect-ratio: 16 / 9; }

	.btn { white-space: normal; text-align: center; }
	.contact-form { padding: 1.4rem 1.1rem; border-radius: 22px; }
	.contact-grid { gap: 2rem; }
	.section-head { margin-bottom: 2rem; }
	/* Primera pantalla compacta: sin altura mínima de pantalla completa y con menos aire arriba y abajo */
	.hero { min-height: 0; padding-block: 2rem 4rem; }
	/* Título en 2 líneas: el tamaño sigue al ancho de pantalla con ~7% de margen, así cabe
	   «Consultoría Estratégica e» tanto con Outfit como con la fuente de reserva (sin saltos al cargar: CLS) */
	.hero h1 { margin-bottom: 1rem; font-size: clamp(1.45rem, 7.4vw, 2.1rem); }
	.hero-points-split { margin-bottom: 1.5rem; }
	/* Ilustración de Implantación tecnológica (feature con 'class' => 'is-bleed') de borde a borde.
	   El PNG trae ~7% de margen transparente por lado: se amplía un 14% para compensarlo. */
	.feature.is-bleed .feature-media.is-art img {
		width: calc((100% + 2 * var(--gutter)) * 1.14); max-width: none; max-height: none;
		margin: -6% 0 -4% calc(-1 * var(--gutter) - (100% + 2 * var(--gutter)) * .07);
	}
	.hero-actions .btn { width: 100%; }
	.pill-grid li { min-width: 0; width: 100%; }
}
@media print {
	.site-header, .hero-media, .hero-scroll, .contact, .newsletter, .site-footer nav { display: none !important; }
	.hero { color: var(--ink); min-height: 0; background: none; padding: 1rem 0; }
}
