/* =============================================================
   Quaon – main.css  |  quaonlab.eu
   ============================================================= */

:root {
	--blue:       #1a2fcd;
	--blue-dk:    #0e1e8c;
	--blue-pale:  #eaedff;
	--blue-xpale: #f4f5ff;
	--coral:      #e05c3a;
	--white:      #ffffff;
	--offwhite:   #f6f7fc;
	--dark:       #080b1a;
	--dark2:      #111428;
	--text:       #1b1f38;
	--muted:      #6b7094;
	--line:       rgba(26,47,205,0.11);
	--serif:      'DM Serif Display', serif;
	--sans:       'DM Sans', sans-serif;
	--nav-h:      68px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { font-family: var(--sans); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: var(--sans); cursor: pointer; }
/* Imágenes genéricas */
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

/* ── Layout ───────────────────────────────────────── */
.container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 48px;
}

/* ═══════════════════════════════════
   HEADER
   ═══════════════════════════════════ */
#site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 200;
	background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s;
}
#site-header.scrolled {
	box-shadow: 0 2px 20px rgba(26,47,205,0.08);
}

/* Barra principal */
.header-bar {
	display: flex;
	align-items: center;
	height: var(--nav-h);
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
}

/* Logo */
.header-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: auto;
	text-decoration: none;
}
/* WordPress envuelve custom-logo en <a class="custom-logo-link"><img></a>
   — controlamos el img directamente con !important para ganar la cascada */
.header-logo .custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}
.header-logo .custom-logo-link img,
.header-logo img.custom-logo {
	height: 36px !important;
	width: auto !important;
	max-width: none !important;
	display: block;
}
.logo-text {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: 0.1em;
	color: var(--blue);
	line-height: 1;
}

/* Nav desktop */
.header-nav { display: flex; align-items: center; }
.header-nav ul { display: flex; align-items: center; gap: 2px; }
.header-nav ul li a {
	display: block;
	padding: 8px 13px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	border-radius: 7px;
	white-space: nowrap;
	transition: color 0.18s, background 0.18s;
}
.header-nav ul li a:hover {
	color: var(--blue);
	background: var(--blue-xpale);
}

/* Acciones derecha */
.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 16px;
	flex-shrink: 0;
}
.header-cta {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	padding: 9px 20px;
	border-radius: 40px;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.18s, transform 0.15s;
}
.header-cta:hover {
	background: var(--blue-dk);
	transform: translateY(-1px);
}

/* Botón hamburguesa — oculto en desktop */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
	transition: background 0.18s, border-color 0.18s;
}
.menu-toggle:hover {
	background: var(--blue-pale);
	border-color: rgba(26,47,205,0.3);
}
.menu-toggle span {
	display: block;
	width: 17px;
	height: 1.5px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.22s, opacity 0.18s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú desplegable móvil
   SIEMPRE oculto por CSS — JS añade .is-open para mostrarlo */
.mobile-menu {
	display: none;
	flex-direction: column;
	background: #fff;
	border-top: 1px solid var(--line);
	padding: 4px 0 16px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	font-size: 0.975rem;
	font-weight: 500;
	color: var(--text);
	border-bottom: 1px solid var(--line);
	transition: background 0.15s, color 0.15s;
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a::after { content: '→'; color: var(--muted); font-size: 0.85rem; }
.mobile-menu ul li a:hover { background: var(--blue-xpale); color: var(--blue); }
.mobile-menu__cta { display: block; margin: 14px 24px 0; text-align: center; }

/* ═══════════════════════════════════
   BOTONES
   ═══════════════════════════════════ */
.btn-primary {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	padding: 13px 30px;
	border-radius: 40px;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 18px rgba(26,47,205,0.22);
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,47,205,0.3); }
.btn-ghost {
	display: inline-block;
	color: var(--blue);
	padding: 12px 30px;
	border-radius: 40px;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1.5px solid var(--blue);
	transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: var(--blue-pale); transform: translateY(-2px); }
.btn-white {
	display: inline-block;
	background: #fff;
	color: var(--blue);
	padding: 12px 30px;
	border-radius: 40px;
	font-size: 0.9rem;
	font-weight: 700;
	transition: transform 0.15s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* ═══════════════════════════════════
   SECCIONES — COMÚN
   ═══════════════════════════════════ */
section { padding: 100px 0; }
.bg-dark     { background: var(--dark); }
.bg-offwhite { background: var(--offwhite); }
.bg-blue     { background: var(--blue); }

.eyebrow {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255,255,255,0.5); }

.section-title {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
	line-height: 1.1;
	color: var(--dark);
	max-width: 720px;
	margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--blue); }
.section-title--light { color: #fff; }
.section-title--light em { color: rgba(255,255,255,0.8); }

.section-lead {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.75;
	max-width: 600px;
	margin-bottom: 48px;
}
.section-lead--light { color: rgba(255,255,255,0.62); }

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
#hero {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
	padding: calc(var(--nav-h) + 48px) 60px 80px;
	position: relative;
	overflow: hidden;
	background: var(--white);
}
.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.hero-bubble { position: absolute; border-radius: 50%; }
.hero-bubble--1 {
	width: 560px; height: 560px; right: -60px; top: 80px;
	background: radial-gradient(circle, rgba(26,47,205,0.08) 0%, transparent 65%);
}
.hero-bubble--2 {
	width: 280px; height: 280px; right: 200px; bottom: 100px;
	background: radial-gradient(circle, rgba(224,92,58,0.07) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--blue); margin-bottom: 22px;
	display: flex; align-items: center; gap: 10px;
	opacity: 0; animation: fadeUp 0.6s 0.1s ease forwards;
}
.hero-eyebrow::before {
	content: ''; width: 8px; height: 8px; border-radius: 50%;
	background: var(--blue); flex-shrink: 0;
}
#hero h1 {
	font-family: var(--serif);
	font-size: clamp(2.4rem, 4vw, 3.8rem);
	line-height: 1.07; color: var(--dark); margin-bottom: 22px;
	opacity: 0; animation: fadeUp 0.7s 0.25s ease forwards;
}
#hero h1 em { font-style: italic; color: var(--blue); }
.hero-sub {
	font-size: 1rem; color: var(--muted); line-height: 1.75;
	max-width: 500px; margin-bottom: 36px;
	opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.hero-btns {
	display: flex; gap: 12px; flex-wrap: wrap;
	opacity: 0; animation: fadeUp 0.7s 0.55s ease forwards;
}
.hero-image {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center;
}
.hero-circle {
	width: min(440px, 100%); height: min(440px, 100vw);
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 35%, rgba(224,92,58,0.18) 0%, transparent 50%),
		radial-gradient(circle at 70% 65%, rgba(26,47,205,0.2) 0%, transparent 50%),
		linear-gradient(135deg, #c8d4f8 0%, #e8ecfd 45%, #d4e8f8 100%);
	box-shadow: 0 28px 72px rgba(26,47,205,0.14);
	opacity: 0; animation: fadeIn 0.9s 0.4s ease forwards;
}

/* Stats strip */
.stats-strip { background: var(--blue); display: flex; align-items: stretch; }
.stats-strip__item {
	flex: 1; display: flex; flex-direction: column; gap: 4px;
	padding: 26px 36px;
	border-right: 1px solid rgba(255,255,255,0.18);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__item strong { font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1; font-weight: 400; }
.stats-strip__item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ═══════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════ */
#servicios { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
	background: var(--offwhite); border: 1px solid var(--line);
	border-radius: 16px; padding: 36px 30px;
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(26,47,205,0.25); box-shadow: 0 10px 36px rgba(26,47,205,0.09); }
.service-card__num { font-family: var(--serif); font-size: 3rem; color: rgba(26,47,205,0.07); line-height: 1; margin-bottom: 12px; }
.service-card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--dark); margin-bottom: 12px; }
.service-card > p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.service-card ul li {
	font-size: 0.875rem; color: var(--muted);
	padding: 5px 0 5px 16px; position: relative;
	border-bottom: 1px solid var(--line);
}
.service-card ul li::before { content: '–'; position: absolute; left: 0; color: var(--blue); }
.service-card__note {
	background: var(--blue-pale); border-radius: 8px;
	padding: 12px 16px; font-size: 0.85rem; color: var(--blue-dk);
	line-height: 1.6; margin-top: 14px;
}
.service-card__note strong { display: block; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 3px; }

/* ═══════════════════════════════════
   CAPACIDADES
   ═══════════════════════════════════ */
.caps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-card {
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px; padding: 34px 30px;
	transition: background 0.2s, border-color 0.2s;
}
.cap-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.cap-card__tag {
	display: inline-block; background: rgba(26,47,205,0.5);
	border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.8);
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
	text-transform: uppercase; padding: 3px 12px; border-radius: 20px; margin-bottom: 14px;
}
.cap-card h4 { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.cap-card__tech { font-size: 0.78rem; font-weight: 700; color: var(--coral); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.cap-card > p { font-size: 0.875rem; color: rgba(255,255,255,0.58); line-height: 1.7; margin-bottom: 12px; }
.cap-card ul li { font-size: 0.85rem; color: rgba(255,255,255,0.52); padding: 5px 0 5px 14px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cap-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.cap-card__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cap-card__pills span { background: rgba(224,92,58,0.2); border: 1px solid rgba(224,92,58,0.38); color: #f4a490; font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }

/* ═══════════════════════════════════
   DESARROLLO
   ═══════════════════════════════════ */
#desarrollo { background: var(--white); }
.chain-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 44px; }
.chain-step {
	background: var(--offwhite); border: 1px solid var(--line);
	border-radius: 12px; padding: 26px 18px;
	transition: background 0.2s, transform 0.2s;
}
.chain-step:hover { background: var(--blue-pale); transform: translateY(-3px); }
.chain-step__n { font-family: var(--serif); font-size: 2.4rem; color: rgba(26,47,205,0.09); display: block; line-height: 1; margin-bottom: 10px; }
.chain-step h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue); margin-bottom: 8px; }
.chain-step p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.formats-box { background: var(--offwhite); border: 1px solid var(--line); border-radius: 16px; padding: 34px 36px; }
.formats-box h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--dark); margin-bottom: 18px; }
.formats-list { display: flex; flex-wrap: wrap; gap: 10px; }
.format-pill {
	background: var(--white); border: 1.5px solid var(--line);
	border-radius: 40px; padding: 8px 18px;
	font-size: 0.875rem; font-weight: 500; color: var(--blue);
	transition: background 0.2s, border-color 0.2s;
}
.format-pill:hover { background: var(--blue-pale); border-color: var(--blue); }

/* ═══════════════════════════════════
   SECTORES
   ═══════════════════════════════════ */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; transition: transform 0.2s, box-shadow 0.2s; }
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(26,47,205,0.08); }
.sector-card__icon { font-size: 1.7rem; display: block; margin-bottom: 12px; line-height: 1; }
.sector-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.sector-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════
   REGULATORY
   ═══════════════════════════════════ */
.reg-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.reg-right { display: flex; flex-direction: column; gap: 14px; }
.reg-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 18px 22px; display: flex; align-items: flex-start; gap: 14px; color: #fff; transition: background 0.2s; }
.reg-badge:hover { background: rgba(255,255,255,0.17); }
.reg-badge__flag { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; line-height: 1; }
.reg-badge strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.reg-badge p { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.5; margin: 0; }

/* ═══════════════════════════════════
   CONTACTO
   ═══════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info > p { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-item__icon {
	width: 36px; height: 36px; min-width: 36px;
	background: var(--blue-pale); border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.9rem; line-height: 1;
}
.contact-item label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.contact-item a:hover { color: var(--blue); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.form-field input,
.form-field textarea,
.form-field select {
	padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
	font-family: var(--sans); font-size: 0.9rem; color: var(--text);
	background: var(--white); outline: none; width: 100%;
	-webkit-appearance: none; appearance: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,47,205,0.08); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.form-check label { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.form-check a { color: var(--blue); text-decoration: underline; }
.form-msg { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; line-height: 1.5; }
.form-msg.success { background: #e8f9f0; color: #0a5c38; border: 1px solid #9fe1cb; }
.form-msg.error   { background: #fde8e8; color: #7f1d1d; border: 1px solid #f09595; }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer { background: var(--dark2); padding: 60px 56px 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 40px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .custom-logo-link img,
.footer-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-logo-text { display: block; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.88); margin-bottom: 10px; }
.footer-tag { font-size: 0.85rem; color: rgba(255,255,255,0.32); max-width: 220px; line-height: 1.65; }
.footer-cols { display: flex; gap: 60px; }
.footer-col h5 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.24); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.48); margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 0.77rem; color: rgba(255,255,255,0.24); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.77rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-credits { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.75rem; color: rgba(255,255,255,0.2); text-align: center; }
.footer-credits a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-credits a:hover { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════ */
#cookie-banner {
	position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
	background: var(--dark); color: rgba(255,255,255,0.85);
	padding: 16px 24px; border-radius: 12px; z-index: 9999;
	max-width: 580px; width: calc(100% - 28px);
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	box-shadow: 0 8px 36px rgba(0,0,0,0.38);
	border: 1px solid rgba(255,255,255,0.08);
	font-size: 0.84rem; line-height: 1.5;
}
#cookie-banner.hidden { display: none; }
#cookie-banner span { flex: 1; min-width: 160px; }
#cookie-banner a { color: #b5d4f4; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-accept { background: var(--blue); color: #fff; border: none; padding: 8px 18px; border-radius: 30px; font-size: 0.84rem; font-weight: 600; font-family: var(--sans); cursor: pointer; transition: background 0.2s; }
#cookie-accept:hover { background: var(--blue-dk); }
#cookie-reject { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: none; padding: 8px 14px; border-radius: 30px; font-size: 0.82rem; font-family: var(--sans); cursor: pointer; }

/* ═══════════════════════════════════
   PÁGINAS LEGALES
   ═══════════════════════════════════ */
.legal-page { max-width: 800px; margin: calc(var(--nav-h) + 48px) auto 72px; padding: 0 40px; }
.legal-page h1 { font-family: var(--serif); font-size: 2.2rem; color: var(--dark); margin-bottom: 6px; }
.legal-date { font-size: 0.82rem; color: var(--muted); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-page h2 { font-size: 1.02rem; font-weight: 700; color: var(--dark); margin: 26px 0 9px; }
.legal-page p, .legal-page li { font-size: 0.93rem; color: #45486e; line-height: 1.8; margin-bottom: 9px; }
.legal-page ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.legal-page a { color: var(--blue); text-decoration: underline; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 0.88rem; }
.legal-page table th { background: var(--offwhite); color: var(--text); font-weight: 700; text-align: left; padding: 9px 13px; border: 1px solid var(--line); }
.legal-page table td { padding: 9px 13px; border: 1px solid var(--line); color: #45486e; vertical-align: top; line-height: 1.5; }

/* ═══════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════
   RESPONSIVE 1100px
   ═══════════════════════════════════ */
@media (max-width: 1100px) {
	.container    { padding: 0 32px; }
	.header-bar   { padding: 0 32px; }
	.chain-grid   { grid-template-columns: repeat(3, 1fr); }
	.sectors-grid { grid-template-columns: repeat(2, 1fr); }
	.caps-grid    { grid-template-columns: 1fr; }
	.stats-strip__item { padding: 22px 24px; }
	section { padding: 84px 0; }
}

/* ═══════════════════════════════════
   RESPONSIVE 900px — mobile nav
   ═══════════════════════════════════ */
@media (max-width: 900px) {
	/* Header */
	.header-nav  { display: none; }
	.header-cta  { display: none; }
	.menu-toggle { display: flex; }

	/* Hero */
	#hero { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 28px) 32px 52px; gap: 0; }
	.hero-image  { display: none; }
	#hero h1     { font-size: 2.6rem; }
	.hero-sub    { max-width: 100%; }

	/* Secciones */
	.services-grid  { grid-template-columns: 1fr; }
	.reg-layout     { grid-template-columns: 1fr; gap: 40px; }
	.contact-layout { grid-template-columns: 1fr; gap: 40px; }
	section { padding: 72px 0; }

	/* Footer */
	footer { padding: 44px 32px 28px; }
	.footer-inner { flex-direction: column; gap: 36px; }
	.footer-cols  { gap: 32px; flex-wrap: wrap; }
	.footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
	.footer-credits { text-align: left; }

	/* Strip */
	.stats-strip { flex-wrap: wrap; }
	.stats-strip__item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
	.stats-strip__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.15); }
}

/* ═══════════════════════════════════
   RESPONSIVE 640px
   ═══════════════════════════════════ */
@media (max-width: 640px) {
	:root { --nav-h: 60px; }
	.header-bar  { padding: 0 18px; }
	.container   { padding: 0 18px; }

	#hero { padding: calc(var(--nav-h) + 24px) 18px 44px; }
	#hero h1     { font-size: 2rem; }
	.hero-btns   { flex-direction: column; align-items: flex-start; }
	.hero-btns .btn-primary,
	.hero-btns .btn-ghost { width: 100%; text-align: center; }

	section { padding: 60px 0; }

	.chain-grid   { grid-template-columns: 1fr 1fr; }
	.sectors-grid { grid-template-columns: 1fr; }
	.caps-grid    { grid-template-columns: 1fr; }
	.form-row     { grid-template-columns: 1fr; }

	.stats-strip__item { min-width: 100%; border-right: none; }
	.stats-strip__item:nth-child(odd) { border-right: none; }

	footer { padding: 40px 18px 24px; }
	.footer-cols  { flex-direction: column; gap: 24px; }
	.footer-legal { flex-wrap: wrap; gap: 12px; }

	.legal-page { padding: 0 18px; margin-top: calc(var(--nav-h) + 32px); }
	.formats-box { padding: 24px 18px; }
}

/* ═══════════════════════════════════
   RESPONSIVE 400px
   ═══════════════════════════════════ */
@media (max-width: 400px) {
	#hero h1    { font-size: 1.85rem; }
	.chain-grid { grid-template-columns: 1fr; }
	.footer-bottom { gap: 6px; }
}
