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

/* Variables
   ============================================================= */
: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;
	--header-h:   72px;
}

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

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

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
#site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.3s;
}

#site-header.scrolled {
	box-shadow: 0 2px 24px rgba(26,47,205,0.09);
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 48px;
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 0;
}

/* Logo */
.nav-logo {
	flex-shrink: 0;
	margin-right: auto;
	display: flex;
	align-items: center;
}

.nav-logo a {
	display: flex;
	align-items: center;
}

.nav-logo .custom-logo {
	height: 38px;
	width: auto;
	display: block;
}

.logo-text {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: 0.1em;
	color: var(--blue);
	line-height: 1;
}

/* Desktop nav links */
#navbar {
	display: flex;
	align-items: center;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-links li a {
	display: block;
	padding: 8px 16px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text);
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
}

.nav-links li a:hover {
	color: var(--blue);
	background: var(--blue-xpale);
}

/* Right side */
.nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 24px;
}

.nav-cta {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	padding: 10px 24px;
	border-radius: 40px;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
	background: var(--blue-dk);
	transform: translateY(-1px);
}

/* Hamburger button */
.nav-burger {
	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;
	padding: 0;
	transition: background 0.2s, border-color 0.2s;
}

.nav-burger:hover {
	background: var(--blue-pale);
	border-color: rgba(26,47,205,0.25);
}

.nav-burger span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.2s;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Dropdown mobile menu */
.nav-dropdown {
	display: none;
	flex-direction: column;
	background: var(--white);
	border-top: 1px solid var(--line);
	padding: 8px 0 20px;
}

.nav-dropdown.is-open {
	display: flex;
}

.nav-dropdown ul {
	display: flex;
	flex-direction: column;
}

.nav-dropdown ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 24px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--text);
	border-bottom: 1px solid var(--line);
	transition: background 0.15s, color 0.15s;
}

.nav-dropdown ul li:last-child a {
	border-bottom: none;
}

.nav-dropdown ul li a:hover {
	background: var(--blue-xpale);
	color: var(--blue);
}

.nav-dropdown ul li a::after {
	content: '→';
	font-size: 0.9rem;
	color: var(--muted);
}

.nav-dropdown__cta {
	margin: 16px 24px 0;
	text-align: center;
	justify-content: center;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn-primary {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	padding: 14px 32px;
	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 20px rgba(26,47,205,0.22);
}

.btn-primary:hover {
	background: var(--blue-dk);
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(26,47,205,0.3);
}

.btn-ghost {
	display: inline-block;
	color: var(--blue);
	padding: 13px 32px;
	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: 13px 32px;
	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);
}

/* ═══════════════════════════════════════════════════
   SECTIONS – COMMON
   ═══════════════════════════════════════════════════ */
section {
	padding: 108px 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.9rem, 3vw, 2.7rem);
	line-height: 1.1;
	color: var(--dark);
	max-width: 720px;
	margin-bottom: 18px;
}

.section-title em { font-style: italic; color: var(--blue); }
.section-title--light { color: #fff; }
.section-title--light em { color: rgba(255,255,255,0.75); }

.section-lead {
	font-size: 1.05rem;
	color: var(--muted);
	line-height: 1.75;
	max-width: 600px;
	margin-bottom: 56px;
}

.section-lead--light { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
#hero {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
	padding: calc(var(--header-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: 580px; height: 580px;
	right: -60px; top: 80px;
	background: radial-gradient(circle, rgba(26,47,205,0.08) 0%, transparent 65%);
}

.hero-bubble--2 {
	width: 300px; height: 300px;
	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.5rem, 4.2vw, 4rem);
	line-height: 1.07;
	color: var(--dark);
	margin-bottom: 24px;
	opacity: 0;
	animation: fadeUp 0.7s 0.25s ease forwards;
}

#hero h1 em { font-style: italic; color: var(--blue); }

.hero-sub {
	font-size: 1.05rem;
	color: var(--muted);
	line-height: 1.75;
	max-width: 520px;
	margin-bottom: 40px;
	opacity: 0;
	animation: fadeUp 0.7s 0.4s ease forwards;
}

.hero-btns {
	display: flex;
	gap: 14px;
	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: 440px; height: 440px;
	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: 5px;
	padding: 28px 40px;
	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.6rem;
	color: #fff;
	line-height: 1;
	font-weight: 400;
}

.stats-strip__item span {
	font-size: 0.8rem;
	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: 24px;
}

.service-card {
	background: var(--offwhite);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 40px 34px;
	transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
	transform: translateY(-5px);
	border-color: rgba(26,47,205,0.25);
	box-shadow: 0 12px 40px rgba(26,47,205,0.09);
}

.service-card__num {
	font-family: var(--serif);
	font-size: 3.2rem;
	color: rgba(26,47,205,0.07);
	line-height: 1;
	margin-bottom: 14px;
}

.service-card h3 {
	font-family: var(--serif);
	font-size: 1.55rem;
	color: var(--dark);
	margin-bottom: 14px;
}

.service-card > p {
	font-size: 0.9rem;
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 14px;
}

.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: 14px 16px;
	font-size: 0.85rem;
	color: var(--blue-dk);
	line-height: 1.6;
	margin-top: 16px;
}

.service-card__note strong {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════
   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: 36px 32px;
	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.3rem;
	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: 16px;
}

.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: 48px;
}

.chain-step {
	background: var(--offwhite);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 28px 20px;
	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.6rem;
	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: 36px 40px;
}

.formats-box h3 {
	font-family: var(--serif);
	font-size: 1.35rem;
	color: var(--dark);
	margin-bottom: 20px;
}

.formats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.format-pill {
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 40px;
	padding: 9px 20px;
	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: 18px;
}

.sector-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 30px 24px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.sector-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 32px rgba(26,47,205,0.08);
}

.sector-card__icon {
	font-size: 1.8rem;
	display: block;
	margin-bottom: 14px;
	line-height: 1;
}

.sector-card h4 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--dark);
	margin-bottom: 7px;
	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: 80px;
	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: 72px;
	align-items: start;
}

.contact-info > p {
	font-size: 0.95rem;
	color: var(--muted);
	line-height: 1.75;
	margin-bottom: 32px;
}

.contact-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 18px;
}

.contact-item__icon {
	width: 38px;
	height: 38px;
	min-width: 38px;
	background: var(--blue-pale);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	line-height: 1;
}

.contact-item label {
	display: block;
	font-size: 0.72rem;
	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); }

/* Form */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
	padding: 12px 15px;
	border: 1.5px solid var(--line);
	border-radius: 9px;
	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: 128px;
}

.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: 64px 60px 36px;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 44px;
	margin-bottom: 36px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .custom-logo {
	height: 28px;
	width: auto;
	filter: brightness(0) invert(1);
	margin-bottom: 14px;
}

.footer-logo-text {
	display: block;
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.88);
	margin-bottom: 12px;
}

.footer-tag {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.32);
	line-height: 1.65;
	max-width: 220px;
}

.footer-cols {
	display: flex;
	gap: 72px;
}

.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: 18px;
}

.footer-col a {
	display: block;
	font-size: 0.875rem;
	color: rgba(255,255,255,0.48);
	margin-bottom: 10px;
	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: 12px;
}

.footer-copy {
	font-size: 0.77rem;
	color: rgba(255,255,255,0.24);
}

.footer-legal {
	display: flex;
	gap: 22px;
}

.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: 20px;
	padding-top: 16px;
	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: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--dark);
	color: rgba(255,255,255,0.85);
	padding: 18px 26px;
	border-radius: 14px;
	z-index: 9999;
	max-width: 600px;
	width: calc(100% - 32px);
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	box-shadow: 0 8px 40px rgba(0,0,0,0.38);
	border: 1px solid rgba(255,255,255,0.08);
	font-size: 0.85rem;
	line-height: 1.55;
}

#cookie-banner.hidden { display: none; }

#cookie-banner span { flex: 1; min-width: 180px; }

#cookie-banner a { color: #b5d4f4; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

#cookie-accept {
	background: var(--blue);
	color: #fff;
	border: none;
	padding: 9px 20px;
	border-radius: 30px;
	font-size: 0.85rem;
	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: 9px 16px;
	border-radius: 30px;
	font-size: 0.82rem;
	font-family: var(--sans);
	cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   PÁGINAS LEGALES
   ═══════════════════════════════════════════════════ */
.legal-page {
	max-width: 800px;
	margin: calc(var(--header-h) + 60px) auto 80px;
	padding: 0 40px;
}

.legal-page h1 {
	font-family: var(--serif);
	font-size: 2.3rem;
	color: var(--dark);
	margin-bottom: 6px;
}

.legal-date {
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 40px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.legal-page h2 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--dark);
	margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
	font-size: 0.93rem;
	color: #45486e;
	line-height: 1.8;
	margin-bottom: 10px;
}

.legal-page ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 14px;
}

.legal-page a { color: var(--blue); text-decoration: underline; }

.legal-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0 24px;
	font-size: 0.88rem;
}

.legal-page table th {
	background: var(--offwhite);
	color: var(--text);
	font-weight: 700;
	text-align: left;
	padding: 10px 14px;
	border: 1px solid var(--line);
}

.legal-page table td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	color: #45486e;
	vertical-align: top;
	line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	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; }
	.nav-inner  { 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: 24px 28px; }
	section { padding: 88px 0; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 900px (mobile nav activates)
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
	#navbar   { display: none; }
	.nav-cta  { display: none; }
	.nav-burger { display: flex; }

	#hero {
		grid-template-columns: 1fr;
		padding: calc(var(--header-h) + 32px) 32px 56px;
		gap: 0;
	}

	.hero-image { display: none; }
	#hero h1    { font-size: 2.7rem; }

	.services-grid  { grid-template-columns: 1fr; }
	.reg-layout     { grid-template-columns: 1fr; gap: 44px; }
	.contact-layout { grid-template-columns: 1fr; gap: 44px; }

	footer { padding: 48px 32px 32px; }

	.footer-inner {
		flex-direction: column;
		gap: 40px;
	}

	.footer-cols { gap: 36px; flex-wrap: wrap; }

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.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 { --header-h: 64px; }

	.nav-inner  { padding: 0 20px; }
	.container  { padding: 0 20px; }

	#hero { padding: calc(var(--header-h) + 28px) 20px 48px; }
	#hero h1 { font-size: 2.2rem; }

	section { padding: 64px 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: 44px 20px 28px; }
	.footer-cols { flex-direction: column; gap: 28px; }

	.footer-bottom { gap: 8px; }
	.footer-legal  { flex-wrap: wrap; gap: 14px; }

	.legal-page { padding: 0 20px; }

	.formats-box { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 400px
   ═══════════════════════════════════════════════════ */
@media (max-width: 400px) {
	#hero h1 { font-size: 1.95rem; }
	.hero-btns { flex-direction: column; }
	.btn-primary, .btn-ghost { text-align: center; }
	.chain-grid { grid-template-columns: 1fr; }
}
