/* =========================================================
   Pie de página MainDecor (franja de presupuesto + banda azul)
   Medidas tomadas de la referencia (2172 px de ancho):
   1u = 1 px de la referencia → escala con la pantalla.
   ========================================================= */
.mdf {
	--u: calc(min(100vw, 1920px) / 2172);
	--mdf-navy: #0b1e42;
	position: relative;
	margin-top: 0;
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	isolation: isolate;
}
.mdf *, .mdf *::before, .mdf *::after { box-sizing: border-box; }
.mdf-stage { position: relative; width: min(100%, 1920px); margin-inline: auto; }

/* ---------- Franja de presupuesto ---------- */
.mdf-cta { position: relative; z-index: 2; background: #fff; }
.mdf-cta__stage { height: calc(335 * var(--u)); }
.mdf-brush, .mdf-roller { position: absolute; display: block; max-width: none; height: auto; user-select: none; pointer-events: none; }
.mdf-brush {
	left: calc(65 * var(--u)); top: calc(61 * var(--u)); width: calc(1835 * var(--u));
	filter: drop-shadow(0 calc(10 * var(--u)) calc(18 * var(--u)) rgba(92, 22, 166, .18));
}
.mdf-roller {
	left: calc(1727 * var(--u)); top: calc(40 * var(--u)); width: calc(445 * var(--u));
	z-index: 3;
}
.mdf-cta__content { position: absolute; inset: 0; z-index: 2; }
.mdf-cta__title {
	position: absolute; left: calc(395 * var(--u)); top: calc(104 * var(--u)); width: calc(1350 * var(--u));
	margin: 0; text-align: center; white-space: nowrap;
	color: #fff; font-size: calc(var(--mdf-title, 96) * var(--u)); font-weight: 700; font-style: italic;
	letter-spacing: -.012em; line-height: 1.15;
	text-shadow: 0 calc(5 * var(--u)) calc(10 * var(--u)) rgba(40, 0, 80, .45);
}
.mdf-btn {
	position: absolute; left: calc(703 * var(--u)); top: calc(234 * var(--u));
	width: calc(704 * var(--u)); height: calc(100 * var(--u));
	display: flex; align-items: center; justify-content: center; gap: calc(26 * var(--u));
	color: #fff; text-decoration: none; font-weight: 600; font-size: calc(48 * var(--u)); letter-spacing: -.01em;
	border-radius: 999px; border: calc(4 * var(--u)) solid rgba(255, 255, 255, .92);
	background: linear-gradient(180deg, #ff9d2a 0%, #f88512 48%, #ec6d00 100%);
	box-shadow: 0 calc(14 * var(--u)) calc(26 * var(--u)) rgba(186, 84, 0, .32), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, .28);
	text-shadow: 0 1px 2px rgba(150, 60, 0, .45);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, filter .35s;
}
.mdf-btn svg { width: calc(40 * var(--u)); height: calc(40 * var(--u)); flex: 0 0 auto; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.mdf-btn:hover, .mdf-btn:focus-visible { color: #fff; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 calc(20 * var(--u)) calc(32 * var(--u)) rgba(186, 84, 0, .38), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, .3); }
.mdf-btn:hover svg { transform: translateX(4px); }
.mdf-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #7b2cbf; }

/* ---------- Banda azul ---------- */
.mdf-band { position: relative; z-index: 1; color: #fff; }
.mdf--no-cta .mdf-band { margin-top: calc(20 * var(--u)); }
.mdf-wave { position: absolute; left: 0; top: 0; width: 100%; height: calc(339 * var(--u)); display: block; }
.mdf-wave__navy { fill: var(--mdf-navy); }
.mdf-bar { height: calc(339 * var(--u)); }
.mdf-bar > * { position: absolute; margin: 0; }
.mdf-logo { left: calc(99 * var(--u)); top: calc(93 * var(--u)); width: calc(420 * var(--u)); line-height: 0; z-index: 1; }
.mdf-logo img { width: 100%; height: auto; display: block; }
.mdf-sep { top: calc(132 * var(--u)); width: max(1px, calc(3 * var(--u))); height: calc(94 * var(--u)); background: rgba(255, 255, 255, .85); border-radius: 2px; }
.mdf-sep:nth-of-type(1) { left: calc(545 * var(--u)); }
.mdf-sep:nth-of-type(2) { left: calc(1056 * var(--u)); }
.mdf-item {
	top: calc(150 * var(--u)); height: calc(64 * var(--u));
	display: flex; align-items: center; gap: calc(24 * var(--u));
	font-size: calc(42 * var(--u)); line-height: 1; white-space: nowrap; color: #fff; z-index: 1;
}
.mdf-item--loc { left: calc(605 * var(--u)); font-weight: 400; }
.mdf-item--tel { left: calc(1110 * var(--u)); font-weight: 700; font-size: calc(44 * var(--u)); }
.mdf-item a, .mdf-item span { color: #fff; text-decoration: none; transition: color .25s; }
.mdf-item a:hover { color: #ffb15c; }
.mdf-ico { width: calc(48 * var(--u)); height: calc(48 * var(--u)); flex: 0 0 auto; color: #fff; }
.mdf-item--tel .mdf-ico { width: calc(46 * var(--u)); height: calc(46 * var(--u)); }
.mdf-skyline {
	right: 0; left: auto; top: calc(95 * var(--u)); width: calc(612 * var(--u)); height: auto; display: block;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
	pointer-events: none;
}
.mdf-legal {
	position: relative; background: var(--mdf-navy); margin-top: -1px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
	width: 100%; padding: 10px max(24px, calc((100% - min(100%, 1920px)) / 2 + 99 * var(--u)));
	border-top: 1px solid rgba(255, 255, 255, .07);
	font-size: 13px; color: #9aa3cc;
}
.mdf-legal p { margin: 0; }
.mdf-legal__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.mdf-legal__menu a { color: #9aa3cc; text-decoration: none; }
.mdf-legal__menu a:hover { color: #fff; }

/* ---------- Aparición suave (una sola vez) ---------- */
html.js .mdf-cta:not(.is-in) .mdf-brush { clip-path: inset(0 100% 0 0); }
html.js .mdf-cta:not(.is-in) .mdf-cta__title,
html.js .mdf-cta:not(.is-in) .mdf-btn { opacity: 0; translate: 0 14px; }
html.js .mdf-cta:not(.is-in) .mdf-roller { opacity: 0; translate: 40px -8px; rotate: 4deg; }
html.js .mdf-cta .mdf-brush { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); }
html.js .mdf-cta .mdf-cta__title { transition: opacity .8s .45s, translate .8s .45s cubic-bezier(.2, .7, .2, 1); }
html.js .mdf-cta .mdf-btn { transition: opacity .8s .6s, translate .8s .6s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, filter .35s; }
html.js .mdf-cta .mdf-roller { transition: opacity .9s .55s, translate 1.1s .55s cubic-bezier(.2, .7, .2, 1), rotate 1.1s .55s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) and (min-width: 821px) {
	.mdf-item { font-size: calc(46 * var(--u)); }
}

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
	.mdf { --u: 1px; }
	.mdf-cta { overflow: hidden; }
	.mdf-cta__stage { height: auto; padding: 34px 16px 22px; }
	.mdf-brush { left: -4%; width: 108%; top: 26px; height: 150px; object-fit: fill; filter: none; }
	.mdf-cta__content { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; }
	.mdf-cta__title {
		position: static; width: auto; max-width: 300px; white-space: normal; text-wrap: balance;
		font-size: clamp(26px, 7.2vw, 34px); line-height: 1.12; margin: 18px 0 0; padding: 0 8px; min-height: 84px;
		display: flex; align-items: center; justify-content: center;
		text-shadow: 0 3px 8px rgba(40, 0, 80, .45);
	}
	.mdf-btn {
		position: relative; left: auto; top: auto; width: auto; height: auto; margin-top: 30px;
		padding: 15px 26px; font-size: 18px; gap: 10px; border-width: 3px;
		box-shadow: 0 10px 22px rgba(186, 84, 0, .32), inset 0 2px 0 rgba(255, 255, 255, .28);
	}
	.mdf-btn svg { width: 20px; height: 20px; }
	.mdf-roller { left: auto; right: -22px; top: 104px; width: 104px; }

	.mdf-wave { height: 44px; }
	.mdf-bar { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 62px 20px 0; background: linear-gradient(var(--mdf-navy), var(--mdf-navy)) 0 44px / 100% 100% no-repeat; }
	.mdf-bar > * { position: static; }
	.mdf-logo { width: 220px; margin-bottom: 4px; }
	.mdf-sep { display: none; }
	.mdf-item, .mdf-item--tel { height: auto; font-size: 19px; gap: 10px; }
	.mdf-ico, .mdf-item--tel .mdf-ico { width: 22px; height: 22px; }
	.mdf-item--tel { font-size: 20px; }
	.mdf-skyline { width: 100%; max-width: 420px; margin-top: 4px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 100%); }
	.mdf-legal { flex-direction: column; align-items: center; text-align: center; padding: 12px 20px 84px; }
}

@media (prefers-reduced-motion: reduce) {
	html.js .mdf-cta:not(.is-in) .mdf-brush { clip-path: none; }
	html.js .mdf-cta:not(.is-in) .mdf-cta__title,
	html.js .mdf-cta:not(.is-in) .mdf-btn,
	html.js .mdf-cta:not(.is-in) .mdf-roller { opacity: 1; translate: none; rotate: none; }
	.mdf-btn, .mdf-btn svg { transition: none; }
}
