/* ==========================================================
   Rengifo Pro — estilos principales
   ========================================================== */
:root {
	--navy: #0a1628;
	--navy-2: #111f36;
	--blue: #1f6fe0;
	--blue-2: #3b8bff;
	--red: #e1251b;
	--red-2: #ff3b30;
	--ink: #0e1726;
	--muted: #5b6678;
	--line: #e3e8ef;
	--bg: #ffffff;
	--bg-soft: #f4f6fa;
	--white: #ffffff;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 20px 50px -20px rgba(10, 22, 40, .25);
	--font-head: "Sora", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
}

/* Lenis (requerido) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; clip: auto; width: auto; height: auto; padding: 10px 16px; background: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #c9d3e3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-size: .78rem; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
	margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #9fb0c8; }

/* Botones */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 28px; border-radius: 100px;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, border-color .3s, box-shadow .3s;
	will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 30px -10px rgba(225,37,27,.6); }
.btn--primary:hover { background: var(--red-2); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--blue); color: #fff; }

/* ---------- Barra superior + header ---------- */
.topbar {
	background: var(--navy); color: #9fb0c8; font-size: .82rem;
	position: relative; z-index: 60;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #c9d3e3; }
.topbar a:hover { color: #fff; }
.topbar__info, .topbar__social { display: flex; gap: 22px; align-items: center; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__social { gap: 6px; }
.topbar__social a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: background .25s; }
.topbar__social a:hover { background: var(--blue); }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; opacity: 1; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	transition: background .4s, box-shadow .4s, transform .4s;
}
.home .site-header { position: fixed; left: 0; right: 0; top: 40px; }
.home .site-header.is-scrolled { top: 0; }
.site-header.is-scrolled, body:not(.home) .site-header {
	background: rgba(255,255,255,.88);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand .custom-logo { height: 58px; width: auto; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--ink); }
.brand__name small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home .site-header:not(.is-scrolled) .brand__name { color: #fff; }
.home .site-header:not(.is-scrolled) .brand__name small { color: #c9d3e3; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 10px 14px; border-radius: 100px;
	font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--ink);
	transition: background .25s, color .25s;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--bg-soft); color: var(--blue); }
.home .site-header:not(.is-scrolled) .main-nav > ul > li > a { color: #fff; }
.home .site-header:not(.is-scrolled) .main-nav > ul > li > a:hover,
.home .site-header:not(.is-scrolled) .main-nav > ul > .current-menu-item > a { background: rgba(255,255,255,.14); color: #fff; }
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
	background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow);
	display: block; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.main-nav .sub-menu li a { color: var(--ink) !important; border-radius: 8px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .menu-item-has-children > a::after { content: "▾"; font-size: .7em; margin-left: 6px; opacity: .7; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 22px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--line); background: #fff; cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; display: flex; align-items: flex-end;
	color: #fff; overflow: hidden; background: var(--navy);
	padding: calc(var(--header-h) + 80px) 0 clamp(60px, 9vw, 110px);
}
.hero__media { position: absolute; inset: -8% 0 0 0; z-index: 0; }
.hero__media img { width: 100%; height: 108%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(180deg, rgba(10,22,40,.55) 0%, rgba(10,22,40,.25) 40%, rgba(10,22,40,.92) 100%),
		linear-gradient(90deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,0) 70%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
	border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(10px); font-size: .82rem; font-weight: 500; margin-bottom: 28px;
}
.hero__badge i { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-style: normal; }
.hero__badge i svg { width: 14px; height: 14px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 24px; }
.hero h1 .accent { color: transparent; background: linear-gradient(90deg, #fff 0%, #8fb8ff 50%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.hero__text { max-width: 560px; font-size: 1.15rem; color: #c9d3e3; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #9fb0c8; }
.hero__scroll span { width: 1px; height: 60px; background: linear-gradient(#fff, transparent); animation: drop 2s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Split text */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #fff; position: relative; z-index: 3; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 28px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat__num em { font-style: normal; color: var(--red-2); }
.stat__label { color: #9fb0c8; font-size: .92rem; margin-top: 10px; }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about__img img { width: 100%; height: 115%; object-fit: cover; }
.about__float {
	position: absolute; right: -24px; bottom: 40px; background: #fff; border-radius: 16px;
	padding: 20px 24px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 260px;
}
.about__float img { width: 56px; height: 56px; object-fit: contain; }
.about__float strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.about__float span { font-size: .82rem; color: var(--muted); line-height: 1.4; display: block; }
.about__text p { color: var(--muted); font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.checklist li::before {
	content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%;
	background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
	position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px;
	display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.service__img { position: absolute; inset: 0; z-index: -2; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,22,40,0) 20%, rgba(10,22,40,.92) 100%); transition: background .5s; }
.service:hover .service__img img { transform: scale(1.07); }
.service:hover::before { background: linear-gradient(180deg, rgba(31,111,224,.25) 0%, rgba(10,22,40,.95) 100%); }
.service__body { padding: 36px; width: 100%; }
.service__num { font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; color: #9fc2ff; margin-bottom: 12px; display: block; }
.service h3 { color: #fff; font-size: 1.6rem; }
.service p { color: #c9d3e3; max-width: 44ch; margin-bottom: 20px; }
.service__link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.service__link i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.service__link i svg { width: 16px; height: 16px; }
.service:hover .service__link i { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }
.service__cover { position: absolute; inset: 0; z-index: 1; }

/* ---------- Certificaciones ---------- */
.certs { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.cert-cards { display: grid; gap: 20px; }
.cert {
	display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
	padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08); transition: background .4s, border-color .4s, transform .4s;
}
.cert:hover { background: rgba(255,255,255,.07); border-color: rgba(59,139,255,.5); transform: translateY(-4px); }
.cert__logo { width: 96px; height: 96px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 12px; }
.cert__logo img { max-height: 100%; object-fit: contain; }
.cert h3 { margin-bottom: 6px; }
.cert p { margin: 0; color: #9fb0c8; font-size: .96rem; }

/* ---------- Frase / marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 60px; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; white-space: nowrap; color: var(--ink); }
.marquee__item::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.marquee__item:nth-child(even) { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Frases */
.quotes { position: relative; overflow: hidden; color: #fff; padding: clamp(100px, 13vw, 170px) 0; background: var(--navy); isolation: isolate; }
.quotes__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.quotes__bg img { width: 100%; height: 120%; object-fit: cover; }
.quotes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(10,22,40,.96) 0%, rgba(10,22,40,.88) 45%, rgba(13,71,161,.72) 100%); }
.quotes::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.quotes__inner { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.quotes__mark { display: block; font-family: Georgia, serif; font-size: 9rem; line-height: .6; height: 64px; color: var(--red); margin-bottom: 20px; }
.quotes__stage { display: grid; }
.quotes__item { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease, visibility .8s; }
.quotes__item.is-active { opacity: 1; visibility: visible; transform: none; }
.quotes blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.quotes figcaption { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; color: #9fc2ff; font-weight: 600; letter-spacing: .04em; }
.quotes figcaption::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.quotes__dots button { width: 44px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; align-items: center; }
.quotes__dots span { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.quotes__dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.quotes__dots .is-active span::after { animation: qfill 7s linear forwards; }
@keyframes qfill { to { transform: scaleX(1); } }

/* Sello BASC en el banner */
.seal { display: flex; flex-direction: column; align-items: center; gap: 18px; flex: 0 0 auto; }
.seal__disc { position: relative; width: clamp(240px, 22vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.seal__disc::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(59,139,255,.55), transparent 70%); filter: blur(24px); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal__ring text { fill: #fff; font-family: var(--font-head); font-size: 12.5px; font-weight: 600; letter-spacing: 2px; }
.hero__bottom { align-items: center; }
.seal__logo { position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 16%; box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 20px 50px -10px rgba(0,0,0,.6); }
.seal__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.seal__caption { text-align: center; padding: 12px 20px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.seal__caption strong { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: .95rem; }
.seal__caption strong svg { width: 16px; height: 16px; color: #4ade80; }
.seal__caption span { display: block; font-size: .75rem; color: #9fb0c8; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ubicaciones (footer) */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 70px; margin-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.08); }
.location { border-radius: var(--radius); overflow: hidden; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); }
.location__map { aspect-ratio: 16/7; background: #0d1a2e; }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(.9) hue-rotate(180deg) contrast(.9); }
.location__info { display: flex; gap: 16px; padding: 22px 24px; align-items: flex-start; }
.location__icon { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.location__icon svg { width: 18px; height: 18px; }
.location h4 { margin-bottom: 4px; }
.location p { margin: 0 0 6px; color: #c9d3e3; }
.location a { font-weight: 600; font-size: .9rem; color: #9fc2ff; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .4s, box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }

/* ---------- CTA ---------- */
.cta {
	position: relative; border-radius: 28px; overflow: hidden; padding: clamp(48px, 7vw, 90px);
	background: linear-gradient(120deg, var(--blue) 0%, #0d47a1 100%); color: #fff;
	display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #dbe7ff; font-size: 1.1rem; margin: 0; }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c8; padding: 90px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.site-footer a { color: #c9d3e3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 18px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--blue-2); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: .85rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* WhatsApp flotante */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 60px; height: 60px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center;
	box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Páginas internas / blog ---------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(31,111,224,.35), transparent 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; position: relative; z-index: 1; }
.page-hero .crumbs { font-size: .85rem; color: #9fb0c8; position: relative; z-index: 1; }
.page-hero .crumbs a { color: #c9d3e3; }
.entry { padding: clamp(50px, 8vw, 90px) 0; }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content h2 { margin-top: 1.6em; font-size: 2rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 3px solid var(--red); margin: 1.5em 0; padding: 4px 0 4px 24px; font-size: 1.15rem; color: var(--muted); }
.entry-thumb { max-width: 1000px; margin: 0 auto 50px; border-radius: var(--radius); overflow: hidden; }
.elementor-page .entry, .rg-full .entry { padding: 0; }
.elementor-page .entry-content, .rg-full .entry-content { max-width: none; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); padding: 0 12px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Páginas internas: componentes ---------- */
.page-hero--img { padding: clamp(110px, 14vw, 180px) 0 clamp(70px, 9vw, 110px); }
.page-hero--img::after { display: none; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__media img { width: 100%; height: 115%; object-fit: cover; }
.page-hero--img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,22,40,.94) 0%, rgba(10,22,40,.75) 55%, rgba(10,22,40,.45) 100%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__lead { max-width: 620px; font-size: 1.15rem; color: #c9d3e3; margin: 8px 0 0; }
.page-hero .crumbs span { color: #fff; }

.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; }
.split__img img { width: 100%; height: 115%; object-fit: cover; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose { margin-bottom: 32px; }
.muted { color: var(--muted); font-size: 1.05rem; }
.since { position: absolute; left: -20px; bottom: 30px; background: var(--red); color: #fff; border-radius: 16px; padding: 18px 24px; box-shadow: var(--shadow); }
.since strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.since span { font-size: .85rem; opacity: .9; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.features--4 { grid-template-columns: repeat(2, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; transition: transform .4s, box-shadow .4s, border-color .4s; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--blue); opacity: .18; margin-bottom: 18px; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(31,111,224,.1); color: var(--blue); margin-bottom: 20px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; }
.link-arrow { display: inline-block; margin-top: 16px; font-weight: 600; font-family: var(--font-head); font-size: .92rem; }

.listband { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.listband h2 { margin: 0; }
.checklist--dark { grid-template-columns: 1fr 1fr; margin: 0; color: #fff; }
.checklist--dark li::before { background-color: var(--red); }
.checklist--lg { margin: 0; }
.checklist--lg li { align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 1.05rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-service { display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; }
.mini-service:hover { color: #fff; }
.mini-service__img { aspect-ratio: 16/10; overflow: hidden; }
.mini-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.mini-service:hover .mini-service__img img { transform: scale(1.06); }
.mini-service__body { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; }
.mini-service h3 { color: #fff; margin: 0; font-size: 1.1rem; }
.mini-service i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background .3s, transform .3s, border-color .3s; }
.mini-service i svg { width: 16px; height: 16px; }
.mini-service:hover i { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card { padding: clamp(32px, 4vw, 52px); border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.mv__label { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--red); }
.mv__card p { font-size: 1.1rem; color: #c9d3e3; margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: background .4s, transform .4s; }
.value:hover { background: var(--navy); transform: translateY(-4px); }
.value:hover h3 { color: #fff; }
.value:hover p { color: #9fb0c8; }
.value__num { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--red); display: block; margin-bottom: 14px; }
.value h3 { font-size: 1.15rem; transition: color .4s; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; transition: color .4s; }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
.info-card { display: flex; gap: 14px; padding: 22px; border-radius: 16px; background: var(--bg-soft); color: var(--ink); }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.info-card a { color: var(--ink); }
.info-card a:hover { color: var(--blue); }
.info-card__icon { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.info-card__icon svg { width: 18px; height: 18px; fill: none; }
.info-card--wa { background: #e9fbf0; }
.info-card--wa .info-card__icon { background: #25d366; }
.info-card--wa .info-card__icon svg { fill: #fff; }
.info-card--wa:hover { color: var(--ink); background: #d6f7e3; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 100px; background: var(--bg-soft); font-size: .9rem; font-weight: 500; }

.form-card { background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 80px -30px rgba(10,22,40,.3); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
	border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,224,.12); }
.field--file input { padding: 12px; background: #fff; border: 1.5px dashed var(--line); }
.form .btn { justify-self: start; border: 0; }
.form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.form-notice--ok { background: #e9fbf0; color: #146c36; }
.form-notice--err { background: #fdecec; color: #a01d16; }

/* ---------- Documentos legales ---------- */
.legal { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.legal__nav { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; display: grid; gap: 4px; }
.legal__nav-title { font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 6px; }
.legal__nav a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.35; transition: background .25s, color .25s; }
.legal__nav a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); margin-top: 1px; }
.legal__nav a:hover { background: var(--bg-soft); color: var(--blue); }
.legal__nav a.is-current { background: var(--navy); color: #fff; }
.legal__nav a.is-current svg { color: var(--red-2); }
.legal__help { background: var(--navy); color: #c9d3e3; border-radius: var(--radius); padding: 24px; font-size: .9rem; }
.legal__help strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.legal__help p { margin: 0 0 10px; }
.legal__help a { color: #9fc2ff; font-weight: 600; overflow-wrap: anywhere; }
.legal__doc { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); max-width: none; margin: 0; box-shadow: 0 30px 80px -40px rgba(10,22,40,.25); }
.legal__doc > *:first-child { margin-top: 0; }
.legal__doc h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 1.8em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal__doc h2:first-child { border-top: 0; padding-top: 0; }
.legal__doc h3 { font-size: 1.1rem; margin: 1.4em 0 .5em; color: var(--blue); }
.legal__doc p, .legal__doc li { color: #3b4658; }
.legal__doc ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.legal__doc ul li { position: relative; padding-left: 26px; }
.legal__doc ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.legal__doc .legal-intro { font-size: 1.15rem; color: var(--ink); line-height: 1.7; }
.legal__doc .legal-sign { margin-top: 2.4em; padding: 22px 24px; border-radius: 14px; background: var(--bg-soft); }
.legal__doc .legal-pdf { margin-top: 2em; padding: 24px; border-radius: 16px; background: var(--bg-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.legal__doc .legal-pdf p { margin: 0; font-weight: 600; color: var(--ink); }
.legal__doc .legal-pdf .btn { color: #fff; }
.legal__doc .legal-date { margin-top: 2em; font-size: .9rem; color: var(--muted); }

/* Animaciones (estado inicial solo si hay JS) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.main-nav, .header-cta .btn { display: none; }
	.nav-toggle { display: flex; }
	.nav-open .main-nav {
		display: block; position: fixed; inset: 0; top: 0; z-index: -1; background: var(--navy);
		padding: calc(var(--header-h) + 60px) var(--gutter) 40px; overflow-y: auto;
	}
	.nav-open .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-open .main-nav a { color: #fff !important; font-size: 1.4rem; padding: 14px 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: none !important; }
	.nav-open .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 16px; }
	.nav-open .main-nav .sub-menu a { color: #c9d3e3 !important; font-size: 1rem; }
	.nav-open .brand__name { color: #fff !important; }
	.nav-open .site-header { background: transparent !important; box-shadow: none !important; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.about, .certs, .split, .listband, .contact, .legal { grid-template-columns: 1fr; }
	.legal__aside { position: static; order: 2; }
	.values { grid-template-columns: repeat(2, 1fr); }
	.since { left: 16px; }
	.about__float { right: 16px; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	:root { --header-h: 70px; }
	.topbar { display: none; }
	.home .site-header { top: 0; }
	.brand img, .brand .custom-logo { height: 46px; }
	.brand__name { display: none; }
	.stats .wrap { grid-template-columns: 1fr 1fr; }
	.stat { padding: 32px 0 32px 18px; border-left: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(-n+2) { border-top: 0; }
	.services, .posts, .features, .features--2, .features--4, .mini-services, .mv, .values, .info-cards, .form__row, .checklist--dark { grid-template-columns: 1fr; }
	.feature { padding: 28px; }
	.service { min-height: 380px; }
	.service__body { padding: 26px; }
	.cert { grid-template-columns: 1fr; }
	.cta { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
	.seal { order: -1; flex-direction: row; gap: 14px; }
	.seal__disc { width: 124px; }
	.seal__ring text { font-size: 15px; }
	.seal__caption { text-align: left; }
	.seal__caption strong { justify-content: flex-start; }
	.hero__badge { display: none; }
	.locations { grid-template-columns: 1fr; padding-bottom: 50px; margin-bottom: 50px; }
	.location__map { aspect-ratio: 16/9; }
	.section-head--row { flex-direction: column; align-items: flex-start; }
	.hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
