/* ============================================================
   RECURRENTE — Landing theme styles
   Desktop: fixed 1600x900 canvas, scaled uniformly, horizontal scroll.
   Mobile (<1024px): vertical reflow.
   ============================================================ */

:root {
	--c-cobalto:   #1D3B8A;
	--c-naranja:   #D9442C;
	--c-kraft:     #F1E7D2;
	--c-viejo:     #E5D7B6;
	--c-resaltador:#F5C53B;
	--c-tinta:     #1F1610;
	--c-crema:     #FAF4E5;
	--c-blanco:    #FFFFFF;
	--f-serif: 'Lora', Georgia, serif;
	--f-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
	--f-mono:  'JetBrains Mono', ui-monospace, monospace;
	--stage-w: 1600px;
	--stage-h: 900px;
	--rec-scale: 1;
}

.recurrente-landing * { box-sizing: border-box; }
@media (min-width: 1024px) {
	html, body.recurrente-landing { overflow: hidden; height: 100%; overscroll-behavior: none; }
}
.recurrente-landing {
	margin: 0;
	font-family: var(--f-sans);
	color: var(--c-tinta);
	background: var(--c-kraft);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ---------- Smile (under highlighted words) ---------- */
.rec-smile { display: block; overflow: visible; }
.rec-hl { position: relative; display: inline-block; white-space: nowrap; padding-bottom: 0.2em; }
.rec-hl-rr { position: relative; display: inline-block; }
.rec-hl .rec-smile {
	position: absolute !important;
	left: 50% !important; bottom: 0 !important;
	transform: translateX(-50%) rotate(-8deg) !important;
	width: 0.55em !important; height: auto !important;
}
.rec-hl--hero .rec-smile, .rec-hl--cta .rec-smile { width: 0.9em !important; }

/* ---------- Logo wordmark ---------- */
.rec-logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; vertical-align: middle; text-decoration: none; }
.rec-logo-word { font-family: var(--f-serif); font-size: var(--rec-logo-h, 22px); font-weight: 700; letter-spacing: -0.012em; line-height: 1; }
.rec-logo-smile { display: block; }

/* ---------- Buttons ---------- */
.rec-btn {
	font-family: var(--f-sans); font-weight: 600; border: none; cursor: pointer;
	border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
	color: #fff; background: var(--c-naranja); transition: background .2s, box-shadow .2s, transform .15s;
}
.rec-btn--primary { box-shadow: 0 12px 32px rgba(217,68,44,.40); }
.rec-btn--lg { font-size: 16px; padding: 17px 32px; }
.rec-btn--lg span { font-size: 18px; }

/* ============================================================
   DESKTOP — horizontal stage
   ============================================================ */
.rec-wrap {
	position: fixed; inset: 0;
	width: 100vw; height: 100vh;
	overflow-x: auto; overflow-y: hidden;
	scrollbar-width: none; -ms-overflow-style: none;
}
.rec-wrap::-webkit-scrollbar { display: none; }
.rec-panels { display: flex; flex-direction: row; height: 100%; }

.rec-stage {
	width: 100vw; height: 100vh; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.rec-stage--kraft { background: var(--c-kraft); }

.rec-canvas {
	width: var(--stage-w); height: var(--stage-h); flex-shrink: 0;
	transform: scale(var(--rec-scale)); transform-origin: center center;
	position: relative; overflow: hidden;
	display: flex; flex-direction: column;
	color: var(--c-tinta);
}
.rec-canvas--pad { padding: 104px 56px 56px; }

/* ============================================================
   FIXED CHROME
   ============================================================ */
.rec-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: rgba(31,22,16,.10); z-index: 50; pointer-events: none; }
.rec-progress-bar { display: block; height: 100%; width: var(--rec-progress, 0%); background: var(--c-naranja); transition: width .15s ease-out; }

.rec-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 49;
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 40px; height: 64px;
	background: rgba(245,238,224,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(28,20,16,.10);
	box-shadow: 0 2px 24px rgba(0,0,0,.12);
	transition: opacity .45s ease, transform .45s ease;
}
.rec-nav[data-state="hidden"] { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.rec-nav[data-state="shown"]  { opacity: 1; transform: translateY(0); pointer-events: auto; }
.rec-nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.rec-nav-links { display: flex; align-items: center; }
.rec-nav-link {
	position: relative; background: transparent; border: none; cursor: pointer;
	padding: 0 20px; height: 64px; display: flex; align-items: center;
}
.rec-nav-link span {
	font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--c-tinta); opacity: .4; transition: opacity .2s;
}
.rec-nav-link:hover span { opacity: 1; }
.rec-nav-link.is-active span { opacity: 1; }
.rec-nav-link::after {
	content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
	background: var(--c-naranja); opacity: 0; transition: opacity .25s;
}
.rec-nav-link.is-active::after { opacity: 1; }
.rec-nav-cta {
	background: var(--c-naranja); color: #fff; padding: 9px 20px; border: none; border-radius: 999px;
	font-family: var(--f-sans); font-size: 12px; font-weight: 600; cursor: pointer; letter-spacing: .02em;
	box-shadow: 0 4px 14px rgba(217,68,44,.30); white-space: nowrap;
}

.rec-fab {
	position: fixed; left: 36px; bottom: 36px; z-index: 50;
	background: var(--c-naranja); color: #fff; padding: 12px 22px; border: none; border-radius: 999px;
	font-family: var(--f-sans); font-size: 14px; font-weight: 600; cursor: pointer;
	display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 28px rgba(217,68,44,.35);
	transition: opacity .3s ease, transform .3s ease;
}
.rec-fab[data-state="hidden"] { opacity: 0; transform: translateY(12px); pointer-events: none; }
.rec-fab[data-state="shown"]  { opacity: 1; transform: translateY(0); pointer-events: auto; }

.rec-dots { position: fixed; right: 36px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 50; transition: opacity .5s ease; }
.rec-dots[data-state="hidden"] { opacity: 0; pointer-events: none; }
.rec-dot { background: transparent; border: none; padding: 4px 0; display: flex; align-items: center; gap: 12px; cursor: pointer; opacity: .4; transition: opacity .2s; }
.rec-dot:hover, .rec-dot.is-active { opacity: 1; }
.rec-dot-label { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-tinta); white-space: nowrap; }
.rec-dot-line { width: 12px; height: 2px; background: rgba(31,22,16,.4); transition: width .25s ease-out, background .2s; }
.rec-dot.is-active .rec-dot-line { width: 32px; background: var(--c-tinta); }

/* ============================================================
   PANEL 1 — HERO
   ============================================================ */
.rec-canvas--hero { color: var(--c-tinta); }
.rec-hero-bg { position: absolute; right: -12%; bottom: -22%; opacity: .05; pointer-events: none; }
.rec-hero-bg span { font-family: var(--f-serif); font-size: 780px; font-weight: 700; color: var(--c-cobalto); letter-spacing: -0.06em; line-height: .82; }

.rec-hero-eyebrow { padding: 32px 56px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.rec-hero-nav { display: flex; align-items: center; gap: 4px; }
.rec-hero-nav button {
	background: transparent; border: none; padding: 6px 16px; cursor: pointer;
	font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: rgba(31,22,16,.5); transition: color .2s;
}
.rec-hero-nav button:hover { color: var(--c-tinta); }

.rec-hero-main { flex: 1; padding: 0 80px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; max-width: 1380px; }
.rec-hero-title { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 118px; line-height: .96; letter-spacing: -0.032em; color: var(--c-cobalto); text-wrap: balance; }

.rec-hero-bottom { padding: 32px 56px 48px; display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 2; }
.rec-hero-sub { margin: 0 0 22px; font-family: var(--f-sans); font-size: 40px; line-height: 1.55; color: rgba(31,22,16,.72); max-width: 480px; }

/* ============================================================
   SECTION HEADINGS (Servicios / Proceso)
   ============================================================ */
.rec-sec-head { margin-bottom: 24px; }
.rec-h2 { margin: 0 0 .5em; font-family: var(--f-serif); font-weight: 700; font-size: 72px; line-height: .98; letter-spacing: -0.028em; color: var(--c-tinta); max-width: 1000px; }
.rec-sec-sub { margin: 0; font-family: var(--f-sans); font-size: 15px; line-height: 1.55; color: rgba(31,22,16,.7); }

/* ============================================================
   PANEL 2 — SERVICIOS (cards)
   ============================================================ */
.rec-cards { flex: 1; display: grid; gap: 20px; min-height: 0; }
.rec-cards--3 { grid-template-columns: repeat(3, 1fr); }

.rec-card {
	--bg: #fff; --fg: var(--c-tinta); --accent: var(--c-naranja); --bd: transparent; --bullet-bd: rgba(255,255,255,.12);
	background: var(--bg); color: var(--fg);
	border-radius: 18px; padding: 32px 30px; display: flex; flex-direction: column;
	border: 1px solid var(--bd); box-shadow: 0 16px 40px rgba(28,20,16,.10);
	position: relative; overflow: hidden;
}
.rec-card--cobalto { --bg: var(--c-cobalto); --fg: #fff; --accent: var(--c-resaltador); --bd: transparent; --bullet-bd: rgba(255,255,255,.12); }
.rec-card--tinta   { --bg: var(--c-tinta);   --fg: #fff; --accent: var(--c-resaltador); --bd: transparent; --bullet-bd: rgba(255,255,255,.12); }
.rec-card--blanco  { --bg: #fff; --fg: var(--c-tinta); --accent: var(--c-naranja); --bd: var(--c-viejo); --bullet-bd: var(--c-viejo); }

.rec-card-badge { position: absolute; top: 14px; right: 14px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; }
.rec-card-num { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.rec-card-name { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 700; font-size: 32px; letter-spacing: -0.022em; line-height: 1.05; }
.rec-card-tag { font-family: var(--f-sans); font-size: 15px; font-weight: 500; opacity: .75; margin-bottom: 24px; }
.rec-card-visual { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 0; min-height: 0; overflow: hidden; }
.rec-card-bullets { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--bullet-bd); min-height: 124px; }
.rec-card-bullets li { font-family: var(--f-sans); font-size: 13px; line-height: 1.5; padding: 5px 0; display: flex; align-items: baseline; gap: 10px; opacity: .85; }
.rec-arrow { color: var(--accent); font-weight: 700; }

/* Service visuals */
.rec-visual-cx { width: 100%; height: 100%; max-height: 130px; }
.rec-wallet {
	height: 100%; max-height: 175px; aspect-ratio: 1.586; max-width: 100%;
	background: #FDFAF3; border-radius: 14px; padding: 14px 16px;
	display: flex; flex-direction: column; justify-content: space-between;
	box-shadow: 0 8px 28px rgba(29,59,138,.14); border: 1.5px solid var(--c-viejo);
	position: relative; overflow: hidden;
}
.rec-wallet-top { display: flex; justify-content: space-between; align-items: center; }
.rec-wallet-tag { font-family: var(--f-mono); font-size: 7px; opacity: .45; letter-spacing: .10em; color: var(--c-tinta); }
.rec-wallet-label { font-family: var(--f-mono); font-size: 6.5px; opacity: .5; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; font-weight: 600; color: var(--c-tinta); }
.rec-wallet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.rec-stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--c-viejo); display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; line-height: 1; }
.rec-stamp.is-filled { background: var(--c-naranja); border-color: var(--c-naranja); }
.rec-chat { width: 100%; max-width: 230px; display: flex; flex-direction: column; gap: 8px; }
.rec-bubble { padding: 8px 12px; font-family: var(--f-sans); font-size: 12px; line-height: 1.4; }
.rec-bubble-out { align-self: flex-end; max-width: 82%; background: rgba(255,255,255,.14); border-radius: 14px 14px 3px 14px; color: #fff; }
.rec-bubble-in { align-self: flex-start; max-width: 85%; background: var(--c-resaltador); color: var(--c-cobalto); border-radius: 14px 14px 14px 3px; font-weight: 600; }
.rec-bubble-short { max-width: 70%; }

/* ============================================================
   PANEL 3 — PROCESO (steps)
   ============================================================ */
.rec-steps-wrap { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.rec-steps-connector { position: absolute; left: 4%; top: 40%; height: 30px; width: 52%; pointer-events: none; overflow: visible; }
.rec-steps { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; flex-shrink: 0; }
.rec-step { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 38px 26px 40px; background: #fff; border-radius: 14px; border: 1px solid var(--c-viejo); position: relative; height: 100%; }
.rec-step-bubble { width: 52px; height: 52px; border-radius: 50%; background: var(--c-cobalto); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-serif); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; box-shadow: 0 8px 20px rgba(28,20,16,.18); }
.rec-step-bubble.is-star { background: var(--c-naranja); }
.rec-step-title { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 26px; letter-spacing: -0.022em; line-height: 1.05; color: var(--c-tinta); }
.rec-step-desc { margin: 0; font-family: var(--f-sans); font-size: 13.5px; line-height: 1.55; color: rgba(31,22,16,.68); }

/* ============================================================
   PANEL 4 — CTA + FORM + FOOTER
   ============================================================ */
.rec-canvas--cta { color: var(--c-cobalto); }
.rec-cta-bg { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.rec-cta-bg span { position: absolute; display: inline-block; }

.rec-cta-grid { flex: 1; padding: 104px 56px 40px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; min-height: 0; }
.rec-cta-title { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 112px; line-height: .93; letter-spacing: -0.035em; color: var(--c-cobalto); }
.rec-cta-text { font-family: var(--f-sans); font-size: 18px; line-height: 1.55; color: var(--c-cobalto); opacity: .78; max-width: 520px; margin: 40px 0 0; }

.rec-form-card { background: var(--c-cobalto); color: #fff; border-radius: 22px; padding: 36px; box-shadow: 0 24px 60px rgba(29,59,138,.30); max-width: 460px; justify-self: end; width: 100%; }
.rec-form { display: flex; flex-direction: column; gap: 18px; }
.rec-form-overline { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-resaltador); margin-bottom: 8px; }
.rec-form-title { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: 28px; letter-spacing: -0.022em; line-height: 1.1; color: #fff; }
.rec-field { display: flex; flex-direction: column; gap: 6px; }
.rec-field-label { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.rec-field input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 12px 14px; font-family: var(--f-sans); font-size: 15px; color: #fff; outline: none; transition: border-color .15s, background .15s; }
.rec-field input::placeholder { color: rgba(255,255,255,.4); }
.rec-field input:focus { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.rec-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.rec-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-naranja); flex-shrink: 0; cursor: pointer; }
.rec-consent span { font-family: var(--f-sans); font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.70); }
.rec-consent strong { color: rgba(255,255,255,.90); font-weight: 600; }
.rec-btn--submit { margin-top: 8px; justify-content: center; width: 100%; padding: 15px 24px; font-size: 15px; background: rgba(255,255,255,.18); box-shadow: none; cursor: not-allowed; }
.rec-btn--submit span { font-size: 18px; }
.rec-btn--submit:not(:disabled) { background: var(--c-naranja); box-shadow: 0 10px 24px rgba(217,68,44,.40); cursor: pointer; }
.rec-form-note { font-family: var(--f-sans); font-size: 11px; color: rgba(255,255,255,.55); line-height: 1.5; text-align: center; margin-top: 2px; }

.rec-form-success { text-align: center; padding: 14px 0; }
.rec-success-check { width: 72px; height: 72px; border-radius: 50%; background: var(--c-naranja); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: var(--f-serif); font-size: 36px; font-weight: 700; color: #fff; }
.rec-success-title { margin: 0 0 10px; font-family: var(--f-serif); font-weight: 700; font-size: 28px; letter-spacing: -0.022em; line-height: 1.1; color: #fff; }
.rec-success-text { margin: 0 auto; font-family: var(--f-sans); font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.55; max-width: 320px; }
.rec-success-text strong { color: #fff; font-weight: 600; }

/* Footer */
.rec-footer { padding: 24px 56px 32px; border-top: 1px solid rgba(29,59,138,.18); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; position: relative; z-index: 1; color: var(--c-cobalto); }
.rec-footer-brand p { font-family: var(--f-sans); font-size: 12px; line-height: 1.55; margin: 14px 0 0; opacity: .7; max-width: 260px; }
.rec-footer-title { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .6; margin-bottom: 12px; }
.rec-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rec-footer-list a { font-family: var(--f-sans); font-size: 13px; font-weight: 500; opacity: .85; color: var(--c-cobalto); text-decoration: none; }
.rec-footer-list a:hover { opacity: 1; }
.rec-footer-social .rec-footer-list { flex-direction: row; gap: 14px; }
.rec-footer-social .rec-footer-list a { font-weight: 600; border-bottom: 1px solid var(--c-cobalto); padding-bottom: 2px; }
.rec-footer-copy { font-family: var(--f-mono); font-size: 10px; margin-top: 18px; opacity: .5; letter-spacing: .06em; }

/* ============================================================
   MOBILE — vertical reflow (<1024px)
   ============================================================ */
@media (max-width: 1023px) {
	html, body.recurrente-landing { overflow-x: hidden; }

	.rec-progress, .rec-nav, .rec-fab, .rec-dots { display: none !important; }

	.rec-wrap { position: static; inset: auto; width: 100%; height: auto; overflow: visible; }
	.rec-panels { flex-direction: column; height: auto; }

	.rec-stage { width: 100%; height: auto; min-height: 0; display: block; overflow: hidden; }
	.rec-canvas {
		width: 100%; height: auto; min-height: 100vh;
		transform: none !important; display: flex; padding: 64px 20px 48px;
	}
	.rec-canvas--pad { padding: 80px 20px 56px; }
	.rec-canvas--hero { padding: 0; }

	/* Decorations toned down */
	.rec-hero-bg { right: -30%; bottom: -10%; }
	.rec-hero-bg span { font-size: 360px; }

	/* Hero */
	.rec-hero-eyebrow { padding: 24px 20px; }
	.rec-hero-nav { gap: 0; }
	.rec-hero-nav button { padding: 6px 10px; }
	.rec-hero-main { padding: 24px 20px; }
	.rec-hero-title { font-size: clamp(40px, 12vw, 84px); }
	.rec-hero-bottom { padding: 24px 20px 40px; }

	/* Section heads */
	.rec-h2 { font-size: clamp(34px, 9vw, 60px); }
	.rec-sec-head { margin-bottom: 28px; }

	/* Cards stack */
	.rec-cards--3 { grid-template-columns: 1fr; gap: 16px; }
	.rec-card-bullets { min-height: 0; }
	.rec-card-visual { min-height: 120px; }
	.rec-wallet { height: auto; width: 240px; max-width: 80%; }
	.rec-visual-cx { max-height: 120px; }

	/* Steps */
	.rec-steps-connector { display: none; }
	.rec-steps { grid-template-columns: 1fr; gap: 14px; }
	.rec-step { padding: 26px 22px 28px; gap: 12px; }

	/* CTA */
	.rec-cta-grid { grid-template-columns: 1fr; gap: 32px; padding: 16px 0 8px; }
	.rec-cta-title { font-size: clamp(40px, 12vw, 72px); }
	.rec-cta-text { font-size: 16px; margin-top: 24px; }
	.rec-form-card { justify-self: stretch; max-width: none; padding: 28px 22px; }

	/* Footer */
	.rec-footer { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 8px; }
	.rec-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.rec-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.rec-progress-bar, .rec-nav, .rec-fab, .rec-dot-line { transition: none !important; }
}
