/*
Theme Name: Consolid USA
Theme URI: https://consolidusa-la.com
Author: SISC
Description: Tema a la medida para Consolid USA / Latin America. Nanotecnología de consolidación de suelos.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: consolid-usa
*/

:root {
	--navy-900: #06142a;
	--navy-800: #0b2045;
	--navy-700: #12305f;
	--navy-600: #1b4180;
	--amber-500: #d0121b;
	--amber-600: #a50d14;
	--amber-100: #fdeced;
	--earth-50: #faf7f2;
	--earth-100: #f3ede3;
	--ink: #142033;
	--muted: #5a6577;
	--line: #e3e7ee;
	--white: #fff;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px rgba(6, 20, 42, .08);
	--shadow-lg: 0 24px 60px rgba(6, 20, 42, .16);
	--container: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Montserrat", var(--font);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; color: var(--navy-800); margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; clip: auto; width: auto; height: auto; background: #fff; padding: 8px 14px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 880px; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .9em 1.6em; border-radius: 999px;
	font-weight: 700; font-size: .95rem; letter-spacing: .02em;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	text-decoration: none; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: #fff; box-shadow: 0 10px 24px rgba(208, 18, 27, .32); }
.btn-primary:hover { background: var(--amber-600); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy-800); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-900); color: #b9c4d6; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #dfe6f1; }
.topbar a:hover { color: var(--amber-500); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar-social { display: flex; gap: 12px; align-items: center; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(6, 20, 42, .1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand img { height: 50px; width: auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 10px;
	color: var(--navy-800); font-weight: 600; font-size: .93rem;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.current-menu-item > a, .main-nav > ul > li.current-menu-ancestor > a { color: var(--amber-500); }
.main-nav .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px); opacity: .7;
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { color: var(--ink); font-weight: 500; padding: 9px 14px; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--amber-100); color: var(--amber-600); }
.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: .75em 1.3em; }

.nav-toggle {
	display: none; background: none; border: 0; cursor: pointer;
	width: 46px; height: 46px; border-radius: 12px; color: var(--navy-800); padding: 11px;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle { color: #fff; }
.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); }

/* Selector de idioma */
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: #dfe6f1; line-height: 1.6; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-current { background: var(--amber-500); color: #fff; }
.nav-extra { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; color: #fff;
	min-height: min(88vh, 820px); display: flex; align-items: center;
	overflow: hidden; background: var(--navy-900);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(100deg, rgba(6, 20, 42, .93) 0%, rgba(6, 20, 42, .72) 45%, rgba(6, 20, 42, .25) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 120px; }
.hero-content { max-width: 720px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	color: var(--amber-500); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d3dbe8; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 2; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero-dots button.is-active { background: var(--amber-500); width: 54px; }

/* ---------- Estadisticas ---------- */
.stats { position: relative; z-index: 3; margin-top: -70px; }
.stats-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--navy-800); line-height: 1; }
.stat strong small { font-size: .55em; color: var(--amber-500); }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--earth-50); }
.section-dark { background: var(--navy-800); color: #c9d3e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #a9b6cb; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge-float {
	position: absolute; right: -18px; bottom: -22px; background: var(--amber-500); color: #fff;
	border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 220px; line-height: 1.3;
}
.badge-float strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--amber-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a50d14' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section-dark .check-list li::before { background-color: rgba(208, 18, 27, .22); }

/* Tarjetas */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
	transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--earth-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .more { margin-top: auto; font-weight: 700; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; color: var(--amber-600); }
.card-body .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
a.card { color: inherit; }
.card-icon {
	width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
	background: var(--amber-100); color: var(--amber-600); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-plain .card-body { padding: 30px; }

/* Producto */
.products { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.product {
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--radius-lg); padding: 32px 28px; text-align: center;
}
.product .tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--amber-500); margin-bottom: 8px; }
.product h3 { margin-bottom: 10px; }
.product p { font-size: .95rem; margin: 0; }
.product-op { display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--amber-500); font-weight: 800; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
	position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px 24px 26px;
	border: 1px solid var(--line); counter-increment: step;
}
.step::before {
	content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800;
	font-size: 2.6rem; color: var(--amber-500); opacity: .9; line-height: 1; display: block; margin-bottom: 14px;
}
.step img { border-radius: 12px; margin: -6px 0 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.step p { margin: 0; font-weight: 600; color: var(--navy-800); font-size: .96rem; line-height: 1.5; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video {
	position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; cursor: pointer;
	background: #000 center/cover no-repeat; border: 0; padding: 0; width: 100%; box-shadow: var(--shadow);
}
.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)); transition: background .3s; }
.video:hover::before { background: rgba(6, 20, 42, .35); }
.video .play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
	border-radius: 50%; background: var(--amber-500); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(208, 18, 27, .25);
	transition: transform .3s;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video .play svg { width: 24px; height: 24px; color: #fff; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Socios */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 54px; }
.partners img { max-height: 74px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.partners a:hover img, .partners img:hover { filter: none; opacity: 1; }

/* CTA */
.cta {
	position: relative; overflow: hidden; border-radius: var(--radius-lg);
	background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #d5deeb;
	padding: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, rgba(208, 18, 27, .5), transparent 70%);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; }
.cta > * { position: relative; z-index: 1; }

/* ---------- Encabezado de pagina ---------- */
.page-hero {
	position: relative; color: #fff; background: var(--navy-800) center/cover no-repeat;
	padding: clamp(70px, 10vw, 120px) 0 clamp(56px, 8vw, 90px); isolation: isolate;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 20, 42, .94), rgba(11, 32, 69, .7)); }
.page-hero h1 { color: #fff; margin-bottom: 12px; max-width: 900px; }
.breadcrumbs { font-size: .88rem; color: #aab7cc; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: #dfe6f1; }
.breadcrumbs a:hover { color: var(--amber-500); }

/* ---------- Contenido de paginas ---------- */
.entry { padding: clamp(56px, 8vw, 90px) 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h2:first-child, .entry-content .cu-block:first-child h2 { margin-top: 0; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul:not([class]) li, .entry-content ol li { margin-bottom: .45em; }
.entry-content blockquote {
	margin: 2em 0; padding: 26px 30px; border-left: 4px solid var(--amber-500);
	background: var(--earth-50); border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-800); font-weight: 600;
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); font-style: normal; font-weight: 500; }
.lead { font-size: 1.2rem; color: var(--muted); }

.cu-block { margin-bottom: clamp(48px, 7vw, 80px); }
.cu-block:last-child { margin-bottom: 0; }
.cu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.cu-grid-2.top { align-items: start; }
/* Si falta la imagen de un bloque de dos columnas, el texto ocupa todo el ancho */
.cu-grid-2 > div:empty { display: none; }
.cu-grid-2:has(> div:empty) { grid-template-columns: 1fr; max-width: 880px; }
.cu-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cu-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.cu-panel { background: var(--earth-50); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.cu-panel-dark { background: var(--navy-800); color: #c9d3e3; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.cu-panel-dark h2, .cu-panel-dark h3, .cu-panel-dark h4 { color: #fff; }
.cu-pill { display: inline-block; background: var(--amber-100); color: var(--amber-600); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }

.cu-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; height: 100%; }
.cu-feature .card-icon { margin-bottom: 14px; }
.cu-feature h3 { margin-top: 0; font-size: 1.15rem; }
.cu-feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Linea de tiempo */
.timeline { position: relative; list-style: none; padding: 0; margin: 2em 0; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 34px; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 5px var(--amber-100); }
.timeline .year { font-family: var(--font-display); font-weight: 800; color: var(--navy-800); font-size: 1.15rem; text-align: right; }

/* Tabla comparativa */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem; }
.compare th, .compare td { padding: 18px 20px; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { background: var(--navy-800); color: #fff; font-family: var(--font-display); font-size: .95rem; }
.compare thead th:last-child { background: var(--amber-500); }
.compare tbody th { background: var(--earth-50); color: var(--navy-800); font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; width: 18%; }
.compare td:nth-child(2) { color: var(--muted); width: 34%; }
.compare td:last-child { background: #fff8f8; }
.compare tr:last-child > * { border-bottom: 0; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; transition: box-shadow .3s, transform .3s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.member img, .member .avatar {
	width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px;
	box-shadow: 0 0 0 5px var(--amber-100);
}
.member .avatar { display: grid; place-items: center; background: var(--navy-800); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.member h3 { font-size: 1.08rem; margin: 0 0 4px; }
.member .role { color: var(--amber-600); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 8px; }
.member a { font-size: .88rem; word-break: break-all; }
.reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rep { border-radius: var(--radius); background: var(--earth-50); padding: 20px 22px; }
.rep h4 { margin: 0 0 8px; color: var(--amber-600); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.rep p { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; }
.rep p strong { color: var(--navy-800); }

/* Galeria */
.gallery-group { margin-bottom: clamp(48px, 7vw, 76px); }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gallery-head h2 { margin: 0; }
.gallery-head span { color: var(--muted); font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--earth-100); position: relative; }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.07); opacity: .9; }
.gallery-grid a.is-hidden { display: none; }
.gallery-more { margin-top: 18px; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(4, 12, 26, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--amber-500); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #aab7cc; font-size: .9rem; }

/* Documentos */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--amber-500); box-shadow: var(--shadow); color: var(--navy-800); }
.doc svg { width: 34px; height: 34px; color: #d64545; flex-shrink: 0; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--earth-50); border-radius: var(--radius); padding: 20px 22px; }
.contact-card .card-icon { width: 46px; height: 46px; margin: 0; flex-shrink: 0; border-radius: 12px; }
.contact-card .card-icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.form { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy-800); margin-bottom: 6px; }
.form .field { margin-bottom: 16px; }
.form input, .form textarea, .form select {
	width: 100%; font: inherit; font-size: .97rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--earth-50); color: var(--ink); transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--amber-500); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.notice-ok { background: #e7f7ee; color: #17663b; }
.notice-err { background: #fdecec; color: #9b1c1c; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-top: 24px; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fadc3; font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 50px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #c6d1e2; }
.site-footer a:hover { color: var(--amber-500); }
.footer-brand img { height: 66px; width: auto; margin-bottom: 20px; background: #fff; padding: 10px 14px; border-radius: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--amber-500); }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--amber-500); color: #fff; transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	background: var(--amber-500); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s; display: grid; place-items: center;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Animaciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-slide { transition: opacity .5s; transform: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
	.main-nav a { padding: 10px 10px; font-size: .9rem; }
	.header-cta { display: none; }
}
@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: block; }
	/* backdrop-filter crea un contenedor para elementos fixed: se quita para que el menu ocupe toda la pantalla */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.brand img { height: 44px; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 200;
		background: var(--navy-900); padding: 90px 22px 30px; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
	}
	.nav-open .main-nav { transform: none; visibility: visible; box-shadow: -20px 0 50px rgba(0, 0, 0, .4); }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 150; }
	.nav-open .site-header { z-index: 300; }
	.nav-toggle { position: relative; z-index: 210; }
	.main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.main-nav a { padding: 14px 6px; font-size: 1rem; justify-content: space-between; color: #e7ecf4; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 10px 12px; display: none; min-width: 0; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu a { color: #b9c4d6; padding: 9px 6px; font-size: .94rem; }
	.main-nav .sub-menu a:hover { background: transparent; color: var(--amber-500); }
	.main-nav li.is-open > a::after { transform: rotate(-135deg) translateY(-2px); }
	.nav-extra { display: grid; gap: 16px; margin-top: 26px; justify-items: start; }
	.nav-extra .btn { width: 100%; justify-content: center; color: #fff; }
	.main-nav .lang-switch-menu a { display: inline-block; font-size: .85rem; padding: 4px 18px; color: #dfe6f1; }
	.main-nav .lang-switch-menu a.is-current { color: #fff; }
	.main-nav .nav-extra .btn { padding: .9em 1.6em; justify-content: center; }
	.hide-md { display: none !important; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.split, .cu-grid-2, .contact-grid { grid-template-columns: 1fr; }
	.split-media .badge-float { right: 14px; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.products { grid-template-columns: 1fr; }
	.product-op { font-size: 1.8rem; }
	.videos { grid-template-columns: repeat(2, 1fr); }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.cu-grid-3 { grid-template-columns: 1fr 1fr; }
	.cta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.topbar-info .hide-sm { display: none; }
	.topbar-social { display: none; }
	.topbar .container { justify-content: space-between; }
	.hero { min-height: 640px; }
	.hero .container { padding-top: 60px; padding-bottom: 110px; }
	.hero-actions .btn { flex: 1 1 100%; justify-content: center; }
	.stat { padding: 24px 14px; }
	.steps, .videos, .cu-grid-3, .footer-main { grid-template-columns: 1fr; }
	.form .row { grid-template-columns: 1fr; }
	.timeline::before { left: 7px; }
	.timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 34px; }
	.timeline li::before { left: 1px; }
	.timeline .year { text-align: left; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.lightbox { padding: 60px 12px; }
	.lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
	/* Tabla comparativa como tarjetas */
	.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
	.compare thead { display: none; }
	.compare tr { border-bottom: 6px solid var(--earth-100); }
	.compare td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-600); margin-bottom: 4px; }
	.split-media .badge-float { position: static; margin-top: 14px; max-width: none; }
}
