/* ==========================================================
   Calizas Guayas – estilos principales
   Concepto: blanco mineral + verde de estanque; la "malla" (tamiz)
   aparece como trama de puntos y en los datos técnicos en monoespaciada.
   ========================================================== */

:root {
	--ground: #F3F5F1;
	--paper: #FFFFFF;
	--stone: #E4E9E2;
	--line: #CFD8D1;
	--ink: #13302C;
	--ink-2: #1D4541;
	--muted: #4A5D59;
	--accent: #24786F;
	--accent-soft: #DCEEEA;
	--accent-light: #8AD6CA;
	--ochre: #9A6516;
	--wa: #1A8F55;
	--error: #B42318;

	--display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
	--body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--container: 1220px;
	--gutter: 24px;
	--header-h: 80px;
	--radius: 14px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 18px; } .eyebrow__dot { display: none; } }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.h2, .h3, .h4, .hero__title, .band__title { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
.h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; }
.h3 { font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.08; }
.h4 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.body-lg { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 62ch; }

.eyebrow {
	margin: 0 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
	font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .mono { letter-spacing: .04em; text-transform: none; padding: 4px 10px; background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 13px; }
.eyebrow__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.eyebrow--light { color: var(--accent-light); }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn .icon--arrow { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #0A1E1B; color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: #1B6159; color: var(--paper); box-shadow: 0 12px 24px -14px var(--accent); }
.btn--line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); color: var(--paper); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #147545; color: #fff; box-shadow: 0 12px 24px -14px var(--wa); }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(243, 245, 241, .92); backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(19, 48, 44, .5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__logo { max-height: 56px; width: auto; transition: max-height .3s var(--ease); }
.site-header.is-scrolled .brand__logo { max-height: 46px; }
.brand__mark {
	width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
	background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 16px;
}
.brand__name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand__name b { font-weight: 800; color: var(--accent); margin-left: 4px; }
.brand__name--light { color: var(--paper); font-size: 26px; }
.brand__name--light b { color: var(--accent-light); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav__link {
	display: inline-block; padding: 10px 14px; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
	transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--stone); }
.nav__link.is-current { background: var(--ink); color: var(--paper); }

.nav-toggle {
	display: none; width: 48px; height: 48px; padding: 0; border-radius: 50%;
	background: var(--paper); border: 1.5px solid var(--line); color: var(--ink);
	cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--header-h);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: transform .25s var(--ease), opacity .25s, visibility 0s .25s;
	}
	.site-header.is-scrolled .nav { top: 66px; }
	.nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .25s; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__link { display: block; padding: 14px 16px; font-size: 19px; border-radius: 12px; }
	.nav__cta { margin-top: 16px; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(circle, rgba(19, 48, 44, .14) 1.2px, transparent 1.4px);
	background-size: 14px 14px;
	-webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
	mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 80px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__copy .eyebrow { margin: 0; }
.hero__title { font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.035em; }
.hero__text { margin: 0; max-width: 54ch; font-size: 19px; line-height: 1.6; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__media .media { width: 100%; height: 520px; object-fit: cover; border-radius: 220px 220px var(--radius) var(--radius); }
.hero__chips { position: absolute; left: -20px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.chip {
	display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
	background: var(--paper); border-radius: 999px; text-decoration: none; color: var(--ink);
	box-shadow: 0 16px 32px -18px rgba(19, 48, 44, .55);
	transition: transform .25s var(--ease);
}
.chip:hover { transform: translateX(6px); }
.chip__formula { min-width: 52px; height: 40px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.chip__name { font-weight: 600; }
@media (max-width: 700px) {
	.hero__inner { padding-top: 32px; padding-bottom: 56px; gap: 36px; }
	.hero__media .media { height: 360px; border-radius: 160px 160px var(--radius) var(--radius); }
	.hero__chips { left: 12px; bottom: 16px; }
}

/* Fotos y recuadros de reemplazo */
.media { width: 100%; height: 100%; object-fit: cover; }
.media--placeholder {
	display: flex; align-items: flex-end; padding: 18px; min-height: 100%;
	background-color: var(--stone);
	background-image: radial-gradient(circle, rgba(19, 48, 44, .16) 1.2px, transparent 1.4px);
	background-size: 12px 12px;
	color: var(--muted); font-size: 14px;
}
.media--placeholder span { background: var(--paper); padding: 4px 10px; border-radius: 6px; }
.media--placeholder span::before { content: "Foto: "; font-weight: 600; }

/* ---------- Datos ---------- */
.facts { background: var(--ink); color: var(--paper); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; padding-top: 8px; padding-bottom: 8px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 32px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; }
.fact__num { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--accent-light); }
.fact__num small { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: 0; }
.fact__label { font-size: 15px; color: #C4D3CF; }
@media (max-width: 520px) { .fact { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 4px; } .fact:first-child { border-top: 0; } }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section--deep { background: var(--ink); color: var(--paper); }
.section--deep .section__lead { color: #C4D3CF; }
.section--stone { background: var(--stone); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section__head > div { max-width: 680px; }
.section__lead { margin: 0; max-width: 400px; font-size: 18px; color: var(--muted); }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 28px; }
.product { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.product__media { position: relative; height: 300px; overflow: hidden; }
.product__media .media { transition: transform .7s var(--ease); }
.product:hover .product__media .media { transform: scale(1.04); }
.product__badge { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; }
.product__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.product__kicker { margin: 0; font-size: 13px; color: var(--ochre); text-transform: uppercase; letter-spacing: .08em; }
.product__summary { margin: 0; color: var(--muted); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.uses { display: flex; flex-direction: column; gap: 8px; }
.uses__title { margin: 6px 0 2px; font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.use { border-radius: 10px; background: var(--ground); transition: background-color .2s; }
.use[open] { background: var(--accent-soft); }
.use summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 10px 14px; font-weight: 600;
}
.use summary::-webkit-details-marker { display: none; }
.use__icon { color: var(--accent); display: inline-flex; }
.use__toggle { margin-left: auto; display: inline-flex; transition: transform .25s var(--ease); }
.use[open] .use__toggle { transform: rotate(180deg); }
.use p { margin: 0; padding: 0 14px 14px 46px; color: var(--ink-2); font-size: 16px; animation: fadeUp .3s var(--ease); }
.product__cta { align-self: flex-start; margin-top: auto; }
@media (max-width: 520px) { .product__body { padding: 24px 20px; } .product__media { height: 230px; } }

/* Sectores en la ficha de producto (llevan a la guía) */
.product__sectors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product__sectors a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
	border-radius: 999px; background: var(--ground); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
	transition: background-color .2s, color .2s;
}
.product__sectors a .icon { color: var(--accent); }
.product__sectors a:hover { background: var(--accent-soft); }

/* ---------- Guía por sector ---------- */
.sectors__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sectors__tab {
	display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px;
	border-radius: var(--radius); border: 1.5px solid rgba(255,255,255,.18);
	background: transparent; color: #C4D3CF; cursor: pointer; text-align: left;
	font-family: var(--display); font-weight: 700; font-size: 20px;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.sectors__tab:hover { border-color: rgba(255,255,255,.5); color: var(--paper); }
.sectors__tab[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.sectors__tab[aria-selected="true"] .icon { color: var(--accent); }
.sectors__panel { padding-top: 36px; animation: fadeUp .4s var(--ease); }
.sectors__lead { margin: 0 0 28px; font-size: 21px; max-width: 60ch; color: #E3ECE9; }
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.match {
	display: flex; flex-direction: column; gap: 12px; padding: 26px;
	background: var(--ink-2); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08);
	opacity: 0; animation: fadeUp .45s var(--ease) forwards;
}
.match:nth-child(2) { animation-delay: .08s; }
.match__name { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 24px; }
.match__name .mono { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(138, 214, 202, .16); color: var(--accent-light); font-family: var(--mono); }
.match__text { margin: 0; color: #D4E0DC; }
.match__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-light); font-weight: 600; text-decoration: none; }
.match__link:hover .icon { transform: translateX(4px); }
.match__link .icon { transition: transform .2s var(--ease); }
@media (max-width: 760px) { .sectors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sectors__tab { font-size: 18px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Nosotros ---------- */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.about__media { flex: 1 1 400px; min-width: 0; position: relative; }
.about__media .media { height: 560px; border-radius: var(--radius); }
.about__since { position: absolute; right: -16px; top: 32px; margin: 0; padding: 18px 22px; border-radius: var(--radius); background: var(--accent); color: var(--paper); display: flex; flex-direction: column; box-shadow: 0 20px 40px -24px rgba(19, 48, 44, .7); }
.about__since .mono { font-size: 13px; opacity: .85; }
.about__since strong { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.about__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__copy .eyebrow { margin: 0; }
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 12px; }
.mv__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mv__item p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .about__media .media { height: 380px; } .about__since { right: 12px; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; margin-top: 88px; border-top: 1px solid var(--line); }
.pillar { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .3s var(--ease); }
.pillar:hover .pillar__icon { transform: rotate(-12deg) scale(1.06); }
@media (max-width: 960px) { .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .pillar { padding-bottom: 28px; } }

/* ---------- Banda ---------- */
.band { background: var(--accent); color: var(--paper); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.2px, transparent 1.4px); background-size: 14px 14px; pointer-events: none; }
.band__inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.band__title { font-weight: 800; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; max-width: 640px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pedido ---------- */
.order { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.order__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
.order__info .eyebrow { margin: 0; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > .icon { flex: none; margin-top: 4px; color: var(--accent); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list__big { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; text-decoration: none; }
.contact-list__big:hover { color: var(--accent); }
.map { height: 240px; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
	width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	border: 0; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--paper);
	background-color: var(--ink);
	background-image: radial-gradient(circle, rgba(255,255,255,.12) 1.2px, transparent 1.4px); background-size: 14px 14px;
}
.map__load .icon { color: var(--accent-light); transition: transform .3s var(--ease); }
.map__load:hover .icon { transform: translateY(-4px); }

.order-form {
	flex: 1 1 540px; min-width: 0; background: var(--paper); border-radius: var(--radius);
	padding: 36px; display: flex; flex-direction: column; gap: 22px;
	box-shadow: 0 30px 60px -40px rgba(19, 48, 44, .45);
}
@media (max-width: 560px) { .order-form { padding: 24px 18px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps__item { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--stone); font-size: 14px; font-weight: 600; color: #66756F; transition: border-color .3s, color .3s; }
.steps__item span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font-size: 13px; transition: background-color .3s, color .3s, border-color .3s; }
.steps__item.is-active { border-color: var(--accent); color: var(--ink); }
.steps__item.is-active span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps__item.is-done { border-color: var(--ink); color: var(--ink); }
.steps__item.is-done span { background: var(--accent); border-color: var(--accent); color: var(--paper); }
@media (max-width: 420px) { .steps__item { font-size: 12px; gap: 6px; } }

.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.step:not([hidden]) { animation: fadeUp .35s var(--ease); }
.step__title { padding: 0; margin-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }

.line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background-color .2s; }
.line.is-on { border-color: var(--ink); background: var(--ground); }
.line__check { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; flex: 1 1 220px; min-width: 0; min-height: 44px; }
.line__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.line__box { width: 26px; height: 26px; flex: none; border-radius: 7px; border: 1.5px solid #9AA9A3; display: grid; place-items: center; color: transparent; background: var(--paper); transition: background-color .2s, border-color .2s, color .2s; }
.line__check input:checked + .line__box { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.line__check input:focus-visible + .line__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.line__name { display: flex; flex-direction: column; }
.line__name small { color: var(--muted); font-size: 13px; }
.line__qty { display: flex; gap: 8px; align-items: center; opacity: .45; pointer-events: none; transition: opacity .2s; }
.line.is-on .line__qty { opacity: 1; pointer-events: auto; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper__btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper__btn:hover { background: var(--stone); }
.stepper input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line__qty select { height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.pill span .icon { color: var(--accent); }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:checked + span .icon { color: var(--accent-light); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
	border: 1.5px solid var(--line); background: var(--ground); font-weight: 400; font-size: 16px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-invalid input { border-color: var(--error); }
.field__error { color: var(--error); font-size: 13px; font-weight: 500; }
.field[hidden] { display: none; }

.preview { background: #E9F3EE; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.preview__label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wa); }
.preview__bubble { margin: 0; align-self: flex-start; max-width: 100%; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.08); }

.form-msg { margin: 0; font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: #0C211E; color: #B9C9C4; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; font-size: 15px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.site-footer__brand p { margin: 0; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: center; }
.site-footer__contact a { color: var(--paper); text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__contact .icon { color: var(--accent-light); flex: none; }
.site-footer__copy { margin: 0; align-self: flex-end; }

/* ---------- Flotantes ---------- */
.fab-whatsapp {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px;
	background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; border-radius: 30px;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
	transition: transform .25s var(--ease);
}
.fab-whatsapp:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.fab-whatsapp__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.fab-whatsapp:hover .fab-whatsapp__label, .fab-whatsapp:focus-visible .fab-whatsapp__label, .fab-whatsapp.is-peek .fab-whatsapp__label { max-width: 130px; }
.to-top {
	position: fixed; right: 28px; bottom: 92px; z-index: 89; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }

/* ---------- Animaciones al aparecer ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.reveal-pending { opacity: 0; transform: translateY(24px); }
.reveal.reveal-pending.is-in { opacity: 1; transform: none; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 72px 0 56px; }
.prose { max-width: 820px; }
.prose a { color: var(--accent); }
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-card { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-card a { text-decoration: none; }
.post-card__date { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.reveal.reveal-pending, .match { opacity: 1; transform: none; }
}
