/* ==========================================================================
   Óptimo Futuro — estilos
   Azul de marca (logo) + amarillo de las publicaciones como acento.
   ========================================================================== */

:root {
	--navy-950: #000a3d;
	--navy-900: #00105a;
	--navy: #00146d;          /* azul del logo */
	--navy-700: #13288a;
	--blue: #2552d9;
	--blue-300: #8fb0ff;
	--sky-50: #f3f6ff;
	--sky-100: #e6edff;
	--sky-200: #cfdbff;
	--yellow: #ffcf2e;
	--yellow-600: #f0b800;
	--yellow-50: #fff8dc;
	--green: #1aa260;
	--wa: #1fae5b;
	--wa-700: #15924b;
	--red: #d6303a;
	--ink: #0d1433;
	--ink-2: #3b4466;
	--ink-3: #6b7394;
	--line: #dfe5f5;
	--paper: #ffffff;
	--bg: #fbfcff;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-script: "Caveat", "Segoe Script", cursive;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 1px 2px rgb(0 16 90 / .06), 0 2px 8px rgb(0 16 90 / .05);
	--shadow: 0 2px 4px rgb(0 16 90 / .05), 0 12px 32px rgb(0 16 90 / .09);
	--shadow-lg: 0 24px 60px rgb(0 10 61 / .22);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(56px, 7.5vw, 100px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--navy-900); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy-950); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.of-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--yellow); color: var(--navy-950); font-weight: 700; border-radius: 8px; }
.of-skip:focus { top: 12px; }

.of-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.of-container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.of-center { text-align: center; margin-top: 40px; }

.of-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipografía ---------- */
.of-h2 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(30px, 4.2vw, 50px);
	letter-spacing: -0.02em;
	line-height: 1.08;
	font-variation-settings: "opsz" 100;
}
.of-h2 em, .of-hero__title em { font-style: italic; color: var(--blue); }
.of-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em; line-height: 1.2; }
.of-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.of-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.of-eyebrow__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sky-100); color: var(--navy); }
.of-eyebrow__icon .of-icon { width: 19px; height: 19px; }

.of-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.of-link .of-icon { transition: transform .2s; }
.of-link:hover .of-icon { transform: translateX(3px); }
.of-link--muted { color: var(--ink-3); font-weight: 600; }

/* ---------- Botones ---------- */
.of-btn {
	--bg: var(--navy); --fg: #fff; --bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px;
	border: 2px solid var(--bd); border-radius: 999px;
	background: var(--bg); color: var(--fg);
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.of-btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 8px 20px rgb(0 16 90 / .18); }
.of-btn:active { transform: translateY(0); }
.of-btn .of-icon { width: 20px; height: 20px; }
.of-btn--primary { --bg: var(--navy); }
.of-btn--primary:hover { --bg: var(--navy-700); }
.of-btn--accent { --bg: var(--yellow); --fg: var(--navy-950); }
.of-btn--accent:hover { --bg: #ffd84f; }
.of-btn--wa { --bg: var(--wa); }
.of-btn--wa:hover { --bg: var(--wa-700); }
.of-btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.of-btn--ghost:hover { --bd: var(--navy); box-shadow: none; }
.of-btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .45); }
.of-btn--outline-light:hover { --bd: #fff; --bg: rgb(255 255 255 / .08); }
.of-btn--sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.of-btn--lg { min-height: 58px; padding: 14px 30px; font-size: 17px; }
.of-btn--block { width: 100%; }

/* ---------- Badges / pills ---------- */
.of-badge {
	display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
	background: rgb(255 255 255 / .94); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.2;
	box-shadow: var(--shadow-sm);
}
.of-badge--apartada { background: var(--yellow); color: var(--navy-950); }
.of-badge--vendida { background: var(--red); color: #fff; }
.of-badge--accent { background: var(--yellow); color: var(--navy-950); box-shadow: none; font-size: 12px; }
.of-badge--soft { background: var(--sky-100); box-shadow: none; }
.of-badge--disponible-solid { background: #e3f6ec; color: #0d7a44; box-shadow: none; }
.of-badge--apartada-solid { background: var(--yellow-50); color: #8a6400; box-shadow: none; }
.of-badge--vendida-solid { background: #fde7e8; color: #b0222b; box-shadow: none; }

.of-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.of-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-weight: 600; font-size: 15px; }
.of-pills .of-icon { color: var(--yellow); width: 18px; height: 18px; }
.of-pills--dark { margin: 16px 0 0; }
.of-pills--dark li { background: var(--sky-50); border-color: var(--line); color: var(--navy); }
.of-pills--dark .of-icon { color: var(--green); }

/* ---------- Header ---------- */
.of-header {
	position: sticky; top: 0; z-index: 100;
	background: rgb(255 255 255 / .9);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .2s, border-color .2s;
}
.admin-bar .of-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .of-header { top: 46px; } }
.of-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(0 16 90 / .06); }
.of-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.of-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.of-brand__mark { width: 52px; height: auto; border-radius: 6px; }
.of-brand__word { width: 128px; height: auto; }

.of-nav { display: flex; align-items: center; gap: 28px; }
.of-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.of-nav__item { position: relative; }
.of-nav__link {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 14px; border: 0; border-radius: 10px; background: none;
	color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
}
.of-nav__link:hover, .of-nav__link[aria-current="page"] { color: var(--navy); background: var(--sky-50); }
.of-nav__caret { width: 16px; height: 16px; transition: transform .2s; }
.of-nav__item.is-open .of-nav__caret { transform: rotate(180deg); }
.of-nav__sub {
	list-style: none; position: absolute; top: calc(100% + 8px); left: -12px; width: 330px; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.of-nav__item.is-open .of-nav__sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) {
	.of-nav__item--has-sub:hover .of-nav__sub { opacity: 1; visibility: visible; transform: none; }
	.of-nav__item--has-sub:hover .of-nav__caret { transform: rotate(180deg); }
	.of-nav__item--has-sub::after { content: ""; position: absolute; inset: 100% 0 -10px; }
}
.of-nav__sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.of-nav__sub a:hover { background: var(--sky-50); color: var(--navy); }
.of-nav__sub-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--sky-100); color: var(--navy); flex: none; }
.of-nav__sub-icon .of-icon { width: 18px; height: 18px; }
.of-nav__cta { display: flex; gap: 10px; }

.of-burger { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: space-between; }
.of-burger span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .2s; }
.menu-open .of-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .of-burger span:nth-child(2) { opacity: 0; }
.menu-open .of-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1180px) {
	.of-nav__cta .of-btn--ghost { display: none; }
}
@media (max-width: 1080px) {
	.of-burger { display: flex; }
	/* backdrop-filter crea un contenedor para position:fixed; en móvil el header es sólido. */
	.of-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.of-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
		flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
		padding: 16px var(--gutter) 28px; background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .of-nav { top: calc(var(--header-h) + 46px); }
	.menu-open .of-nav { opacity: 1; visibility: visible; transform: none; }
	.menu-open { overflow: hidden; }
	.of-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.of-nav__item { border-bottom: 1px solid var(--line); }
	.of-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; border-radius: 0; }
	.of-nav__link:hover { background: none; }
	.of-nav__sub { position: static; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
	.of-nav__item.is-open .of-nav__sub { display: block; }
	.of-nav__cta { flex-direction: column; }
	.of-nav__cta .of-btn { min-height: 54px; font-size: 17px; }
	.of-nav__cta .of-btn--ghost { display: inline-flex; }
}
@media (max-width: 420px) {
	.of-brand__word { width: 108px; }
	.of-brand__mark { width: 44px; }
}

/* ---------- Hero ---------- */
.of-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgb(37 82 217 / .55), transparent 60%),
		radial-gradient(800px 500px at -10% 110%, rgb(37 82 217 / .35), transparent 60%),
		var(--navy-900);
	color: #fff;
	padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.of-hero__bg { position: absolute; inset: 0; z-index: -1; color: #fff; overflow: hidden; }
.of-hero__bg::before {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 75%);
}
.of-hero__mark {
	position: absolute; right: -4%; top: 50%; width: clamp(420px, 46vw, 720px); height: auto;
	transform: translateY(-50%) rotate(-8deg); opacity: .11;
}
.of-hero__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; }
.of-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.of-hero__kicker {
	display: inline-block; margin-bottom: 24px; padding: 8px 14px; border-radius: 999px;
	background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
	font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--sky-200);
}
.of-hero__title {
	color: #fff; font-family: var(--font-display); font-weight: 600;
	font-size: clamp(46px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.03em;
	font-variation-settings: "opsz" 144;
}
.of-hero__script {
	display: block; margin-bottom: 6px;
	font-family: var(--font-script); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: 0; line-height: 1.1;
	color: var(--yellow);
}
.of-hero__lead { margin: 26px 0 34px; max-width: 54ch; font-size: clamp(17px, 1.7vw, 20px); color: #d6dffb; }
.of-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.of-hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; color: #c4d0f7; font-size: 15px; font-weight: 500; }
.of-hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.of-hero__proof .of-icon { color: var(--yellow); width: 18px; height: 18px; }

.of-picker {
	background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg);
	position: relative;
}
.of-picker__title { margin: 4px 8px 12px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--navy-900); }
.of-picker__short { display: none; }
.of-picker ul { list-style: none; display: grid; gap: 4px; }
.of-picker a {
	display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 14px;
	color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .15s;
}
.of-picker a:hover { background: var(--sky-50); color: var(--navy); }
.of-picker__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-100); color: var(--navy); flex: none; transition: background-color .15s, color .15s; }
.of-picker a:hover .of-picker__icon { background: var(--navy); color: var(--yellow); }
.of-picker__label { flex: 1; }
.of-picker__chev { color: var(--ink-3); width: 18px; height: 18px; transition: transform .15s; }
.of-picker a:hover .of-picker__chev { transform: translateX(3px); color: var(--navy); }

@media (max-width: 900px) {
	.of-hero__grid { grid-template-columns: 1fr; }
	.of-hero__actions .of-btn { flex: 1 1 220px; }
	.of-hero__mark { right: -30%; top: 22%; width: 90vw; opacity: .05; }
}
@media (max-width: 640px) {
	.of-hero { padding-bottom: 72px; }
	.of-picker { padding: 18px 16px 16px; }
	.of-picker__title { font-size: 19px; margin: 0 2px 10px; }
	.of-picker ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.of-picker a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 1.25; }
	.of-picker a:hover { background: #fff; }
	.of-picker__icon { width: 36px; height: 36px; }
	.of-picker__full { display: none; }
	.of-picker__short { display: block; }
	.of-picker__chev { display: none; }
}

/* ---------- Franja de confianza ---------- */
.of-trust { position: relative; z-index: 2; margin-top: -44px; }
.of-trust__list {
	list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.of-trust__list li { padding: 26px 26px; display: grid; gap: 4px; align-content: start; }
.of-trust__list li + li { border-left: 1px solid var(--line); }
.of-trust__list strong { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.of-trust__list span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
	.of-trust__list { grid-template-columns: repeat(2, 1fr); }
	.of-trust__list li:nth-child(3) { border-left: 0; }
	.of-trust__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
	.of-trust__list li { padding: 20px 18px; }
}

/* ---------- Secciones ---------- */
.of-section { padding: var(--section-y) 0; position: relative; }
.of-section--tint { background: var(--sky-50); }
.of-section--navy { background: var(--navy-900); color: #dbe3fb; overflow: hidden; }
.of-section--navy .of-h2, .of-section--navy .of-h3 { color: #fff; }
.of-section--navy .of-h2 em { color: var(--yellow); }
.of-section--navy .of-lead { color: #c4d0f7; }
.of-section--navy .of-eyebrow { color: var(--yellow); }
.of-section--navy .of-eyebrow__icon { background: rgb(255 255 255 / .1); color: var(--yellow); }
.of-section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

.of-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.of-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .of-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .of-grid--3 { grid-template-columns: 1fr; } }

.of-two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.of-two-col--center { align-items: center; }
.of-two-col .of-section__head { margin-bottom: 32px; }
@media (max-width: 900px) { .of-two-col { grid-template-columns: 1fr; } }

/* Listas con check */
.of-checklist { list-style: none; display: grid; gap: 12px; margin: 0 0 28px; }
.of-checklist li { position: relative; padding-left: 34px; line-height: 1.5; }
.of-checklist li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300146d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.of-checklist--light li::before { background-color: var(--yellow); }
.of-checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
@media (max-width: 420px) { .of-checklist--cols { grid-template-columns: 1fr; } }

/* Paneles */
.of-split-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .of-split-cards { grid-template-columns: 1fr; } }
.of-panel { position: relative; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.of-panel .of-h3 { margin-bottom: 22px; max-width: 24ch; }
.of-panel .of-btn { margin-top: auto; }
.of-panel__tag { margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.of-panel--navy { background: var(--navy); color: #dbe3fb; }
.of-panel--navy .of-h3 { color: #fff; }
.of-panel--navy .of-panel__tag { color: var(--yellow); }
.of-panel--navy::after {
	content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%;
	border: 40px solid rgb(255 255 255 / .05); pointer-events: none;
}
.of-panel--light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.of-panel--outline { background: #fff; border: 1px solid var(--line); }
.of-panel--accent { background: var(--yellow-50); border: 1px solid #f5e3a1; }
.of-panel p { color: var(--ink-2); }
.of-panel--navy p { color: #dbe3fb; }
.of-panel__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; background: var(--navy); color: var(--yellow); }
.of-panel__icon .of-icon { width: 28px; height: 28px; }
.of-panel--accent .of-panel__icon { background: var(--yellow); color: var(--navy-950); }
.of-panel .of-h3 + p { margin-top: -8px; }
.of-panel__quote { margin: 4px 0 28px; padding-left: 16px; border-left: 3px solid var(--yellow-600); font-family: var(--font-script); font-size: 24px; line-height: 1.25; color: var(--navy) !important; }

/* Pasos numerados (comprar) */
.of-steps { list-style: none; counter-reset: s; display: grid; gap: 16px; margin: 0 0 30px; }
.of-steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--ink-2); line-height: 1.5; }
.of-steps li::before {
	content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px;
}
.of-steps strong { color: var(--ink); }

/* Destacadas */
.of-featured { margin-top: clamp(40px, 5vw, 60px); }
.of-featured__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Lista con íconos (pensión) */
.of-feature-list { list-style: none; display: grid; gap: 22px; margin-bottom: 34px; }
.of-feature-list li { display: flex; gap: 16px; }
.of-feature-list__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); flex: none; }
.of-feature-list strong { display: block; font-size: 18px; color: var(--navy-900); margin-bottom: 2px; }
.of-feature-list p { margin: 0; color: var(--ink-2); }

.of-check-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--yellow); }
.of-check-card__kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.of-check-card .of-h3 { margin-bottom: 12px; }
.of-check-card__intro { color: var(--ink-2); }
.of-check-card .of-checklist { margin-bottom: 22px; }
.of-check-card__note { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--sky-50); color: var(--navy); font-weight: 600; font-size: 15px; }

/* Banda desempleo */
.of-band {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
	padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--sky-100), #fff 70%); border: 1px solid var(--line);
}
.of-band .of-section__head { margin-bottom: 28px; }
.of-band__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.of-numbered { list-style: none; counter-reset: n; display: grid; gap: 10px; margin-bottom: 22px; }
.of-numbered li { counter-increment: n; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; line-height: 1.4; }
.of-numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-display); font-size: 22px; color: var(--blue); flex: none; width: 34px; }
.of-band__aside { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--ink-2); font-size: 15px; }
.of-band__aside .of-icon { color: var(--navy); }
@media (max-width: 900px) { .of-band { grid-template-columns: 1fr; } }

/* Tiles Afore */
.of-tile { position: relative; padding: 32px 28px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.of-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.of-tile__num { display: block; margin-bottom: 18px; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--sky-200); font-weight: 600; }
.of-tile__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.of-tile p { margin: 0; color: var(--ink-2); }

/* Créditos (navy) */
.of-section--navy::before {
	content: ""; position: absolute; left: -10%; top: -40%; width: 70%; height: 180%;
	background: radial-gradient(closest-side, rgb(37 82 217 / .45), transparent); pointer-events: none;
}
.of-section--navy .of-container { position: relative; }
.of-uses { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.of-uses__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.of-uses ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.of-uses li { display: grid; gap: 12px; padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .07); color: #fff; font-weight: 600; line-height: 1.35; }
.of-uses li .of-icon { width: 28px; height: 28px; color: var(--yellow); }
@media (max-width: 420px) { .of-uses ul { grid-template-columns: 1fr; } .of-uses li { grid-template-columns: auto 1fr; align-items: center; } }

/* Consultoría */
.of-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 960px) { .of-columns { grid-template-columns: 1fr 1fr; } .of-col-card--navy { grid-column: 1 / -1; } }
@media (max-width: 620px) { .of-columns { grid-template-columns: 1fr; } }
.of-col-card { padding: clamp(26px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.of-col-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.of-col-card .of-checklist { margin: 0; }
.of-col-card--navy { background: var(--navy); border-color: var(--navy); color: #dbe3fb; display: flex; flex-direction: column; align-items: flex-start; }
.of-col-card--navy .of-col-card__title { color: #fff; font-size: 24px; margin-bottom: 12px; }
.of-col-card--navy .of-panel__tag { color: var(--yellow); }
.of-col-card--navy p { margin-bottom: 26px; }
.of-col-card--navy .of-btn { margin-top: auto; }
.of-dot { width: 12px; height: 12px; border-radius: 50%; }
.of-dot--green { background: var(--green); }
.of-dot--red { background: var(--red); }

/* Así trabajamos */
.of-process { background: #fff; }
.of-process__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.of-process__head .of-eyebrow { justify-content: center; }
.of-process__steps { list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); position: relative; }
.of-process__steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; border-top: 2px dashed var(--sky-200); }
.of-process__steps li { position: relative; padding: 0 16px; text-align: center; }
.of-process__num {
	display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
	background: var(--navy); color: var(--yellow); font-family: var(--font-display); font-size: 30px; font-weight: 600;
	box-shadow: 0 0 0 10px #fff, 0 10px 24px rgb(0 16 90 / .18);
}
.of-process__steps h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.of-process__steps p { margin: 0; color: var(--ink-2); max-width: 32ch; margin-inline: auto; }
@media (max-width: 760px) {
	.of-process__steps { grid-template-columns: 1fr; gap: 28px; }
	.of-process__steps::before { left: 33px; right: auto; top: 40px; bottom: 40px; border-top: 0; border-left: 2px dashed var(--sky-200); }
	.of-process__steps li { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 0; }
	.of-process__num { grid-row: span 2; margin: 0; }
	.of-process__steps p { margin-inline: 0; }
}

/* 6. Aparición suave */
.js-reveal .of-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .of-reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .of-reveal:nth-child(2) { transition-delay: .08s; }
.js-reveal .of-reveal:nth-child(3) { transition-delay: .16s; }
.js-reveal .of-reveal:nth-child(4) { transition-delay: .24s; }

/* Testimonios */
.of-section--quotes { padding: clamp(56px, 7vw, 88px) 0; background: #fff; border-block: 1px solid var(--line); }
.of-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .of-quotes { grid-template-columns: 1fr; } }
.of-quote { margin: 0; }
.of-quote blockquote { margin: 0 0 16px; position: relative; padding-top: 34px; }
.of-quote blockquote::before { content: "“"; position: absolute; top: -18px; left: -4px; font-family: var(--font-display); font-size: 88px; line-height: 1; color: var(--yellow); }
.of-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.1vw, 25px); line-height: 1.4; color: var(--navy-900); font-weight: 500; }
.of-quote figcaption { color: var(--ink-3); font-weight: 600; font-size: 15px; }

/* ---------- Contacto ---------- */
.of-contact { background: linear-gradient(180deg, var(--sky-50), var(--bg)); }
.of-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .of-contact__grid { grid-template-columns: 1fr; } }
.of-contact__intro .of-h2 em { display: block; }
.of-contact__direct { display: grid; gap: 12px; margin-top: 32px; max-width: 420px; }
.of-direct { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--navy-900); font-weight: 700; font-size: 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.of-direct:hover { border-color: var(--navy); transform: translateY(-1px); color: var(--navy-900); }
.of-direct small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.of-direct__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; flex: none; }
.of-direct__icon--wa { background: var(--wa); }
.of-contact__form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }

/* Formulario */
.of-form { display: grid; gap: 16px; }
.of-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .of-form__row { grid-template-columns: 1fr; } }
.of-form--compact .of-form__row { grid-template-columns: 1fr; }
.of-input { display: grid; gap: 6px; }
.of-input > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.of-input input, .of-input select, .of-input textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
	font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.of-input textarea { resize: vertical; min-height: 96px; }
.of-input select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300146d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; cursor: pointer; }
.of-input input:focus, .of-input select:focus, .of-input textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(37 82 217 / .14); }
.of-form__fine { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.of-form__notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.of-form__notice p { margin: 0; }
.of-form__notice--ok { background: #e3f6ec; color: #0d5c35; }
.of-form__notice--ok .of-icon { color: var(--green); margin-top: 2px; }
.of-form__notice--error { background: #fde7e8; color: #8f1c23; }
.of-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sucursales */
.of-branches { margin-top: clamp(56px, 7vw, 88px); }
.of-branches__head { display: flex; align-items: end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.of-branches__head p { margin: 0; color: var(--ink-2); }
.of-branches__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .of-branches__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .of-branches__list { grid-template-columns: 1fr; } }
.of-branch { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.of-branch--main { border-color: var(--navy); box-shadow: inset 0 4px 0 var(--yellow); }
.of-branch__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }
.of-branch__addr { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
.of-branch__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.of-branch__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.of-branch__links a:hover { text-decoration: underline; }
.of-branch__links .of-icon { width: 17px; height: 17px; color: var(--blue); }

/* ---------- Tarjeta de propiedad ---------- */
.of-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.of-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.of-card__media { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 3; background: var(--sky-100); overflow: hidden; }
.of-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.of-card:hover .of-card__media img { transform: scale(1.04); }
.of-card__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.of-card__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(0 10 61 / .7); color: #fff; font-size: 12px; font-weight: 700; }
.of-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.of-card__price { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.of-card__title { font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.of-card__title a { color: inherit; text-decoration: none; }
.of-card__title a::after { content: ""; position: absolute; inset: 0; }
.of-card { position: relative; }
.of-card__title a:hover { color: var(--navy); }
.of-card__place { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--ink-3); font-size: 14px; }
.of-card__place .of-icon { width: 16px; height: 16px; margin-top: 3px; }
.of-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.of-specs li { display: inline-flex; align-items: center; gap: 6px; }
.of-specs .of-icon { width: 18px; height: 18px; color: var(--blue); }
.of-card--vendida .of-card__media img, .of-card--vendida .of-placeholder { filter: grayscale(.85); opacity: .75; }
.of-card--vendida .of-card__price { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }

.of-placeholder {
	width: 100%; height: 100%; min-height: 200px; display: grid; place-content: center; justify-items: center; gap: 10px;
	background:
		radial-gradient(circle at 80% 20%, rgb(255 207 46 / .25), transparent 40%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
	color: rgb(255 255 255 / .85); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.of-placeholder .of-icon { width: 48px; height: 48px; color: var(--yellow); stroke-width: 1.4; }
.of-placeholder--lg { min-height: 360px; border-radius: var(--radius-lg); }

/* ---------- Encabezado de páginas internas ---------- */
.of-page-hero { background: var(--navy-900); color: #dbe3fb; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.of-page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgb(255 255 255 / .04); }
.of-page-hero--compact { padding-bottom: clamp(40px, 5vw, 64px); }
.of-page-hero__title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.02em; max-width: 18ch; }
.of-page-hero__lead { margin: 18px 0 0; max-width: 60ch; font-size: clamp(16px, 1.6vw, 19px); }
.of-page-hero .of-crumbs { color: #a9b8ea; }
.of-page-hero .of-crumbs a { color: #dbe3fb; }

.of-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.of-crumbs a { color: var(--ink-2); text-decoration: none; }
.of-crumbs a:hover { text-decoration: underline; }

/* ---------- Catálogo ---------- */
.of-catalog { padding: 0 0 var(--section-y); }
.of-filters {
	position: relative; z-index: 2; margin-top: -36px;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 14px; align-items: end;
	padding: 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
}
.of-filters .of-input input, .of-filters .of-input select { min-height: 48px; }
.of-filters__actions { display: flex; align-items: center; gap: 14px; }
.of-filters__actions .of-btn { min-height: 48px; }
@media (max-width: 1080px) { .of-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .of-filters__actions { grid-column: span 3; } }
@media (max-width: 620px) { .of-filters { grid-template-columns: 1fr 1fr; } .of-filters__actions { grid-column: 1 / -1; } .of-filters__actions .of-btn { flex: 1; } }
.of-catalog__count { margin: 28px 0 20px; color: var(--ink-2); font-weight: 600; }

.of-pagination { margin-top: 44px; }
.of-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.of-pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; }
.of-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.of-pagination a.page-numbers:hover { border-color: var(--navy); }
.of-pagination .of-icon { width: 18px; height: 18px; }

.of-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px dashed var(--sky-200); }
.of-empty > .of-icon { width: 48px; height: 48px; color: var(--blue); }
.of-empty p { max-width: 50ch; color: var(--ink-2); }

.of-cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 88px); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--navy); color: #dbe3fb; }
.of-cta-strip .of-h3 { color: #fff; margin-bottom: 6px; }
.of-cta-strip p { margin: 0; }

/* ---------- Ficha de propiedad ---------- */
.of-property { padding: 28px 0 var(--section-y); }
.of-property__head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.of-property__badges { display: flex; gap: 8px; margin-bottom: 12px; }
.of-property__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.02em; max-width: 24ch; }
.of-property__addr { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--ink-2); }
.of-property__addr .of-icon { color: var(--blue); margin-top: 3px; }
.of-property__price { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); white-space: nowrap; }

.of-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(300px, 46vw, 540px); border-radius: var(--radius-lg); overflow: hidden; }
.of-gallery__item { position: relative; padding: 0; border: 0; background: var(--sky-100); cursor: zoom-in; overflow: hidden; }
.of-gallery__item:first-child { grid-row: span 2; }
.of-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.of-gallery__item:hover img { transform: scale(1.03); }
.of-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 10 61 / .55); color: #fff; font-size: 28px; font-weight: 800; }
.of-gallery--single { display: block; }
.of-gallery--single .of-gallery__item { width: 100%; height: 100%; }
.of-gallery:has(.of-gallery__item:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.of-gallery:has(.of-gallery__item:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
.of-gallery:has(.of-gallery__item:nth-child(4):last-child) .of-gallery__item:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) {
	.of-gallery { display: flex; height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
	.of-gallery__item { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: var(--radius); }
	.of-gallery--single .of-gallery__item { flex-basis: 100%; }
}

.of-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgb(0 6 36 / .96); color: #fff; }
.of-lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.of-lightbox::backdrop { background: rgb(0 6 36 / .9); }
.of-lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 8px 24px; height: 100%; align-content: center; }
.of-lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; }
.of-lightbox__stage figcaption { font-size: 14px; color: #a9b8ea; }
.of-lightbox__nav, .of-lightbox__close { display: grid; place-items: center; width: 52px; height: 52px; margin: 12px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; }
.of-lightbox__nav:hover, .of-lightbox__close:hover { background: rgb(255 255 255 / .2); }
.of-lightbox__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
@media (max-width: 620px) { .of-lightbox__nav { position: absolute; bottom: 12px; } .of-lightbox__nav--prev { left: 12px; } .of-lightbox__nav--next { right: 12px; } .of-lightbox[open] { grid-template-columns: 1fr; } }

.of-property__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); margin-top: clamp(28px, 4vw, 44px); align-items: start; }
@media (max-width: 960px) { .of-property__layout { grid-template-columns: 1fr; } }
.of-spec-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 36px; }
.of-spec-grid li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.of-spec-grid .of-icon { width: 28px; height: 28px; color: var(--blue); }
.of-spec-grid span { display: grid; font-size: 14px; color: var(--ink-3); line-height: 1.3; }
.of-spec-grid strong { font-size: 20px; color: var(--navy-900); }
.of-prose { color: var(--ink-2); }
.of-prose .of-h3 { margin-bottom: 14px; }
.of-prose p, .of-prose ul, .of-prose ol { margin-bottom: 1em; }
.of-prose ul, .of-prose ol { padding-left: 1.3em; }
.of-prose h2, .of-prose h3 { margin: 1.4em 0 .5em; }
.of-property__block { margin-top: 40px; }
.of-property__block .of-h3 { margin-bottom: 14px; }
.of-map { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky-100); border: 1px solid var(--line); }
.of-map iframe { width: 100%; height: 100%; border: 0; }
.of-property__block .of-link { margin-top: 12px; }

.of-property__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-bar .of-property__aside { top: calc(var(--header-h) + 52px); }
.of-contact-card { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--navy); }
.of-contact-card__price { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--navy); }
.of-contact-card__note { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.of-contact-card__more { border-top: 1px solid var(--line); padding-top: 12px; }
.of-contact-card__more summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 4px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.of-contact-card__more summary::-webkit-details-marker { display: none; }
.of-contact-card__more summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
.of-contact-card__more[open] summary::after { content: "–"; }
.of-contact-card__more .of-form { margin-top: 12px; }
.of-contact-card__trust { list-style: none; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.of-contact-card__trust li { display: flex; gap: 8px; align-items: center; }
.of-contact-card__trust .of-icon { color: var(--green); width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.of-footer { position: relative; background: var(--navy-950); color: #b6c3ee; padding: clamp(56px, 7vw, 88px) 0 0; margin-top: 60px; }
.of-wave--top { position: absolute; left: 0; right: 0; top: -59px; height: 60px; color: var(--navy-950); line-height: 0; }
.of-wave--top svg { width: 100%; height: 100%; }
.of-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .of-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .of-footer__grid { grid-template-columns: 1fr; } }
.of-footer__brand { display: grid; gap: 12px; justify-items: start; }
.of-footer__brand img:first-child { width: 84px; }
.of-footer__tagline { width: 200px; opacity: .85; }
.of-footer__brand p { margin: 8px 0 0; font-size: 15px; max-width: 36ch; }
.of-footer__title { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.of-footer__links, .of-footer__contact { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.of-footer a { color: #dbe3fb; text-decoration: none; }
.of-footer a:hover { color: #fff; text-decoration: underline; }
.of-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.of-footer__contact .of-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-300); }
.of-social { list-style: none; display: flex; gap: 10px; margin-top: 22px; }
.of-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgb(255 255 255 / .07); }
.of-social a:hover { background: var(--yellow); color: var(--navy-950); text-decoration: none; }
.of-social .of-icon { width: 20px; height: 20px; }
.of-footer__bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 56px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 13px; color: #8392c7; }
.of-footer__bottom p { margin: 0; }

/* Botón flotante de WhatsApp */
.of-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center;
	width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
	box-shadow: 0 10px 28px rgb(31 174 91 / .45); transition: transform .2s;
}
.of-wa-float:hover { transform: scale(1.06); color: #fff; }
.of-wa-float .of-icon { width: 30px; height: 30px; }
.menu-open .of-wa-float { display: none; }


/* ==========================================================================
   Portada v2: nosotros, fotos administrables, Modalidad 40
   ========================================================================== */

/* Fotos (Apariencia → Personalizar → Imágenes de la portada) */
.of-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--sky-100); }
.of-photo img { width: 100%; height: 100%; object-fit: cover; }
.of-photo--tall { aspect-ratio: 4 / 5; }
.of-photo--empty { display: grid; place-items: center; min-height: 220px; border: 2px dashed var(--sky-200); background: var(--sky-50); }
.of-photo--empty a { display: grid; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.of-photo--empty .of-icon { width: 28px; height: 28px; color: var(--blue); }

/* Hero con foto de fondo */
.of-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; mix-blend-mode: luminosity; }

/* Nosotros */
.of-about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.of-about__media { position: relative; padding-bottom: 48px; }
.of-about__main { box-shadow: var(--shadow); }
.of-about__inset { position: absolute; right: -24px; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.of-about__badge {
	position: absolute; left: -14px; top: 28px; display: grid; margin: 0; padding: 14px 18px; border-radius: 16px;
	background: var(--yellow); color: var(--navy-950); line-height: 1.1; box-shadow: var(--shadow);
}
.of-about__badge strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.of-about__badge span { font-size: 13px; font-weight: 700; }
.of-about .of-section__head { margin-bottom: 32px; }
@media (max-width: 900px) {
	.of-about { grid-template-columns: 1fr; }
	.of-about__main { aspect-ratio: 4 / 3; }
	.of-about__inset { right: 12px; width: 40%; }
	.of-about__badge { left: 12px; }
}

.of-timeline { list-style: none; display: grid; gap: 22px; }
.of-timeline li { display: grid; grid-template-columns: 86px 1fr; gap: 18px; }
.of-timeline li + li { padding-top: 22px; border-top: 1px solid var(--line); }
.of-timeline__year { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--blue); }
.of-timeline strong { display: block; margin-bottom: 2px; font-size: 18px; color: var(--navy-900); }
.of-timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 420px) { .of-timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Misión y visión */
.of-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.of-mv__card { padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--yellow); }
.of-mv__text { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.4; color: var(--navy-900); }
.of-mv__card p:last-child { margin: 0; color: var(--ink-2); }
.of-mv__card--navy { background: var(--navy); border-color: var(--navy); border-top-color: var(--yellow); }
.of-mv__card--navy .of-panel__tag { color: var(--yellow); }
.of-mv__card--navy .of-mv__text { color: #fff; }
.of-mv__card--navy p:last-child { color: #c4d0f7; }
@media (max-width: 860px) { .of-mv { grid-template-columns: 1fr; } }

/* Lista de servicios */
.of-services { margin-top: clamp(40px, 5vw, 64px); }
.of-services .of-h3 { margin-bottom: 20px; }
.of-services__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.of-services__list a {
	display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 14px;
	background: var(--sky-50); color: var(--ink); font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .15s, color .15s;
}
.of-services__list a:hover { background: var(--navy); color: #fff; }
.of-services__list .of-icon { width: 24px; height: 24px; color: var(--blue); }
.of-services__list a:hover .of-icon { color: var(--yellow); }

/* Paneles con foto */
.of-panel--media { padding: 0; }
.of-panel__photo { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.of-panel__photo.of-photo--empty { min-height: 0; border-width: 0 0 2px; }
.of-panel__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; width: 100%; padding: clamp(28px, 4vw, 44px); }

/* Bloque destacado con foto (compra de deuda) */
.of-feature {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
	margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.of-feature__media { height: 100%; min-height: 280px; }
.of-feature__copy .of-h3 { margin-bottom: 12px; }
.of-feature__copy p { color: var(--ink-2); }
.of-feature__copy .of-checklist { margin-top: 12px; }
@media (max-width: 860px) { .of-feature { grid-template-columns: 1fr; } .of-feature__media { aspect-ratio: 16 / 10; min-height: 0; } }

/* Foto + texto (Modalidad 40) */
.of-media-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.of-media-split--reverse .of-media-split__media { order: 2; }
.of-media-split .of-section__head { margin-bottom: 28px; }
.of-media-split__media { position: relative; }
.of-media-split__note {
	position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; margin: 0;
	padding: 12px 16px; border-radius: 14px; background: rgb(255 255 255 / .94); color: var(--navy); font-size: 15px; font-weight: 700; box-shadow: var(--shadow);
}
.of-check-card .of-btn { margin-top: 4px; }
@media (max-width: 900px) {
	.of-media-split { grid-template-columns: 1fr; }
	.of-media-split--reverse .of-media-split__media { order: 0; }
	.of-media-split .of-photo--tall { aspect-ratio: 4 / 3; }
}

/* Sucursales: encargada y fotos de oficinas */
.of-branch__lead { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 14px; color: var(--ink-3); }
.of-branch__lead .of-icon { width: 16px; height: 16px; }
.of-office-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.of-office-photos .of-photo { aspect-ratio: 4 / 3; }
@media (max-width: 620px) { .of-office-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ==========================================================================
   Ajustes responsivos (v1.1.1)
   ========================================================================== */

/* Barra de confianza: las columnas no deben crecer con el texto en móvil */
@media (max-width: 900px) {
	.of-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.of-trust__list strong { font-size: 21px; white-space: normal; }
	.of-trust__list span { font-size: 14px; }
}
@media (max-width: 340px) {
	.of-trust__list li { padding: 18px 14px; }
}

/* Tarjeta sobrante en rejillas de 2 columnas (propiedades, Afore): centrada */
@media (min-width: 621px) and (max-width: 960px) {
	.of-grid--3 > :last-child:nth-child(odd) {
		grid-column: 1 / -1; justify-self: center;
		width: calc((100% - clamp(18px, 2.4vw, 28px)) / 2);
	}
}

/* Fotos de oficinas: el alto mínimo del espacio vacío forzaba el ancho */
.of-office-photos .of-photo { min-width: 0; min-height: 0; }
.of-office-photos .of-photo--empty a { padding: 12px; font-size: 13px; }
@media (max-width: 620px) {
	.of-office-photos > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Hero claro (velo blanco, texto azul) y oficinas con fotos (v1.1.3)
   ========================================================================== */
.of-hero { background: #fff; color: var(--navy); }
.of-hero__bg { color: var(--blue); }
.of-hero__bg::before { background-image: none; }
.of-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / .9) 55%, rgb(255 255 255 / .74) 100%);
}
.of-hero__photo { opacity: 1; mix-blend-mode: normal; }
.of-hero__mark { display: none; }
.of-hero__ribbon { z-index: 1; }
.of-hero__kicker { margin-bottom: 18px; background: var(--sky-50); border-color: var(--sky-200); color: var(--navy); }
.of-hero__title { color: var(--navy); }
.of-hero__script { color: var(--blue); }
.of-hero__lead { color: var(--navy-900); }
.of-hero__proof { color: var(--navy); }
.of-hero__proof .of-icon { color: var(--blue); }
.of-hero .of-btn--outline-light { --fg: var(--navy); --bd: var(--navy); }
.of-hero .of-btn--outline-light:hover { --bg: var(--sky-50); --bd: var(--navy); }
.of-hero .of-picker { border: 1px solid var(--line); }

.of-hero__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0 0 28px; padding: 0; }
.of-hero__logo { display: block; width: auto; height: 58px; }
.of-hero__afore { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--blue); }
.of-hero__afore .of-icon { width: 38px; height: 38px; }
.of-hero__note { max-width: 62ch; margin: 18px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }

/* Oficinas con fotos */
.of-branches__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.of-branch__photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; height: 340px; margin-bottom: 18px; }
.of-branch__photos .of-photo { height: 100%; border-radius: 12px; }
@media (max-width: 760px) {
	.of-branches__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.of-branch__photos { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
	.of-branch__photos .of-photo { height: auto; aspect-ratio: 3 / 4; }
	.of-branch__photos .of-photo:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Texto superior del hero centrado y matriz a todo el ancho (v1.1.4)
   ========================================================================== */
.of-hero__kicker {
	display: block; width: fit-content; max-width: 100%; margin-inline: auto;
	text-align: center; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.35;
}
.of-branch--main { grid-column: 1 / -1; }
.of-branch__photos .of-photo:only-child img { object-position: top; }
.of-branch__photos--stack { grid-auto-flow: row; grid-auto-rows: minmax(0, 1fr); }
.of-branch__photos--stack .of-photo { min-height: 0; }
.of-branch__photos--stack img { object-position: top; }
@media (max-width: 560px) {
	.of-branch__photos--stack { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
	.of-branch__photos--stack .of-photo { aspect-ratio: 16 / 9; }
}
