:root {
	--ink: #171a20;
	--ink-soft: #5c5e62;
	--paper: #ffffff;
	--mist: #f4f4f4;
	--line: #e2e3e5;
	--green: #2fae4a;
	--green-dark: #23903b;
	--radius: 4px;
	--font: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.anchor { display: block; position: relative; top: -60px; visibility: hidden; }

/* ---------- Botones ---------- */
.btn { display: inline-block; min-width: 200px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius); font: 500 14px/1.4 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); }
.btn-light { background: rgba(255,255,255,.88); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-small { min-width: 0; padding: 7px 18px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px 32px; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-header.is-solid, .site-header.nav-open { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { height: 34px; width: auto; display: block; }
.brand .logo-word, .brand img:nth-of-type(2), .brand img:nth-of-type(4) { height: 20px; }
.brand .logo-light { display: block; } .brand .logo-dark { display: none; }
.site-header.is-solid .logo-light, .site-header.nav-open .logo-light { display: none; }
.site-header.is-solid .logo-dark, .site-header.nav-open .logo-dark { display: block; }
.footer-logo { width: 110px; height: auto; margin-bottom: 14px; display: block; }
/* Intro con el logo animado */
#splash { display: none; position: fixed; inset: 0; z-index: 999; background: #fff; place-items: center; transition: opacity .7s ease; }
.splash-on #splash { display: grid; }
#splash.is-out { opacity: 0; pointer-events: none; }
#splash video { width: min(420px, 80vw); height: auto; }
#splash-skip { position: absolute; right: 20px; bottom: 20px; background: none; border: 0; color: var(--ink-soft); font: 13px var(--font); cursor: pointer; text-decoration: underline; }
.custom-logo { max-height: 44px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; text-decoration: none; transition: background .2s; }
.main-nav a:hover { background: rgba(128,128,128,.18); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; position: relative; color: inherit; cursor: pointer; }
.nav-toggle i { position: absolute; left: 7px; right: 7px; height: 2px; background: currentColor; transition: transform .25s; }
.nav-toggle i:first-of-type { top: 14px; } .nav-toggle i:last-of-type { top: 21px; }
.nav-open .nav-toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Pantallas completas ---------- */
.screen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 14vh 24px 7vh; color: #fff; background: #20262c var(--bg) center/cover no-repeat; }
.screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,18,.55) 0%, rgba(10,14,18,0) 38%, rgba(10,14,18,0) 70%, rgba(10,14,18,.45) 100%); }
.screen > * { position: relative; }
.screen h1, .screen h2 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 500; }
.screen-top p { margin: 0 auto; max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); }
.screen-stats { display: flex; gap: clamp(20px, 6vw, 80px); justify-content: center; flex-wrap: wrap; }
.screen-stats strong { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; }
.screen-stats span { font-size: 14px; opacity: .9; }
.screen-bottom { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.screen.hero { color: #fff; }

/* ---------- Bloques de contenido ---------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 130px 24px 80px; }
.block { padding: clamp(60px, 10vw, 120px) 24px; }
.block-alt { background: var(--mist); }
.block-inner { max-width: 1200px; margin: 0 auto; }
.block-inner.narrow { max-width: 760px; }
.block h2 { font-size: clamp(28px, 3.6vw, 44px); text-align: center; margin-bottom: 1.2em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.features h3 { font-size: 20px; }
.features p { color: var(--ink-soft); margin: 0; }
.spec-list { list-style: none; padding: 0; margin: 0 0 32px; }
.spec-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.gal-title { font-size: 22px; margin: 40px 0 16px; }
.adera-note { background: #fff8e1; border: 1px dashed #d9b400; padding: 10px 14px; font-size: 14px; border-radius: var(--radius); }

/* ---------- NextGEN Gallery ---------- */
.adera-gallery .ngg-galleryoverview { margin: 0; }
.adera-gallery .ngg-gallery-thumbnail-box { float: none; width: auto; margin: 0; padding: 0; }
.adera-gallery .ngg-galleryoverview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.adera-gallery .ngg-gallery-thumbnail { float: none; }
.adera-gallery .ngg-gallery-thumbnail img { width: 100%; height: 190px; object-fit: cover; border: 0; padding: 0; margin: 0; display: block; transition: transform .4s; }
.adera-gallery .ngg-gallery-thumbnail { overflow: hidden; display: block; }
.adera-gallery .ngg-gallery-thumbnail:hover img { transform: scale(1.04); }
.adera-gallery .ngg-clear, .adera-gallery br { display: none; }
.adera-gallery .ngg-navigation { grid-column: 1 / -1; text-align: center; }

/* ---------- Cotizador ---------- */
.cfg { background: var(--paper); padding-top: 72px; }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); align-items: start; }
.cfg-preview { position: sticky; top: 56px; height: calc(100vh - 56px); display: flex; flex-direction: column; background: #20262c; color: #fff; }
.cfg-image { position: relative; flex: 1; min-height: 0; }
.cfg-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
.cfg-image img.is-fading { opacity: 0; }
.cfg-noimg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; opacity: .7; }
.cfg-thumbs { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; }
.cfg-thumbs button { flex: 0 0 72px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.cfg-thumbs button.on, .cfg-thumbs button:hover { opacity: 1; border-color: var(--green); }
.cfg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cfg-stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); padding: 18px 16px 22px; text-align: center; }
.cfg-stats strong { display: block; font-size: 24px; font-weight: 500; }
.cfg-stats span { font-size: 13px; opacity: .8; }

.cfg-panel { padding: 40px clamp(20px, 3vw, 48px) 80px; max-width: 560px; }
.cfg-panel h2 { font-size: 34px; }
.cfg-lead { color: var(--ink-soft); margin: 0 0 24px; }
.cfg-step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 20px 0; }
.cfg-step legend { padding: 0; font-size: 16px; font-weight: 600; margin-bottom: 12px; float: left; width: 100%; }
.cfg-step legend + * { clear: both; }
.cfg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-card { text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s; }
.cfg-card strong { display: block; font-size: 18px; font-weight: 600; }
.cfg-card span { font-size: 12.5px; color: var(--ink-soft); display: block; margin-top: 4px; }
.cfg-card.on { border-color: var(--green); }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-chip { min-width: 64px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font: 500 15px var(--font); cursor: pointer; transition: border-color .2s, background .2s; }
.cfg-chip:hover { border-color: #b9bbbf; }
.cfg-chip.on { border-color: var(--green); background: #effaf1; }
.cfg-hint { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.cfg-check { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.cfg-check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.cfg-indent { margin: -4px 0 8px 32px; }
.cfg-check span { flex: 1; }
.cfg-check em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.cfg-city { margin-top: 8px; }
.cfg-city label { display: block; font-size: 14px; margin-bottom: 8px; }
.cfg-city input, .cfg-form input, .cfg-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c4c6ca; border-radius: var(--radius); font: 15px var(--font); background: #fff; }
.cfg-summary { background: var(--mist); border-radius: var(--radius); padding: 22px; margin-top: 8px; }
.cfg-summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.cfg-summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cfg-summary td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cfg-summary td:last-child { text-align: right; white-space: nowrap; padding-left: 14px; }
.cfg-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.cfg-total strong { font-size: 32px; font-weight: 500; }
.cfg-clp { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); text-align: right; }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cfg-actions .btn { flex: 1; min-width: 180px; }
.cfg-form { margin-top: 28px; display: grid; gap: 10px; }
.cfg-form[hidden] { display: none; }
.cfg-form h3 { font-size: 20px; margin: 0; }
.hp { position: absolute !important; left: -9999px; }
.cfg-msg { margin: 0; font-size: 14px; }
.cfg-msg.ok { color: var(--green-dark); font-weight: 600; }
.cfg-msg.err { color: #b3261e; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d0d1d2; padding: 56px 24px 28px; font-size: 14px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.legal { max-width: 1200px; margin: 36px auto 0 !important; font-size: 12px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.cfg-grid { grid-template-columns: 1fr; }
	.cfg-preview { position: relative; top: 0; height: 56vh; }
	.cfg-panel { max-width: none; }
}
@media (max-width: 860px) {
	.site-header { padding: 12px 18px; gap: 12px; }
	.nav-toggle { display: block; margin-left: auto; }
	.header-cta { order: 3; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--ink); display: none; padding: 8px 18px 18px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
	.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; }
	.btn { min-width: 0; flex: 1 1 100%; max-width: 340px; }
}
@media (max-width: 520px) { .cfg-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Imagely / NextGEN */
.adera-gallery img { max-width: 100%; height: auto; }
.adera-gallery [class*="imagely"] img, .adera-gallery [class*="ngg"] img { display: block; }
