/**
 * Legally360 — assets/css/sections.css
 *
 * Secciones de contenido (Fase 4-5): contenedor y cabecera de sección, «Así funciona»,
 * tabla comparativa, situaciones, FAQ (<details>), llamada final, avisos de dato pendiente
 * (solo en local), y piel de Fluent Forms y FluentBooking.
 */

/* -------------------------------------------------------------------------
   1. Contenedor y ritmo vertical (tres valores: compacto, normal, amplio)
   ------------------------------------------------------------------------- */

.l3-section {
	padding-block: var(--section-y);
	padding-inline: max(var(--container-x), calc((100% - var(--grid-max)) / 2));
}
.l3-section--deep { background: var(--color-bg-deep); }
.l3-section--wide { padding-block: clamp(4rem, 10vw, 8rem); }
.l3-section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.l3-section > :first-child { margin-top: 0; }

.l3-head {
	display: grid;
	gap: 1rem;
	max-width: 46rem;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.l3-head h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--5-xl);
	letter-spacing: -.04em;
	line-height: 1.04;
}
.l3-head h2 .l3-tone { display: block; color: var(--color-accent); }
.l3-dark .l3-head h2 .l3-tone { color: var(--color-accent-on-dark); }
.l3-head p { margin: 0; max-width: 60ch; color: var(--color-ink-soft); font-size: 1.0625rem; }
.l3-dark .l3-head p { color: var(--color-on-dark-soft); }
.l3-head .l3-eyebrow { margin: 0; }
.l3-head__num { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.l3-dark .l3-head__num { color: var(--color-on-dark-soft); }

/* Encabezado a dos columnas en escritorio (titular izq., entradilla der.) */
@media (min-width: 64rem) {
	.l3-head--split {
		grid-template-columns: 1.1fr .9fr;
		align-items: end;
		max-width: none;
		column-gap: 4rem;
	}
	.l3-head--split .l3-eyebrow { grid-column: 1 / -1; }
}

/* -------------------------------------------------------------------------
   2. «Así funciona» — pasos numerados con línea de progreso (H19-H21)
   ------------------------------------------------------------------------- */

.l3-steps {
	position: relative;
	display: grid;
	gap: 2.5rem;
	margin: 0;
	padding: 0 0 0 2.5rem;
	list-style: none;
	counter-reset: step;
}
.l3-steps::before,
.l3-steps::after {
	content: "";
	position: absolute;
	top: .5rem;
	bottom: .5rem;
	left: .55rem;
	width: 2px;
	background: rgba(255, 255, 255, .14);
}
.l3-steps::after {
	background: var(--color-accent-on-dark);
	transform-origin: top;
}
.motion-ok .l3-steps:not(.is-in)::after { transform: scaleY(0); }
.l3-step { position: relative; }
.l3-step__num {
	display: block;
	margin-bottom: .75rem;
	color: var(--color-on-dark-soft);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	transition: color 300ms var(--ease-out-quint);
}
.l3-steps.is-in .l3-step__num {
	color: var(--color-accent-on-dark);
	transition-delay: calc(var(--i, 0) * 240ms + 300ms);
}
.l3-step::before {
	content: "";
	position: absolute;
	top: .55rem;
	left: calc(-2.5rem + .2rem);
	width: 12px;
	height: 12px;
	border: 2px solid var(--color-accent-on-dark);
	border-radius: 50%;
	background: var(--color-primary);
}
.l3-step h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.l3-step p { margin: 0; max-width: 36ch; color: var(--color-on-dark-soft); }

@media (min-width: 56rem) {
	.l3-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
		padding: 2.5rem 0 0;
	}
	.l3-steps::before,
	.l3-steps::after {
		top: .5rem;
		bottom: auto;
		left: 0;
		right: 0;
		width: auto;
		height: 2px;
	}
	.l3-steps::after { transform-origin: left; }
	.motion-ok .l3-steps:not(.is-in)::after { transform: scaleX(0); }
	.l3-step::before { top: calc(-2.5rem + .1rem); left: 0; }
}

/* -------------------------------------------------------------------------
   3. Bloques de texto y listas
   ------------------------------------------------------------------------- */

.l3-prose { max-width: 66ch; }
.l3-prose p { color: var(--color-ink-soft); }
.l3-split {
	display: grid;
	gap: 2rem;
}
.l3-split > * { min-width: 0; }
@media (min-width: 56rem) {
	.l3-split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

.l3-checklist {
	display: grid;
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.l3-checklist li { display: flex; gap: .6rem; }
.l3-checklist li::before { content: "✓"; flex: none; color: var(--color-accent); font-weight: 700; }

/* Sin letra pequeña: preguntas + respuesta en rejilla */
.l3-terms {
	display: grid;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-line);
}
.l3-terms > div { padding: 1.5rem; background: var(--color-surface); }
.l3-terms h3 { margin: 0 0 .5rem; font-size: 1.0625rem; }
.l3-terms p { margin: 0; color: var(--color-ink-soft); font-size: .9375rem; }
@media (min-width: 48rem) { .l3-terms { grid-template-columns: 1fr 1fr; } }

/* Fichas mini (particulares en home) */
.l3-minis { display: grid; gap: 1rem; margin-block: 2rem; }
@media (min-width: 40rem) { .l3-minis { grid-template-columns: 1fr 1fr; } }
.l3-mini {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.5rem;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}
.l3-mini strong { font-size: 1.125rem; letter-spacing: -.02em; }
.l3-mini .l3-mini__price { font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; }
.l3-mini .l3-mini__price small { font-size: .875rem; font-weight: 400; color: var(--color-ink-soft); }
.l3-mini p { margin: 0; color: var(--color-ink-soft); font-size: .9375rem; }

/* Canales de un plan */
.l3-plan__channels {
	margin: 0;
	padding: .55rem .75rem;
	border-radius: 10px;
	background: var(--color-accent-soft);
	color: var(--color-ink);
	font-size: .8125rem;
	font-weight: 500;
}
.l3-dark .l3-plan:not(.l3-plan--feat) .l3-plan__channels { background: rgba(255, 255, 255, .08); color: #FFFFFF; }

/* -------------------------------------------------------------------------
   4. Tabla comparativa (desplazable en móvil, primera columna fija)
   ------------------------------------------------------------------------- */

.l3-compare {
	position: relative; /* contiene los .vibe-sr-only absolutos de las celdas */
	overflow-x: auto;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	-webkit-overflow-scrolling: touch;
}
.l3-compare:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.l3-compare table {
	width: 100%;
	min-width: 40rem;
	border-collapse: collapse;
	font-size: .9375rem;
}
.l3-compare caption { padding: 1rem 1.25rem 0; text-align: left; color: var(--color-ink-soft); font-size: .8125rem; }
.l3-compare th,
.l3-compare td { padding: .9rem 1.25rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.l3-compare tr:last-child > * { border-bottom: 0; }
.l3-compare thead th { font-size: 1rem; font-weight: 600; }
.l3-compare thead th.is-feat,
.l3-compare td.is-feat { background: var(--color-accent-soft); }
.l3-compare tbody th {
	position: sticky;
	left: 0;
	background: var(--color-surface);
	color: var(--color-ink-soft);
	font-weight: 500;
}
.l3-compare .is-yes { color: var(--color-accent); font-weight: 700; }
.l3-compare .is-no { color: var(--color-line-strong); }

/* -------------------------------------------------------------------------
   5. FAQ — <details> nativo con apertura animada donde hay soporte
   ------------------------------------------------------------------------- */

.l3-faq { display: grid; gap: .75rem; max-width: 52rem; }
.l3-faq details {
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	interpolate-size: allow-keywords;
}
.l3-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 56px;
	padding: 1rem 1.25rem;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -.01em;
	list-style: none;
	cursor: pointer;
}
.l3-faq summary::-webkit-details-marker { display: none; }
.l3-faq summary::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--color-accent);
	border-bottom: 2px solid var(--color-accent);
	transform: translateY(-3px) rotate(45deg);
	transition: transform var(--duration-base) var(--ease-out-quint);
}
.l3-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.l3-faq summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.l3-faq details > div { padding: 0 1.25rem 1.25rem; color: var(--color-ink-soft); }
.l3-faq details > div p { margin: 0; max-width: 64ch; }

@media (prefers-reduced-motion: no-preference) {
	.l3-faq details::details-content {
		block-size: 0;
		overflow: clip;
		transition: block-size 240ms var(--ease-out-quint), content-visibility 240ms allow-discrete;
	}
	.l3-faq details[open]::details-content { block-size: auto; }
}

/* -------------------------------------------------------------------------
   6. Llamada final
   ------------------------------------------------------------------------- */

.l3-cta {
	position: relative;
	overflow: hidden;
	text-align: left;
	background:
		radial-gradient(40rem 24rem at 100% 100%, rgba(10, 91, 214, .45), transparent 60%),
		var(--color-primary);
}
.l3-cta .l3-head { margin-bottom: 2rem; }
.l3-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* -------------------------------------------------------------------------
   7. Dato pendiente del cliente — visible solo en local (inc/content.php)
   ------------------------------------------------------------------------- */

.l3-pending {
	display: inline-block;
	padding: .1rem .45rem;
	border: 1px dashed #9A4C08;
	border-radius: 6px;
	background: #FFF4E5;
	color: #7A3B06;
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.4;
}

/* -------------------------------------------------------------------------
   8. Formularios (Fluent Forms) y reservas (FluentBooking)
   ------------------------------------------------------------------------- */

.l3-form-card {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
}

.l3-form-card .ff-el-input--label label { color: var(--color-ink); font-weight: 500; font-size: .9375rem; }
.l3-form-card .ff-el-form-control {
	min-height: 48px;
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-ink);
	font: inherit;
}
.l3-form-card textarea.ff-el-form-control { min-height: 140px; }
.l3-form-card .ff-el-form-control:focus {
	border-color: var(--color-accent);
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
	box-shadow: none;
}
.l3-form-card .ff-el-is-error .ff-el-form-control { border-color: #A93A2D; }
.l3-form-card .error.text-danger { color: #A93A2D; font-size: .8125rem; }
.l3-form-card .ff-btn-submit {
	min-height: 48px;
	padding: .875rem 1.75rem !important;
	border-radius: var(--radius-full) !important;
	background: var(--color-accent) !important;
	color: #FFFFFF !important;
	font-weight: 500;
}
.l3-form-card .ff-btn-submit:hover { background: var(--color-primary) !important; }
.l3-form-card .ff-btn-submit:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.l3-form-card .ff-message-success {
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-md);
	background: var(--color-accent-soft);
	color: var(--color-ink);
}

.l3-booking {
	min-height: 520px;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: var(--shadow-card);
}

.l3-aside {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}
.l3-aside .l3-card { padding: 1.25rem; }
.l3-aside h3 { margin: 0 0 .35rem; font-size: 1rem; }
.l3-aside p { margin: 0; color: var(--color-ink-soft); font-size: .9375rem; }
@media (min-width: 64rem) {
	.l3-split--form { grid-template-columns: 1.6fr 1fr; }
}

/* -------------------------------------------------------------------------
   9. Añadidos Fase 4-5: planes en sección, cabecera interior, CTA fijo móvil
   ------------------------------------------------------------------------- */

.l3-plans__note { margin: 1.5rem 0 0; color: var(--color-on-dark-soft); font-size: .875rem; }
.l3-plans-section--two .l3-plans { max-width: 52rem; }
@media (min-width: 64rem) { .l3-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.l3-lead { margin: 0 0 1.5rem; max-width: 60ch; color: var(--color-ink-soft); font-size: 1.0625rem; }
.l3-page-hero .l3-eyebrow { margin-bottom: 1rem; color: var(--color-accent-on-dark); }
.l3-page-hero__intro { max-width: 58ch; margin-top: 1.25rem !important; color: var(--color-on-dark-soft); font-size: 1.125rem; }

/* Línea de «Así funciona» ligada al scroll (H19). Sin soporte: se pinta entera al revelarse. */
.motion-ok .l3-steps::after { transition: transform 900ms var(--ease-out-quint, ease-out); }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.motion-ok .l3-steps::after {
			transition: none;
			animation: l3-steps-y linear both;
			animation-timeline: view();
			animation-range: entry 30% cover 55%;
		}
		@media (min-width: 56rem) { .motion-ok .l3-steps::after { animation-name: l3-steps-x; } }
	}
}
@keyframes l3-steps-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes l3-steps-x { from { transform: scaleX(0); } to { transform: none; } }

/* CTA fijo en móvil (H25): aparece al pasar el hero y se oculta en la llamada final. */
.l3-mcta {
	position: fixed;
	inset: auto .75rem max(.75rem, env(safe-area-inset-bottom)) .75rem;
	z-index: var(--wp--custom--z-index--sticky, 200);
	display: flex;
	justify-content: center;
	transform: translateY(160%);
	transition: transform var(--m-dur-base, 240ms) var(--m-ease-out, ease-out);
	pointer-events: none;
}
.l3-mcta .l3-btn { width: 100%; max-width: 28rem; box-shadow: 0 10px 30px rgba(15, 30, 56, .25); pointer-events: auto; }
.l3-mcta.is-on { transform: none; }
.l3-mcta.is-on .l3-btn { pointer-events: auto; }
.l3-mcta:not(.is-on) .l3-btn { visibility: hidden; transition: visibility 0s linear var(--m-dur-base, 240ms); }
@media (min-width: 48rem) { .l3-mcta { display: none; } }
@media (prefers-reduced-motion: reduce) { .l3-mcta { transition: none; } }

/* Textos legales (borradores maquetados desde context/legal/) */
.l3-legal { max-width: 72ch; padding-block: clamp(2.5rem, 6vw, 4rem); }
.l3-legal h2 { margin: 2.5rem 0 1rem; font-size: var(--wp--preset--font-size--2-xl); }
.l3-legal h3 { margin: 2rem 0 .75rem; font-size: 1.125rem; }
.l3-legal p, .l3-legal li { color: var(--color-ink-soft); }
.l3-legal blockquote { margin: 0 0 2rem; padding: 1.25rem 1.5rem; border: 1px dashed #9A4C08; border-radius: var(--radius-lg); background: #FFF8EE; }
.l3-legal blockquote p { color: var(--color-ink); }
.l3-legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.l3-legal th, .l3-legal td { padding: .6rem .8rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
mark.l3-pending { color: inherit; }

/* Contenido de páginas montadas con patrones: sin hueco de flujo entre secciones */
.l3-flow > * { margin-block: 0; }

/* Repartos sobre la retícula del tema (grid.css): medianil común y nº de columnas que
   divide 4 / 8 / 12. Así las tarjetas caen en columnas exactas (vibe-reticula-check). */
.l3-section .l3-cards,
.l3-section .l3-plans,
.l3-minis,
.l3-terms { gap: var(--grid-gutter); }
@media (min-width: 48rem) {
	.l3-section .l3-cards,
	.l3-section .l3-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.l3-split {
		grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
		column-gap: var(--grid-gutter);
	}
	.l3-split > :first-child { grid-column: 1 / span 4; }
	.l3-split > :last-child { grid-column: 5 / -1; }
}
@media (min-width: 64rem) {
	.l3-section .l3-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.l3-section .l3-cards--3,
	.l3-section .l3-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.l3-plans-section--two .l3-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
	.l3-split > :first-child { grid-column: 1 / span 5; }
	.l3-split > :last-child { grid-column: 7 / -1; }
	.l3-split--form > :first-child { grid-column: 1 / span 7; }
	.l3-split--form > :last-child { grid-column: 9 / -1; }
}
@media (min-width: 56rem) { .l3-steps { gap: var(--grid-gutter); } }
@media (min-width: 64rem) {
	/* Anchos de medida en columnas exactas: titular 8 col., FAQ 9 col. */
	.l3-section { --l3-col: calc((100% - 11 * var(--grid-gutter)) / 12); }
	.l3-section > .l3-head:not(.l3-head--split) { max-width: calc(8 * var(--l3-col) + 7 * var(--grid-gutter)); }
	.l3-section > .l3-faq { max-width: calc(9 * var(--l3-col) + 8 * var(--grid-gutter)); }
}

/* Cabecera interior con foto (imagen destacada de la página) */
.l3-page-hero.has-media { overflow: hidden; isolation: isolate; min-height: min(70svh, 560px); display: flex; flex-direction: column; justify-content: flex-end; }
.l3-page-hero__media { position: absolute; inset: 0; z-index: -1; }
.l3-page-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--veil-hero); }
.l3-page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
@media (max-width: 47.99rem) {
	.l3-page-hero__media::after { background: linear-gradient(180deg, rgba(11, 22, 43, .55) 0%, rgba(11, 22, 43, .92) 70%); }
}

/* Fotos con personas (inventadas, en papel de cliente) */
.l3-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-bg-deep); }
.l3-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l3-photo--tall { aspect-ratio: 4 / 3; }
.l3-photo--aside { aspect-ratio: 3 / 2; }
.l3-split--media .l3-minis { margin-block: 0 2rem; }
.l3-cards-2 .l3-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 48rem) { .l3-section .l3-cards-2 .l3-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
	.l3-photo--tall { aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); }
	.l3-split--media { align-items: start; }
	.l3-split--media > :first-child { grid-column: 1 / span 5; }
	.l3-split--media > :last-child { grid-column: 6 / -1; padding-left: var(--grid-gutter); }
	.l3-split--media .l3-head { max-width: none; }
}
.l3-card--photo { padding-top: 0; overflow: hidden; }
.l3-card__photo { margin: 0 -1.5rem 1.25rem; aspect-ratio: 3 / 2; overflow: hidden; }
.l3-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.l3-card--photo .l3-ico { margin-top: -2.75rem; position: relative; box-shadow: 0 0 0 4px var(--color-surface); }

/* Aviso de imagen IA (mu-plugin vibe-aviso-ia): encaje en las fotos del tema */
.l3-photo .vibe-aipin-wrap,
.l3-card__photo .vibe-aipin-wrap { display: block; height: 100%; }
.l3-hero > .vibe-aipin,
.l3-page-hero > .vibe-aipin { z-index: 3; right: max(1rem, env(safe-area-inset-right)); bottom: 1rem; }

/* Página «Créditos de imágenes» (shortcode del mu-plugin) */
.vibe-creditos { margin-block: 2rem; }
.vibe-creditos table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.vibe-creditos th, .vibe-creditos td { padding: .75rem .9rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.vibe-creditos th { font-weight: 600; color: var(--color-ink); }
.vibe-creditos td { color: var(--color-ink-soft); }
.vibe-creditos tr:target { background: var(--color-accent-soft); }
.l3-compare .is-tbd { color: var(--color-ink-soft); font-style: italic; }

/* Botón flotante de WhatsApp (patrón legally360/whatsapp) */
.l3-wa {
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
	z-index: var(--wp--custom--z-index--sticky, 200);
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #25D366;
	color: #FFFFFF;
	box-shadow: 0 12px 32px rgba(15, 30, 56, .25);
	transition: transform 180ms var(--m-ease-out, ease), bottom 240ms var(--m-ease-out, ease);
}
.l3-wa:hover { transform: translateY(-2px) scale(1.04); }
.l3-wa:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.l3-wa::before {
	content: attr(data-tooltip);
	position: absolute;
	right: calc(100% + .75rem);
	top: 50%;
	transform: translateY(-50%);
	padding: .4rem .7rem;
	border-radius: 6px;
	background: var(--color-ink);
	color: #FFFFFF;
	font-size: .75rem;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}
.l3-wa:hover::before, .l3-wa:focus-visible::before { opacity: 1; }
/* En móvil sube por encima del botón fijo de reserva cuando está visible. */
.l3-mcta-on .l3-wa { bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem); }
@media (prefers-reduced-motion: reduce) { .l3-wa { transition: none; } .l3-wa:hover { transform: none; } }

/* Fichas de producto (un plan por fila) */
.l3-details { display: grid; border-top: 1px solid var(--color-line); }
.l3-detail {
	display: grid;
	gap: .75rem var(--grid-gutter);
	padding-block: 2rem;
	border-bottom: 1px solid var(--color-line);
	scroll-margin-top: calc(var(--header-h, 72px) + 1rem);
}
.l3-detail h3 { margin: 0; font-size: var(--wp--preset--font-size--2-xl); letter-spacing: -.03em; }
.l3-detail__price { margin: .35rem 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; color: var(--color-accent); }
.l3-detail__price small { font-size: .875rem; font-weight: 400; color: var(--color-ink-soft); }
.l3-detail__for { margin: .25rem 0 0; color: var(--color-ink-soft); font-size: .9375rem; }
.l3-detail__body p { margin: 0 0 1rem; max-width: 62ch; font-size: 1.0625rem; color: var(--color-ink); }
.l3-link { color: var(--color-accent); font-weight: 600; text-decoration: none; }
.l3-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 64rem) {
	.l3-detail { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.l3-detail__name { grid-column: 1 / span 4; }
	.l3-detail__body { grid-column: 6 / -1; }
}

/* -------------------------------------------------------------------------
   Refinado 2026-12-04 — FAQ a dos columnas y llamada final con pasos
   ------------------------------------------------------------------------- */

.l3-faq-layout { display: grid; gap: 2rem; }
.l3-faq-layout .l3-faq { max-width: none; }
.l3-faq-more { margin: 1.5rem 0 0; color: var(--color-ink-soft); }
.l3-dark .l3-faq-more { color: var(--color-on-dark-soft); }
@media (min-width: 64rem) {
	.l3-faq-layout {
		--l3-col: calc((100% - 11 * var(--grid-gutter)) / 12);
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--grid-gutter);
		align-items: start;
	}
	.l3-faq-layout__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h, 72px) + 2rem); }
	.l3-faq-layout__head .l3-head { margin-bottom: 0; }
	.l3-faq-layout > .l3-faq { grid-column: 6 / -1; }
}

.l3-cta { isolation: isolate; }
.l3-cta__mark {
	position: absolute;
	z-index: -1;
	right: -4%;
	top: 50%;
	width: min(40rem, 64vw);
	height: auto;
	max-width: none;
	opacity: .06;
	transform: translateY(-50%);
	pointer-events: none;
}
.l3-cta__grid { display: grid; gap: 2.5rem; }
.l3-cta__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.l3-cta__steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.l3-cta__n { font-variant-numeric: tabular-nums; color: #7FB0FF; font-weight: 600; letter-spacing: .04em; padding-top: .1rem; }
.l3-cta__steps strong { display: block; color: #fff; font-weight: 600; margin-bottom: .2rem; }
.l3-cta__steps span span, .l3-cta__steps li > span:last-child { color: var(--color-on-dark-soft); font-size: .95rem; }
@media (min-width: 64rem) {
	.l3-cta__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gutter); align-items: center; }
	.l3-cta__grid > :first-child { grid-column: 1 / span 6; }
	.l3-cta__steps { grid-column: 8 / -1; }
}

/* -------------------------------------------------------------------------
   Altura de pantalla (Carlos, 2026-12-04): hero, calendario y formulario
   caben en la pantalla; nada interactivo más alto que el viewport.
   ------------------------------------------------------------------------- */

/* Hero de portada: tipografía y aire ligados también a la altura. */
.l3-hero { min-height: min(100svh, 860px); }
.l3-hero__inner {
	padding-top: calc(var(--header-h) + clamp(1.5rem, 7svh, 5rem));
	padding-bottom: clamp(2rem, 7svh, 6rem);
}
.l3-hero__title { font-size: clamp(2.25rem, min(6.2vw, 8.2svh), 5.25rem); margin-bottom: clamp(1rem, 2.6svh, 1.5rem); }
.l3-hero__lede { margin-bottom: clamp(1.25rem, 3.4svh, 2rem); }
.l3-hero__trust { margin-top: clamp(1.25rem, 4svh, 2.5rem); padding-top: clamp(1rem, 2.4svh, 1.5rem); }

/* Cabecera baja para reservar y contacto. */
.l3-page-hero--compact {
	padding-top: calc(var(--header-h) + clamp(1.5rem, 5svh, 3rem));
	padding-bottom: clamp(1.5rem, 4svh, 2.5rem);
}
.l3-page-hero--compact .l3-page-hero__title { font-size: clamp(2rem, min(4.4vw, 6.5svh), 3.5rem); }
.l3-page-hero--compact + .l3-section { padding-top: clamp(1.5rem, 4svh, 3rem); }
.l3-page-hero--compact + .l3-section .l3-lead { margin-bottom: 1rem; }

/* Formulario de contacto compacto (rejilla por container query, al final del archivo). */
.l3-form-card .frm-fluent-form .ff-el-group { margin-bottom: 1rem; }
.l3-form-card .frm-fluent-form .ff-el-input--label { margin-bottom: .3rem; }
.l3-form-card .frm-fluent-form textarea { min-height: 0; height: 7.5rem; resize: vertical; }
.l3-form-card .frm-fluent-form .ff_list_inline .ff-el-form-check { margin: 0 1rem .25rem 0; }

/* Calendario en móvil: ficha del evento resumida para que el calendario quepa entero. */
@media (max-width: 47.99rem) {
	.l3-booking .fcal_mobile .fcal_side { padding-block: .75rem; }
	.l3-booking .fcal_mobile .fcal_side img,
	.l3-booking .fcal_mobile .fcal_side [class*="avatar"],
	.l3-booking .fcal_mobile .fcal_side [class*="description"] { display: none; }
}
@media (max-width: 47.99rem) {
	.l3-hero__inner { padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 2.25rem; }
	.l3-hero__lede { font-size: 1rem; line-height: 1.55; }
	.l3-hero__trust { gap: .5rem 1.25rem; font-size: .875rem; }
	/* El pin «IA» del hero pasa a la izquierda: a la derecha queda el botón de WhatsApp. */
	.l3-hero > .vibe-aipin,
	.l3-page-hero > .vibe-aipin { right: auto; left: max(1rem, env(safe-area-inset-left)); }
}
/* Por debajo de escritorio el número va encima: el texto se queda en la retícula. */
@media (max-width: 63.99rem) {
	.l3-cta__steps li { grid-template-columns: 1fr; gap: .35rem; }
}

/* Botones flotantes apilados: WhatsApp abajo, volver arriba encima, mismo eje vertical.
   Suben juntos lo justo para no tapar la firma del pie (--l3-float-lift, theme.js). */
.l3-wa { bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem + var(--l3-float-lift, 0px)); }
.l3-mcta-on .l3-wa { bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem + var(--l3-float-lift, 0px)); }
.l3-wa ~ .l3-go-top,
body:has(.l3-wa) .l3-go-top {
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem + 3.5rem + .75rem + var(--l3-float-lift, 0px));
}
.l3-mcta-on body:has(.l3-wa) .l3-go-top { bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem + 3.5rem + .75rem + var(--l3-float-lift, 0px)); }

/* Nosotros: declaración, públicos */
.l3-statement__text {
	margin: 0;
	max-width: 30ch;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3.6vw, 3rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.035em;
	color: var(--color-ink);
	text-wrap: balance;
}
.l3-auds { display: grid; gap: var(--grid-gutter); }
@media (min-width: 48rem) { .l3-auds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l3-aud { display: flex; flex-direction: column; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.l3-aud__photo { aspect-ratio: 16 / 10; border-radius: 0; }
.l3-aud__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.l3-aud__body h3 { margin: 0; font-size: 1.35rem; }
.l3-aud__body p { margin: 0; color: var(--color-ink-soft); }
.l3-aud__from { margin-top: auto !important; padding-top: .5rem; }
.l3-aud__from strong { color: var(--color-ink); font-size: 1.25rem; }
.l3-cta__line { color: #fff; text-decoration: none; }
.l3-cta__line:hover, .l3-cta__line:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Antetítulo: filete y número alineados a la primera línea cuando el texto parte en dos. */
.l3-eyebrow { align-items: flex-start; line-height: 1.5; }
.l3-eyebrow::before { flex: none; margin-top: calc(.75em - 1px); }
.l3-eyebrow .l3-head__num { flex: none; margin-right: -.3rem; }

/* Agenda: color de marca en botones y selección */
.l3-booking, .l3-booking * { --fcal_primary_color: #0A5BD6 !important; }

/* Portada: llamada final; escribir, como enlace bajo el botón de reserva. */
.l3-cta__alt { margin: 1.25rem 0 0; color: var(--color-on-dark-soft); }
.l3-cta__alt .l3-link { color: #FFFFFF; }
.l3-dark .l3-form-card a { color: var(--color-accent); }
.l3-dark .l3-form-card a:hover { color: var(--color-primary); }

/* El calendario se pinta con JS: su hueco se reserva para que la página no salte (CLS). */
.l3-booking { min-height: 34.5rem; }
@media (max-width: 47.99rem) { .l3-booking { min-height: 39.5rem; } }
/* El widget recoloca su contenido al hidratar (CLS 0,15 en 4G): queda oculto hasta que
   theme.js lo marca listo (calendario estable o 5 s como máximo). !important porque el
   plugin fuerza visibility en descendientes. Sin JS el widget no funciona: no se oculta. */
@media (scripting: enabled) {
	.l3-booking:not(.is-ready) * { visibility: hidden !important; }
}

/* -------------------------------------------------------------------------
   Página de contacto: formulario + panel de canales (patrón de estudio:
   canales directos a un lado, formulario al otro, todo en una pantalla).
   ------------------------------------------------------------------------- */
.l3-contact__grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}
/* Dos columnas solo cuando el calendario tiene ≥ 600 px (FluentBooking apila por debajo). */
@media (min-width: 80rem) {
	.l3-contact__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.l3-contact [hidden] { display: none !important; }

/* Selector «Escríbenos / Reserva tu diagnóstico»: dos opciones al mismo nivel. */
.l3-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .375rem;
	margin-bottom: 1.5rem;
	padding: .375rem;
	border-radius: calc(var(--radius-md) + .375rem);
	background: var(--color-bg-deep);
	border: 1px solid var(--color-line);
}
.l3-tab {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 44px;
	padding: .75rem 1rem;
	border-radius: var(--radius-md);
	color: var(--color-ink-soft);
	text-decoration: none;
	transition: background-color var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease, box-shadow var(--duration-fast, 150ms) ease;
}
.l3-tab:hover { color: var(--color-ink); background: rgba(255, 255, 255, .6); }
.l3-tab[aria-selected="true"] {
	background: var(--color-surface);
	color: var(--color-ink);
	box-shadow: 0 1px 2px rgba(15, 30, 56, .08), 0 4px 12px rgba(15, 30, 56, .06);
}
.l3-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.l3-tab__ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	color: var(--color-ink-soft);
	transition: background-color var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}
.l3-tab[aria-selected="true"] .l3-tab__ico { background: var(--color-accent); border-color: var(--color-accent); color: #FFFFFF; }
.l3-tab__txt { display: grid; gap: .1rem; min-width: 0; }
.l3-tab__txt strong { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.l3-tab__txt small { font-size: .8125rem; line-height: 1.3; color: var(--color-ink-soft); }
@media (max-width: 29.99rem) {
	.l3-tab { flex-direction: column; align-items: center; gap: .4rem; padding: .7rem .5rem; text-align: center; }
	.l3-tab__txt small { display: none; }
}
.l3-tabpanel:focus { outline: none; }
.l3-tabpanel__note { margin: 0 0 1.25rem; color: var(--color-ink-soft); font-size: .875rem; }
/* El calendario dentro de la tarjeta: sin su propio marco. */
.l3-form-card .l3-booking { min-height: 33rem; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.l3-form-card--page { padding: clamp(1rem, 2.4vw, 2rem); }
.l3-form-card--page .l3-tabs { margin-bottom: 1.25rem; }
@media (max-width: 47.99rem) {
	.l3-form-card--page .frm-fluent-form textarea { height: 5.5rem; }
	.l3-form-card--page .frm-fluent-form .ff-el-group { margin-bottom: .85rem; }
	.l3-form-card .l3-booking { min-height: 37.5rem; }
	.l3-form-card .l3-booking .calendar-container { padding-inline: .75rem; }
}

/* Panel oscuro con marca de agua del logo. */
.l3-contact__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.5rem, 3.5vw, 2.25rem);
	border-radius: var(--radius-lg);
	background: radial-gradient(120% 80% at 100% 0%, #1B3A6B 0%, var(--color-primary) 60%);
	box-shadow: var(--shadow-card);
}
@media (min-width: 80rem) {
	.l3-contact__panel { position: sticky; top: calc(var(--header-h, 72px) + 1.5rem); }
}
.l3-contact__mark {
	position: absolute;
	z-index: -1;
	right: -18%;
	bottom: -12%;
	width: 75%;
	height: auto;
	opacity: .07;
	pointer-events: none;
}
.l3-contact__title {
	margin: 0 0 1rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--color-accent-on-dark) !important;
}
.l3-contact__title:not(:first-of-type) { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); }

.l3-channels, .l3-next { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.l3-channel { display: grid; grid-template-columns: 2.5rem 1fr; gap: .875rem; align-items: start; }
.l3-channel__ico {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: var(--color-accent-on-dark);
}
.l3-channel h3, .l3-next h3 { margin: 0; font-size: 1rem; line-height: 1.35; color: #FFFFFF; }
.l3-channel p, .l3-next p { margin: .15rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--color-on-dark-soft); }
.l3-channel__link {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 44px;
	color: var(--color-accent-on-dark);
	font-weight: 500;
	font-size: .9375rem;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--duration-fast, 150ms) ease;
}
.l3-channel__link:hover { text-decoration-color: currentColor; }
.l3-channel__link span { transition: translate var(--duration-fast, 150ms) ease; }
.l3-channel__link:hover span { translate: 3px 0; }

.l3-next li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .875rem; align-items: start; }
.l3-next__num {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-inline: auto;
	border-radius: 50%;
	background: var(--color-accent);
	color: #FFFFFF;
	font-size: .8125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.l3-contact__note {
	display: flex;
	gap: .75rem;
	margin: 1.75rem 0 0;
	padding: 1rem 1.125rem;
	border: 1px solid rgba(127, 176, 255, .32);
	border-radius: var(--radius-md);
	background: rgba(127, 176, 255, .08);
	font-size: .875rem;
	line-height: 1.5;
	color: var(--color-on-dark-soft);
}
.l3-contact__note svg { flex: none; margin-top: .1rem; color: var(--color-accent-on-dark); }
.l3-contact__note strong { color: #FFFFFF; font-weight: 600; }

/* Opciones «Soy…» como control segmentado (el radio sigue ahí, accesible, sin el círculo). */
.l3-form-card .ff-el-input--content:has(> .ff-el-form-check .ff-el-form-check-radio) {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .5rem;
	max-width: 30rem;
}
.l3-form-card .frm-fluent-form .ff-el-form-check:has(.ff-el-form-check-radio) { margin: 0; }
.l3-form-card .ff-el-form-check:has(.ff-el-form-check-radio) label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .4rem .5rem;
	border: 1px solid var(--color-line-strong);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	color: var(--color-ink);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	transition: border-color var(--duration-fast, 150ms) ease, background-color var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}
.l3-form-card .ff-el-form-check:has(.ff-el-form-check-radio) label:hover { border-color: var(--color-accent); }
.l3-form-card .ff-el-form-check-label .ff-el-form-check-radio {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	cursor: pointer;
}
.l3-form-card .ff-el-form-check:has(.ff-el-form-check-radio:checked) label {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #FFFFFF;
}
.l3-form-card .ff-el-form-check:has(.ff-el-form-check-radio:focus-visible) label { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.l3-form-card .ff-el-is-error .ff-el-form-check label { border-color: #A93A2D; }
.l3-form-card input[type="radio"], .l3-form-card input[type="checkbox"] { accent-color: var(--color-accent); margin: 0; }
.l3-form-card input[type="checkbox"] { width: 1.125rem; height: 1.125rem; }
.l3-form-card .ff-el-form-control::placeholder { color: #7A869B; }
.l3-form-card .ff-el-form-control:hover:not(:focus) { border-color: var(--color-ink-soft); }
.l3-form-card .ff_submit_btn_wrapper { margin-top: .5rem; margin-bottom: 0; }
@media (max-width: 47.99rem) {
	.l3-form-card .ff-btn-submit { width: 100%; }
}

/* Rejilla según el ancho de la tarjeta (portada y contacto): Nombre · Email · Teléfono en
   una fila cuando caben; «Soy» y el resto a lo ancho. */
.l3-form-card { container-type: inline-size; }
@container (min-width: 30rem) {
	.l3-form-card .frm-fluent-form fieldset {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 1rem;
	}
	.l3-form-card .frm-fluent-form fieldset > * { grid-column: 1 / -1; }
	.l3-form-card .frm-fluent-form fieldset > :nth-child(-n+3 of .ff-el-group:not(.ff-hpsf-container)) { grid-column: auto; }
}
.l3-form-card .ff_tc_label { display: flex !important; gap: .625rem; align-items: flex-start; font-size: .9375rem; color: var(--color-ink-soft); }
.l3-form-card .ff_tc_checkbox { flex: none; padding-top: .2rem; }
.l3-form-card .ff_t_c { padding-left: 0 !important; margin: 0 !important; }
@container (max-width: 22rem) {
	.l3-form-card .ff-el-form-check:has(.ff-el-form-check-radio) label { padding-inline: .25rem; font-size: .875rem; }
}
.l3-contact { scroll-margin-top: calc(var(--header-h, 72px) + .5rem); }

/* Hero de portada: corte del párrafo controlado (salto solo desde tablet). */
.l3-nowrap { white-space: nowrap; }
.l3-br-md { display: none; }
@media (min-width: 48rem) { .l3-br-md { display: inline; } .l3-hero__lede { max-width: none; } }

/* -------------------------------------------------------------------------
   Hero de portada en carrusel (4 mensajes): fundido de fotos con zoom lento,
   texto que entra por piezas, progreso por mensaje y pausa (WCAG 2.2.2).
   ------------------------------------------------------------------------- */
.l3-hero { --l3-slide-dur: 7s; }
.l3-hero__shot {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
}
.l3-hero__shot.is-active { opacity: 1; }
.l3-hero__shot.is-empty { background: var(--color-primary); }
@keyframes l3-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes l3-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
	.l3-hero__shot.is-active { animation: l3-kenburns calc(var(--l3-slide-dur) + 2s) linear both; }
	.l3-hero.is-cycled .l3-hero__slide.is-active > * { --rise: 18px; animation: l3-rise 700ms cubic-bezier(.22, 1, .36, 1) both; }
	.l3-hero.is-cycled .l3-hero__slide.is-active > :nth-child(2) { animation-delay: 80ms; }
	.l3-hero.is-cycled .l3-hero__slide.is-active > :nth-child(3) { animation-delay: 170ms; }
	.l3-hero.is-cycled .l3-hero__slide.is-active > :nth-child(4) { animation-delay: 250ms; }
	.l3-hero__dot[aria-current="true"] .l3-hero__dot-bar i { animation: l3-fill var(--l3-slide-dur) linear both; }
	.l3-hero.is-paused .l3-hero__dot[aria-current="true"] .l3-hero__dot-bar i,
	.l3-hero.is-paused .l3-hero__shot.is-active { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
	.l3-hero__pause { display: none !important; }
	.l3-hero__dot[aria-current="true"] .l3-hero__dot-bar i { transform: scaleX(1); }
}

/* Mensajes apilados en la misma celda: la altura es la del más largo (sin saltos). */
.l3-hero__slides { display: grid; }
.l3-hero__slide { grid-area: 1 / 1; transition: opacity .35s ease, visibility 0s; }
.l3-hero__slide:not(.is-active) { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.l3-hero__slide .l3-hero__ctas { margin: 0; }

/* Pie del hero: confianza a la izquierda, controles a la derecha. */
.l3-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: clamp(1.25rem, 4svh, 2.5rem);
	padding-top: clamp(1rem, 2.4svh, 1.5rem);
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.l3-hero__foot .l3-hero__trust { margin: 0; padding: 0; border: 0; }
.l3-hero__nav { display: flex; align-items: center; gap: .25rem; }
.l3-hero__pause {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin-right: .5rem;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.l3-hero__pause:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.l3-hero__pause .l3-i-play,
.l3-hero__pause[aria-pressed="true"] .l3-i-pause { display: none; }
.l3-hero__pause[aria-pressed="true"] .l3-i-play { display: inline; }
.l3-hero__dot {
	display: grid;
	gap: .45rem;
	width: 6.5rem;
	min-height: 44px;
	padding: .5rem .25rem;
	border: 0;
	background: none;
	color: var(--color-on-dark-soft);
	font: inherit;
	font-size: .75rem;
	text-align: left;
	cursor: pointer;
	transition: color .15s ease;
}
.l3-hero__dot:hover, .l3-hero__dot[aria-current="true"] { color: #FFFFFF; }
.l3-hero__dot-bar { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .22); border-radius: 2px; }
.l3-hero__dot-bar i { position: absolute; inset: 0; background: var(--color-accent-on-dark); transform: scaleX(0); transform-origin: left; }
.l3-hero__dot-num { color: var(--color-accent-on-dark); font-variant-numeric: tabular-nums; font-weight: 600; }
.l3-hero__pause:focus-visible, .l3-hero__dot:focus-visible { outline: 2px solid var(--color-accent-on-dark); outline-offset: 2px; }
@media (max-width: 47.99rem) {
	.l3-hero__foot { flex-direction: column; align-items: stretch; }
	.l3-hero__nav { justify-content: space-between; }
	.l3-hero__dot { flex: 1; width: auto; }
	.l3-hero__dot-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Aviso IA de la foto activa. */
.l3-hero__pin:not(.is-active) { display: none; }
.l3-hero__pin > .vibe-aipin { z-index: 3; top: calc(var(--header-h, 72px) + 1rem); right: max(1rem, env(safe-area-inset-right)); bottom: auto; }

/* Velo del hero más ligero (Carlos 2026-12-04: «las imágenes se ven muy oscuras»): azul solo
   detrás del texto; la foto queda limpia en la mitad derecha. Titular y párrafo acotados para
   que nunca pisen la zona clara. */
.l3-hero__veil {
	background:
		linear-gradient(0deg, rgba(11, 22, 43, .55) 0%, rgba(11, 22, 43, 0) 28%),
		linear-gradient(90deg, rgba(11, 22, 43, .9) 0%, rgba(11, 22, 43, .74) 38%, rgba(11, 22, 43, .32) 58%, rgba(11, 22, 43, .06) 76%, rgba(11, 22, 43, 0) 100%);
}
.l3-hero__title { max-width: none; }
.l3-hero__title--alt .l3-tone { white-space: pre-line; }
.l3-hero__lede { max-width: 46ch; }
@media (min-width: 48rem) { .l3-hero__lede { max-width: 46ch; } }
@media (max-width: 47.99rem) {
	.l3-hero__veil { background: linear-gradient(180deg, rgba(11, 22, 43, .5) 0%, rgba(11, 22, 43, .7) 35%, rgba(11, 22, 43, .82) 100%); }
}

/* Hero en móvil (Carlos 2026-12-04: «en mobile no se ve bien»): la foto se ve limpia arriba y
   el texto se apoya abajo sobre el velo; cada mensaje se alinea al pie para que no salte al
   cambiar; segundo botón como enlace; confianza en una línea; los puntos dejan sitio a WhatsApp. */
@media (max-width: 47.99rem) {
	.l3-hero { align-items: end; }
	.l3-hero__veil {
		background: linear-gradient(180deg,
			rgba(11, 22, 43, .45) 0%,
			rgba(11, 22, 43, .08) 16%,
			rgba(11, 22, 43, .12) 26%,
			rgba(11, 22, 43, .7) 42%,
			rgba(11, 22, 43, .9) 58%,
			rgba(11, 22, 43, .94) 100%);
	}
	.l3-hero__inner { padding-bottom: 1.5rem; }
	.l3-hero__slide { display: flex; flex-direction: column; justify-content: flex-end; }
	.l3-hero__title { font-size: clamp(2rem, 9.4vw, 2.75rem); line-height: 1.04; margin-bottom: .875rem; }
	.l3-hero__lede { font-size: .9375rem; margin-bottom: 1.25rem; }
	.l3-hero__ctas { gap: .25rem; }
	.l3-hero__ctas .l3-btn--secondary,
	.l3-hero__ctas .l3-btn:not(.l3-btn--primary) {
		width: auto; min-height: 44px; margin-inline: auto; padding-inline: .75rem;
		border-color: transparent; background: none; text-decoration: underline; text-underline-offset: .25em;
	}
	.l3-hero__foot { gap: .875rem; margin-top: 1rem; padding-top: .875rem; }
	.l3-hero__trust { flex-wrap: nowrap; font-size: .8125rem; gap: 1rem; }
	.l3-hero__trust li { white-space: nowrap; }
	.l3-hero__trust li:nth-child(n+3) { display: none; }
	.l3-hero__nav { padding-right: 4.75rem; }
}
@media (max-width: 47.99rem) and (max-height: 45rem) {
	.l3-hero__veil { background: linear-gradient(180deg, rgba(11, 22, 43, .45) 0%, rgba(11, 22, 43, .1) 12%, rgba(11, 22, 43, .78) 30%, rgba(11, 22, 43, .92) 48%, rgba(11, 22, 43, .94) 100%); }
}

/* Navegación del carrusel con puntitos (Carlos 2026-12-04: sin nombres ni barra). El nombre de
   cada mensaje sigue en el botón para lectores de pantalla; la barra <i> sigue corriendo invisible
   porque su fin de animación es el temporizador del carrusel. */
.l3-hero__nav { gap: 0; }
.l3-hero__dot {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	min-height: 44px;
	padding: 0;
}
.l3-hero__dot-bar {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .4);
	transition: background-color .25s ease, transform .25s ease;
}
.l3-hero__dot:hover .l3-hero__dot-bar { background: rgba(255, 255, 255, .7); }
.l3-hero__dot[aria-current="true"] .l3-hero__dot-bar { background: #FFFFFF; transform: scale(1.25); }
.l3-hero__dot-bar i { opacity: 0; }
.l3-hero__dot-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.l3-hero__dot:focus-visible { outline-offset: -4px; border-radius: 50%; }
@media (max-width: 47.99rem) {
	.l3-hero__nav { justify-content: flex-start; }
	.l3-hero__dot { flex: none; width: 44px; }
}

/* Fotos verticales del hero en móvil: <picture> transparente al diseño y pin «IA» de la foto que se ve. */
.l3-hero__pic { display: contents; }
.l3-hero__pin--m { display: none; }
@media (max-width: 47.99rem) {
	.l3-hero__pin--d { display: none !important; }
	.l3-hero__pin--m.is-active { display: block; }
	.l3-hero__shot .l3-hero__img { object-position: center top !important; }
	/* La foto ya trae el marino abajo: el velo solo asegura la cabecera y el texto. */
	.l3-hero__veil { background: linear-gradient(180deg, rgba(11, 22, 43, .4) 0%, rgba(11, 22, 43, 0) 14%, rgba(11, 22, 43, 0) 36%, rgba(11, 22, 43, .55) 52%, rgba(11, 22, 43, .8) 100%); }
}

/* Hero móvil, opción B del muestrario (Carlos 2026-12-04): velo mínimo para que la foto se vea,
   sin entradilla (la cuota fija ya está en la línea de confianza) y sombra suave en el texto. */
@media (max-width: 47.99rem) {
	.l3-hero__veil { background: linear-gradient(180deg, rgba(11, 22, 43, .45) 0%, rgba(11, 22, 43, .05) 14%, rgba(11, 22, 43, .05) 38%, rgba(11, 22, 43, .55) 58%, rgba(11, 22, 43, .85) 100%); }
	.l3-hero__lede { display: none; }
	.l3-hero__title, .l3-hero__eyebrow { text-shadow: 0 2px 18px rgba(11, 22, 43, .85), 0 1px 3px rgba(11, 22, 43, .6); }
	.l3-hero__title .l3-tone { color: #9CC2FF; }
}
@media (max-width: 47.99rem) and (max-height: 45rem) {
	.l3-hero__veil { background: linear-gradient(180deg, rgba(11, 22, 43, .45) 0%, rgba(11, 22, 43, .05) 12%, rgba(11, 22, 43, .45) 28%, rgba(11, 22, 43, .82) 42%, rgba(11, 22, 43, .9) 100%); }
}
