/* Landing /funeraria-millenium · mismo lenguaje visual que el tema 2026 de Cofune */

:root {
	--ink: #15213a;
	--ink-2: #34405a;
	--muted: #667085;
	--bg: #f6f4ef;
	--bg-2: #efebe3;
	--surface: #ffffff;
	--line: #e7e2d8;
	--line-2: #d9d3c6;
	--brand: #1f4fa3;
	--brand-600: #163d82;
	--brand-50: #eef3fb;
	--accent: #a87b3e;
	--accent-50: #f7efe3;
	--ok: #2f7d5b;
	--danger: #b42318;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(21, 33, 58, .05), 0 8px 24px rgba(21, 33, 58, .06);
	--shadow-lg: 0 2px 4px rgba(21, 33, 58, .06), 0 22px 56px rgba(21, 33, 58, .14);
	--serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font: 16px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid rgba(31, 79, 163, .4); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	color: var(--accent);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* Botones */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 600 15px/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(31, 79, 163, .28); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-50); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ico { flex: none; }

/* Cabecera */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 244, 239, .86);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand img { display: block; height: 36px; width: auto; }
.header-nav { display: flex; gap: 26px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.header-nav a:hover { color: var(--brand); }

/* Hero */
.hero {
	position: relative;
	padding: 40px 0 72px;
	background:
		radial-gradient(900px 420px at 15% -10%, rgba(31, 79, 163, .10), transparent 70%),
		radial-gradient(700px 360px at 100% 100%, rgba(168, 123, 62, .12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.hero h1 { margin-bottom: 22px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 600px; }
.lead strong { color: var(--ink); }

.checks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.checks li::before {
	content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ok) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Formulario */
.hero-form { position: sticky; top: 92px; }
.lead-form, .form-ok { padding: 28px; box-shadow: var(--shadow-lg); }
.form-kicker { margin: 0 0 6px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.form-title { font-size: 25px; margin-bottom: 8px; }
.form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--ink);
	font: 15px/1.4 var(--sans);
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
select {
	padding-right: 36px;
	background: #fff no-repeat right 12px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 79, 163, .15); }
.invalid { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.more { margin: 2px 0 14px; }
.more summary { cursor: pointer; color: var(--brand); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); margin: 6px 0 4px; line-height: 1.5; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.lead-form .btn-block { margin-top: 14px; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.form-ok { text-align: center; }
.form-ok:focus { outline: none; }
.ok-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: #e7f3ed; color: var(--ok); }
.lead-form.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow-lg); } 30% { box-shadow: 0 0 0 5px rgba(31, 79, 163, .25), var(--shadow-lg); } }

/* Franja urgente */
.urgent { background: var(--ink); color: rgba(255, 255, 255, .86); }
.urgent-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.urgent p { margin: 0; }
.urgent strong { color: #fff; }

/* Secciones */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 16px; }
.answer { font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* Ofertas */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.offer p { color: var(--muted); font-size: 15px; }
.offer .btn { margin-top: auto; }
.offer h3 { margin-bottom: 10px; padding-right: 10px; }
.offer-featured { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-50), #fff 42%); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.offer .price { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--ink) !important; line-height: 1.1; margin-bottom: 12px; }
.offer .price .from, .offer .price .iva { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Tablas */
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: #fbfaf7; }
.price-table tbody th { font-weight: 600; color: var(--ink); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #fcfbf8; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table strong { color: var(--ink); font-size: 16px; }
.price-table .save { color: var(--ok); font-weight: 600; }
.price-table .act { text-align: right; white-space: nowrap; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-size: 11.5px; font-weight: 600; vertical-align: 2px; }
.link-cta { font-weight: 600; font-size: 14px; text-decoration: none; }
.link-cta::after { content: " →"; }
.fineprint { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; margin-top: 26px; }
.inline-cta p { margin: 0; }

/* Cartón */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.two-col h2 { margin-bottom: 16px; }
.stat-card { padding: 28px; text-align: center; background: linear-gradient(180deg, var(--accent-50), #fff 60%); }
.stat-num { font-family: var(--serif); font-size: 52px; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { padding: 26px; }
.steps h3 { margin: 14px 0 8px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); font-family: var(--serif); font-weight: 600; font-size: 19px; }

/* Provincias */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
.chips a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

/* Pasos tras fallecimiento */
.timeline { list-style: none; counter-reset: t; padding: 0; margin: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 26px 58px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-family: var(--serif); font-weight: 600; }
.timeline li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 18px; margin: 6px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* CTA final */
.final-cta { background: radial-gradient(800px 300px at 50% 0%, rgba(31, 79, 163, .55), transparent 70%), var(--ink); color: rgba(255, 255, 255, .82); padding: 80px 0; text-align: center; }
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-inner p { max-width: 600px; margin: 0 auto 28px; font-size: 17px; }

.disclosure { padding: 36px 0; font-size: 13.5px; color: var(--muted); }
.disclosure p { margin: 0; }

/* Pie */
.site-footer { background: #0f182b; color: rgba(255, 255, 255, .6); padding: 40px 0 110px; font-size: 13.5px; }
.footer-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-logo { filter: brightness(0) invert(1); opacity: .85; height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; }

/* Barra móvil */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.hero-form { position: static; }
	.offers, .steps { grid-template-columns: 1fr; }
	.two-col { grid-template-columns: 1fr; }
	.header-nav { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.wrap { padding: 0 16px; }
	.header-inner { height: 60px; }
	.brand img { height: 30px; }
	.site-header .btn-sm span { display: none; }
	.site-header .btn-sm { padding: 10px; }
	.hero { padding: 22px 0 48px; }
	.crumbs { margin-bottom: 18px; }
	.lead { font-size: 16.5px; }
	.hero-ctas .btn { width: 100%; }
	.lead-form, .form-ok { padding: 22px 18px; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.urgent-inner { flex-direction: column; align-items: stretch; text-align: left; }
	.section { padding: 56px 0; }
	.inline-cta { flex-direction: column; align-items: stretch; }
	.price-table th, .price-table td { padding: 12px 12px; }
	.price-table .act { display: none; }
	.price-table thead th:last-child { display: none; }
	.compare thead th:last-child { display: table-cell; }
	.price-table:not(.compare) tr > :nth-child(2) { display: none; }
	.price-table .muted { display: block; font-size: 12.5px; }
	.mobile-bar {
		display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid var(--line);
		box-shadow: 0 -6px 20px rgba(21, 33, 58, .08);
	}
	.mobile-bar .btn { padding: 13px 10px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ficha "Quiénes son" */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 6px 0; box-shadow: none; }
.facts > div { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
	.facts { grid-template-columns: 1fr; }
	.facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
