/*
Theme Name: AFERRUZ OI
Theme URI: https://aferruz-oi.cl
Author: AFERRUZ
Description: Tema landing para AFERRUZ Organismo de Inspección (Tipo A). Hero, servicios, verificación de informes, imparcialidad, quejas y apelaciones, y formulario de cotización. Estado de acreditación configurable desde el Personalizador.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aferruz-oi
*/

/* ---------- Tokens ---------- */
:root {
	--brand: #1957a4;
	--brand-600: #134684;
	--brand-50: #eef3fa;
	--navy: #0b1a30;
	--navy-2: #11243f;
	--ink: #1a2332;
	--muted: #5b6676;
	--line: #e3e7ee;
	--paper: #ffffff;
	--paper-2: #f6f8fb;
	--accent: #f2b705;
	--accent-600: #d9a404;
	--warn: #b7791f;
	--on-accent: var(--navy);      /* texto sobre botones */
	--tint: #f6cd4c;               /* etiquetas sobre fondo oscuro */
	--tint-2: #ffd75e;             /* palabra destacada del titular */
	--on-dark: #c4d1e3;            /* texto sobre fondo oscuro */
	--on-dark-2: #8fa3bd;          /* texto secundario sobre fondo oscuro */
	--glow: rgba(25, 87, 164, .45);
	--footer: #08142a;
	--art: #5f8fd0;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(11, 26, 48, .06), 0 8px 24px rgba(11, 26, 48, .06);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px; border: 0;
	font: 700 .95rem/1 var(--sans); letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn svg, .badge-24 svg, .policy-list .arrow svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--primary:hover { background: var(--accent-600); color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--small { padding: 10px 18px; font-size: .85rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	transition: background .25s, box-shadow .25s, padding .25s;
	padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .brand img { height: 54px; width: auto; }
.site-header .brand .logo-color { display: none; }
.site-header.is-solid, body:not(.has-hero) .site-header { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); padding: 10px 0; backdrop-filter: blur(8px); }
.site-header.is-solid .logo-white, body:not(.has-hero) .site-header .logo-white { display: none; }
.site-header.is-solid .logo-color, body:not(.has-hero) .site-header .logo-color { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.main-nav a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; opacity: .88; }
.main-nav a:hover { opacity: 1; color: #fff; }
.site-header.is-solid .main-nav a, body:not(.has-hero) .main-nav a { color: var(--ink); }
.site-header.is-solid .main-nav a:hover, body:not(.has-hero) .main-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.site-header.is-solid .nav-toggle, body:not(.has-hero) .nav-toggle { color: var(--navy); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--navy); padding: 96px 32px 32px; transform: translateX(100%); transition: transform .3s; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
	.main-nav a, .site-header.is-solid .main-nav a, body:not(.has-hero) .main-nav a { color: #fff; font-size: 1.1rem; }
	body.nav-open .main-nav { transform: none; }
	body.nav-open .nav-toggle { position: relative; z-index: 2; color: #fff; }
	body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	min-height: min(92vh, 860px);
	display: flex; align-items: center;
	padding: 140px 0 96px;
	color: var(--on-dark);
	background:
		radial-gradient(1200px 600px at 85% 20%, var(--glow), transparent 60%),
		linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--navy) 78%, transparent) 50%, color-mix(in srgb, var(--navy) 45%, transparent) 100%); }
.hero-grid {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.hero-art { position: absolute; right: -40px; bottom: 0; width: min(46vw, 620px); opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--tint); }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--tint-2); font-weight: 500; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 620px; margin-bottom: 36px; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.hero-actions .link-arrow { color: #fff; }
.status-pill {
	display: inline-flex; align-items: center; gap: 10px;
	margin-top: 48px; padding: 9px 16px 9px 12px;
	border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
	background: rgba(255,255,255,.04);
	font-size: .84rem; color: var(--on-dark);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0b04a; box-shadow: 0 0 0 4px rgba(224,176,74,.18); }
.status-pill.is-granted .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(242,183,5,.2); }
.status-pill img { height: 28px; width: auto; background: #fff; border-radius: 4px; padding: 2px; }

/* ---------- Trust band ---------- */
.band { background: var(--brand); color: #fff; }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.band-item { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.16); }
.band-item:first-child { border-left: 0; padding-left: 0; }
.band-item strong { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.band-item span { font-size: .88rem; color: #d5e2f4; line-height: 1.45; display: block; }
@media (max-width: 900px) {
	.band .wrap { grid-template-columns: 1fr 1fr; }
	.band-item { border-left: 0; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.16); }
	.band-item:nth-child(-n+2) { border-top: 0; }
	.band-item:nth-child(even) { padding-left: 20px; }
}

/* ---------- Por qué ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why-item { padding: 40px 40px 40px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.why-item:nth-child(even) { padding: 40px 0 40px 40px; border-left: 1px solid var(--line); }
.why-num { font-family: var(--serif); font-size: 1.05rem; color: var(--brand); font-weight: 600; padding-top: 4px; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--muted); margin: 0; }
@media (max-width: 820px) {
	.why-grid { grid-template-columns: 1fr; }
	.why-item, .why-item:nth-child(even) { padding: 32px 0; border-left: 0; }
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 36px 32px 32px; box-shadow: var(--shadow);
	display: flex; flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11,26,48,.06), 0 18px 40px rgba(11,26,48,.1); }
.service::before { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.service--complement::before { background: #9aa6b6; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 28px; height: 28px; }
.service-tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.service--complement .service-tag { color: var(--muted); }
.service p { color: var(--muted); font-size: .98rem; }
.service ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: .76rem; font-weight: 600; background: var(--paper-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--ink); }
.services-note { margin-top: 28px; font-size: .9rem; color: var(--muted); max-width: 780px; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr; } }

/* ---------- Verificación ---------- */
.verify {
	background: var(--navy); color: var(--on-dark); border-radius: 16px;
	padding: clamp(36px, 5vw, 64px);
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
	position: relative; overflow: hidden;
}
.verify::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(25,87,164,.55), transparent 70%); }
.verify > * { position: relative; z-index: 1; }
.verify h2 { color: #fff; }
.verify .eyebrow { color: var(--tint); }
.verify-form { display: flex; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px; }
.verify-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 600 1rem var(--sans); padding: 10px 16px; letter-spacing: .04em; }
.verify-form input::placeholder { color: var(--on-dark-2); font-weight: 500; letter-spacing: 0; }
.verify-form input:focus { outline: none; }
.verify-help { font-size: .84rem; color: var(--on-dark-2); margin: 12px 4px 0; }
.verify-result { margin-top: 20px; border-radius: 12px; padding: 20px 22px; background: #fff; color: var(--ink); font-size: .95rem; }
.verify-result h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.verify-result dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; }
.verify-result dt { color: var(--muted); }
.verify-result dd { margin: 0; font-weight: 600; }
.verify-result.is-ok h4 { color: var(--accent-600); }
.verify-result.is-bad h4 { color: #b42318; }
.verify-result.is-void h4 { color: var(--warn); }
@media (max-width: 900px) { .verify { grid-template-columns: 1fr; } }

/* ---------- Imparcialidad ---------- */
.impartial { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.declaration {
	font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--navy);
	border-left: 3px solid var(--brand); padding: 4px 0 4px 28px; margin: 0 0 28px;
}
.declaration strong { color: var(--brand); font-weight: 600; }
.policy-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.policy-list li { border-bottom: 1px solid var(--line); }
.policy-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.policy-list a:hover { color: var(--brand); }
.policy-list strong { display: block; font-size: 1.05rem; }
.policy-list small { color: var(--muted); font-size: .85rem; }
.policy-list .arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.policy-list a:hover .arrow { background: var(--brand); color: #fff; border-color: var(--brand); }
.history-note { margin-top: 28px; padding: 18px 20px; background: var(--paper-2); border-radius: var(--radius); font-size: .88rem; color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 900px) { .impartial { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Cierre ---------- */
.closing {
	background: linear-gradient(180deg, var(--navy-2), var(--navy));
	color: #fff; text-align: center; padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden;
}
.closing .hero-grid { mask-image: radial-gradient(circle at center, #000 0%, transparent 70%); }
.closing blockquote { position: relative; margin: 0 auto; max-width: 880px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.4; font-weight: 500; }
.closing blockquote em { color: var(--tint-2); }
.closing .rule { width: 56px; height: 2px; background: var(--accent); margin: 36px auto 0; }

/* ---------- Contacto / formularios ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-info ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-info li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.contact-info .ic svg { width: 20px; height: 20px; }
.contact-info small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.badge-24 { display: inline-flex; align-items: center; gap: 10px; background: var(--brand-50); color: var(--brand-600); font-weight: 700; font-size: .88rem; padding: 8px 14px; border-radius: 999px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
	width: 100%; font: 500 .98rem var(--sans); color: var(--ink);
	background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(25,87,164,.12); }
.check { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: .8rem; max-width: 340px; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 16px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.notice--ok { background: #e9f6ef; color: #17643f; border: 1px solid #bfe5cf; }
.notice--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.notice strong.case { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--navy); color: var(--on-dark); padding: 150px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-hero .eyebrow { color: var(--tint); }
.doc-control { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: .85rem; }
.doc-control span { color: var(--on-dark-2); }
.doc-control b { color: #fff; font-weight: 600; margin-left: 6px; }
.doc-control a { color: var(--tint-2); font-weight: 700; }
.page-body { padding: 72px 0 110px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; border-left: 3px solid var(--brand); padding-left: 20px; font-family: var(--serif); font-size: 1.15rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 28px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 66px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.page-body .form-card { margin-top: 40px; max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--on-dark-2); font-size: .92rem; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.accr-note { margin-top: 18px; display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.accr-note img { height: 40px; margin: 0; background: #fff; padding: 3px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* WordPress core */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) { .hero-art { display: none; } }

/* ---------- Hero con video ---------- */
.hero.has-video { background: var(--navy); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
	position: absolute; inset: 0; z-index: 0;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--navy) 92%, transparent) 0%, color-mix(in srgb, var(--navy) 72%, transparent) 45%, color-mix(in srgb, var(--navy) 35%, transparent) 100%),
		linear-gradient(0deg, color-mix(in srgb, var(--navy) 55%, transparent) 0%, transparent 35%);
}
.hero.has-video .hero-grid { z-index: 0; opacity: .5; }
.hero.has-video .wrap { z-index: 1; }
.video-toggle {
	position: absolute; right: 24px; bottom: 24px; z-index: 2;
	width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; cursor: pointer;
	backdrop-filter: blur(6px); transition: background .2s;
}
.video-toggle:hover { background: rgba(255,255,255,.2); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }

/* Ilustración del hero ligada a la paleta */
.hero-art .art-line { stroke: var(--art); }
.hero-art .art-dim { stroke: var(--accent); }
.hero-art .art-text { fill: var(--tint); }
.hero-art .art-text .muted { fill: var(--art); }
.hero-art .art-dot { fill: var(--accent); }

/* =========================================================
   Páginas internas, proceso, servicio, equipos y validación
   ========================================================= */
.btn--outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--outline:disabled { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost svg { width: 18px; height: 18px; }

/* Hero interno (mismo estilo que la portada, más bajo) */
.hero--page { min-height: 0; padding: 150px 0 84px; }
.hero--page h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 820px; }
.hero--page .doc-control { margin-top: 6px; }
.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--on-dark-2); margin-bottom: 18px; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Listas con check */
.checks { list-style: none; padding: 0 !important; margin: 0 0 1.6em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; margin: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--square li::before { border-radius: 5px; background: var(--brand); }
.checks--square li::after { border-color: #fff; }
.checks--sm { gap: 7px; font-size: .9rem; }
.checks--sm li { padding-left: 28px; }
.checks--sm li::before { width: 18px; height: 18px; top: 3px; }
.checks--sm li::after { left: 6.5px; top: 6.5px; width: 5px; height: 8px; }

/* Separador «Nuestro proceso» con video */
.process { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: clamp(64px, 8vw, 96px) 0; }
.process-media { position: absolute; inset: 0 0 0 30%; }
.process-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.process-video.is-active { opacity: 1; }
.process-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 30%, color-mix(in srgb, var(--navy) 80%, transparent) 50%, color-mix(in srgb, var(--navy) 25%, transparent) 100%); }
.process .wrap { position: relative; z-index: 1; }
.process .eyebrow { color: var(--tint); }
.process h2 { color: #fff; margin-bottom: 44px; }
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.process-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.process-ic { flex: none; color: #fff; display: grid; }
.process-ic svg { width: 24px; height: 24px; }
.process-line { flex: 1; height: 1px; background: rgba(255,255,255,.35); position: relative; margin-right: 6px; }
.process-line::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 7px solid rgba(255,255,255,.55); }
.process-step:last-child .process-line::after { display: none; }
.process-step h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.process-step p { font-size: .92rem; color: var(--on-dark); margin: 0; max-width: 260px; }
@media (max-width: 980px) {
	.process-steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
	.process-media { inset: 0; }
	.process-shade { background: color-mix(in srgb, var(--navy) 82%, transparent); }
}
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } .process-line { display: none; } }

/* Servicio: contenido + barra lateral */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.svc-main { max-width: none; }
.svc-main > p:first-child { font-size: 1.08rem; }
.svc-main h2 { font-size: 1.7rem; margin-top: 1.6em; }
.svc-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; box-shadow: var(--shadow); }
.aside-card h3 { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.aside-card p { color: var(--muted); font-size: .92rem; }
.aside-card .btn { margin-top: 10px; border-radius: 8px; }
.aside-mail { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.aside-mail svg { width: 16px; height: 16px; color: var(--accent-600); }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: .93rem; border-bottom: 1px solid var(--line); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover, .aside-links a[aria-current] { color: var(--brand); font-weight: 600; }
@media (max-width: 980px) { .svc-layout { grid-template-columns: 1fr; gap: 40px; } .svc-aside { position: static; } }

/* Cifras y beneficios */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 72px; }
.stat { display: flex; align-items: center; gap: 18px; }
.stat-num { flex: none; min-width: 104px; padding: 14px 16px; border-radius: 10px; background: var(--brand); color: #fff; font: 800 2rem/1 var(--sans); text-align: center; letter-spacing: -.02em; }
.stat-label { font-weight: 700; color: var(--navy); line-height: 1.3; font-size: 1.05rem; }
.gain { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.gain h2 { margin: 0; }
.gain .checks { margin: 0; gap: 18px; color: var(--muted); }
@media (max-width: 900px) { .stats, .gain { grid-template-columns: 1fr; } .gain { gap: 28px; } }

/* Proceso en zigzag */
.title-ic { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.title-ic svg { width: 30px; height: 30px; color: var(--accent); }
.snake { --c: 56px; --r: 18px; --w: 4px; list-style: none; padding: 0; margin: 0; max-width: 1040px; }
.snake li { position: relative; padding: 6px calc(var(--c) + 28px) 72px; min-height: 150px; }
.snake li:last-child { padding-bottom: 0; min-height: 0; }
.snake-num { position: absolute; top: 0; width: var(--c); height: var(--c); border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; z-index: 1; }
.snake li:nth-child(odd) .snake-num { left: 0; }
.snake li:nth-child(even) .snake-num { right: 0; }
.snake li:nth-child(even) { text-align: center; }
.snake h3 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.snake p { color: var(--muted); margin: 0; }
.snake li:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--c) / 2); bottom: 0; border-bottom: var(--w) solid var(--navy); }
.snake li:nth-child(odd):not(:last-child)::after { left: calc(var(--c) / 2 - var(--w) / 2); right: calc(var(--c) / 2 + var(--r)); border-left: var(--w) solid var(--navy); border-bottom-left-radius: var(--r); }
.snake li:nth-child(even):not(:last-child)::after { right: calc(var(--c) / 2 - var(--w) / 2); left: calc(var(--c) / 2 + var(--r)); border-right: var(--w) solid var(--navy); border-bottom-right-radius: var(--r); }
.snake li:not(:first-child)::before { content: ""; position: absolute; top: calc(var(--w) * -1); height: calc(var(--c) / 2 + var(--w)); width: var(--r); border-top: var(--w) solid var(--navy); }
.snake li:nth-child(even)::before { right: calc(var(--c) / 2 - var(--w) / 2); border-right: var(--w) solid var(--navy); border-top-right-radius: var(--r); }
.snake li:nth-child(odd):not(:first-child)::before { left: calc(var(--c) / 2 - var(--w) / 2); border-left: var(--w) solid var(--navy); border-top-left-radius: var(--r); }
@media (max-width: 640px) { .snake { --c: 44px; } .snake li { padding-left: calc(var(--c) + 14px); padding-right: calc(var(--c) + 14px); } .snake li:nth-child(even) { text-align: left; } }

/* Tarjetas de información */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 34px; }
.info-card h3 { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-weight: 800; font-size: 1.45rem; margin-bottom: 18px; }
.info-ic { color: var(--accent); display: grid; }
.info-ic svg { width: 28px; height: 28px; }
.info-card ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
.info-card strong { color: var(--ink); }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }

/* Equipos (lista a dos columnas), zonas y preguntas */
.prose--wide { max-width: none; }
.prose--wide h2:first-child { margin-top: 0; }
.two-col { columns: 2; column-gap: 48px; padding-left: 1.1em !important; }
.two-col li { break-inside: avoid; margin-bottom: 10px; }
.two-col li::marker { color: var(--accent); }
.two-col a { color: var(--brand); }
.pills { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.pills li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; background: #fff; }
.pills svg { width: 17px; height: 17px; color: var(--accent-600); }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border: solid var(--accent-600); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 640px) { .two-col { columns: 1; } }

/* Página Equipos */
.equip-group + .equip-group { margin-top: 72px; }
.equip-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 28px; }
.equip-group-head .eyebrow { width: 100%; margin-bottom: 4px; }
.equip-group-head h2 { margin: 0; }
.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.equip-card { display: grid; grid-template-columns: 170px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.equip-media { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%), var(--navy); color: var(--tint); display: grid; place-items: center; }
.equip-media svg { width: 64px; height: 64px; stroke-width: 1.2; }
.equip-body { padding: 24px 26px; }
.equip-body h3 { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.equip-body p { color: var(--muted); font-size: .92rem; }
.equip-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-600); margin: 4px 0 10px; }
.equip-body .checks { margin-bottom: 16px; }
.equip-note { margin-top: 44px; text-align: center; color: var(--muted); }
@media (max-width: 980px) { .equip-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .equip-card { grid-template-columns: 1fr; } .equip-media { height: 120px; } }

/* Validar informe */
.validate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.validate-col { display: grid; gap: 24px; }
.validate-col.prose h2:first-child { margin-top: 0; }
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.card-title svg { width: 22px; height: 22px; color: var(--accent-600); }
.inline-field { display: flex; gap: 10px; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .btn { border-radius: 8px; }
.verify-help--dark { color: var(--muted); margin: 10px 0 0; }
.form-card .verify-result { border: 1px solid var(--line); margin-top: 18px; }
.pdf-check { display: grid; gap: 12px; margin-top: 8px; }
.file-drop { position: relative; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px; cursor: pointer; background: var(--paper-2); font-weight: 600; color: var(--muted); text-align: center; }
.file-drop:hover { border-color: var(--brand); color: var(--brand); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdf-result:empty { display: none; }
@media (max-width: 900px) { .validate-grid { grid-template-columns: 1fr; } }
.service-more { margin-top: 18px; }

/* Hero con varios videos */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media .hero-video.is-active { opacity: 1; }
.hero-dots { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background .3s; }
.hero-dots span.is-active { background: var(--accent); }
@media (max-width: 640px) { .hero-dots { bottom: 34px; } }
