/*
	LOOKWISE — ajustes propios sobre Solid State (HTML5 UP)
	No sustituye el pipeline SCSS del template; solo añade lo específico
	de marca que no vale la pena tocar en las capas base/layout.
*/

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Botón "Ingresar a mi módulo" — siempre visible en la nav, en todas las
   resoluciones (nunca detrás del menú hamburguesa). */
#header nav a.btn-login {
	box-shadow: none;
	border: solid 2px #E9B44C;
	color: #ffffff !important;
	border-radius: 6px;
	font-weight: 700;
	padding: 0 1.1em;
	margin-right: 0.35em;
}

#header nav a.btn-login:hover,
#header nav a.btn-login:focus-visible {
	background-color: rgba(233, 180, 76, 0.14);
}

@media (max-width: 480px) {
	#header nav a.btn-login {
		font-size: 0.72em;
		padding: 0 0.8em;
		text-indent: 0;
		width: auto;
	}
}

/* Foco visible consistente sobre fondo oscuro */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.button:focus-visible {
	outline: 2px solid #E9B44C;
	outline-offset: 3px;
}

/* Eyebrow / etiqueta de sección */
.eyebrow {
	display: block;
	font-family: 'Source Sans 3', -apple-system, sans-serif;
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #E9B44C;
	margin-bottom: 0.85em;
}

/* Énfasis editorial dentro de titulares (equivalente al <em> del sitio
   principal, aquí en mayúsculas por herencia del propio h1/h2 del tema) */
h1 em, h2 em, h3 em { font-style: italic; color: #E9B44C; }

/* Nota de disponibilidad bajo el formulario de WhatsApp */
.wa-nota {
	color: rgba(232, 237, 246, 0.55);
	font-size: 0.72em;
	line-height: 1.7;
	margin-top: 0.75em !important;
}

/* Aviso de previsualización (banda superior, no forma parte del sitio real) */
/* Tablas de datos (si aparecieran cifras) con tabular-nums */
.num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   1. Banner — subrayado "hecho a mano" sobre la frase clave
   Se activa por CSS puro cuando main.js quita body.is-preload (mismo gancho
   que ya usa el tema para revelar #banner h2/p). No depende de lookwise.js:
   si el JS de la marca fallara, el texto sigue siendo legible (negrita) y
   solo se pierde el trazo animado, nunca el contenido.
   ========================================================================== */
#banner p .subraya {
	position: relative;
	display: inline;
	font-weight: 600;
	color: #ffffff;
}

#banner p .subraya::after {
	content: "";
	position: absolute;
	left: -0.08em;
	right: -0.08em;
	bottom: -0.14em;
	height: 0.5em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11.5 C 34 4, 58 15, 84 9 C 112 2.5, 140 14.5, 168 8 C 186 4, 202 10.5, 217 6.5' fill='none' stroke='%23E9B44C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 100% 100%;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
	transition-delay: 1.5s;
	pointer-events: none;
}

body:not(.is-preload) #banner p .subraya::after {
	transform: scaleX(1);
}

/* ==========================================================================
   2. #four — línea de tiempo del método (4 pasos)
   Estado base (sin JS): el paso 1 llega marcado como activo desde el
   propio HTML; ningún paso queda oculto ni atenuado si lookwise.js no corre.
   ========================================================================== */
#four .method-track {
	position: relative;
	max-width: 46em;
	margin: 0 auto 2.75em auto;
	padding: 0 0.4em;
}

#four .method-track-line {
	position: absolute;
	left: 1.1em;
	right: 1.1em;
	top: 0.55em;
	height: 2px;
	background-color: rgba(233, 180, 76, 0.18);
	overflow: hidden;
}

#four .method-track-fill {
	display: block;
	height: 100%;
	width: 12.5%;
	background-color: #E9B44C;
	transition: width 0.35s ease;
}

#four .method-track-steps {
	position: relative;
	display: flex;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0;
}

#four .method-track-steps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	padding: 0;
}

#four .method-track-dot {
	width: 1.1em;
	height: 1.1em;
	border-radius: 100%;
	background-color: #0C1526;
	border: solid 2px rgba(233, 180, 76, 0.35);
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#four .method-track-num {
	font-family: "Source Sans 3", -apple-system, sans-serif;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(232, 237, 246, 0.45);
	transition: color 0.25s ease;
}

#four .method-track-steps li.is-active .method-track-dot,
#four .method-track-steps li.is-done .method-track-dot {
	background-color: #E9B44C;
	border-color: #E9B44C;
}

#four .method-track-steps li.is-active .method-track-dot {
	transform: scale(1.2);
}

#four .method-track-steps li.is-active .method-track-num {
	color: #E9B44C;
}

#four .method-track-steps li.is-done .method-track-num {
	color: rgba(232, 237, 246, 0.75);
}

#four .features article {
	transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#four .features article.is-active {
	box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.4);
}

#four .features article.is-dim {
	opacity: 0.5;
}

@media screen and (max-width: 480px) {
	#four .method-track {
		padding: 0;
	}
	#four .method-track-line {
		left: 0.85em;
		right: 0.85em;
	}
	#four .method-track-num {
		font-size: 0.64em;
	}
}

/* ==========================================================================
   3. #one — lista "la diferencia": revelado escalonado + marca aceptado/descartado
   Sin lookwise.js (o sin soporte de IntersectionObserver) la clase
   .reveal-armed nunca se agrega y la lista queda íntegramente visible.
   ========================================================================== */
#one ul.reveal-list li {
	position: relative;
	padding-left: 2.1em;
}

#one ul.reveal-list li::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 1.4em;
	font-size: 0.85em;
	text-align: center;
	line-height: 1;
}

#one ul.reveal-list li.crit-ok::before {
	content: "\f058"; /* check-circle */
	color: #34D399;
}

#one ul.reveal-list li.crit-out::before {
	content: "\f05e"; /* ban */
	color: #F87171;
}

#one ul.reveal-list.reveal-armed li {
	opacity: 0;
	transform: translateY(0.85em);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

#one ul.reveal-list.reveal-armed li:nth-child(1) { transition-delay: 0s; }
#one ul.reveal-list.reveal-armed li:nth-child(2) { transition-delay: 0.1s; }
#one ul.reveal-list.reveal-armed li:nth-child(3) { transition-delay: 0.2s; }
#one ul.reveal-list.reveal-armed li:nth-child(4) { transition-delay: 0.3s; }

#one ul.reveal-list.reveal-armed li.in-view {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   4. Párrafos "remate" — cierre de bloque #one / #two
   ========================================================================== */
p.remate {
	margin: 1.6em 0 0 0 !important;
	padding: 0.15em 0 0.15em 1.05em;
	border-left: solid 3px #E9B44C;
	font-family: Newsreader, Georgia, serif;
	font-style: italic;
	font-size: 1.2em;
	line-height: 1.55;
}

/* ==========================================================================
   5. #two — realce sutil al pasar el mouse por cada entregable
   ========================================================================== */
#two ul.alt li {
	border-radius: 6px;
	margin: 0 -0.85em;
	padding: 0.55em 0.85em;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#two ul.alt li:hover,
#two ul.alt li:focus-within {
	background-color: rgba(233, 180, 76, 0.05);
	box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(233, 180, 76, 0.2);
	transform: translateY(-2px);
}

/* ==========================================================================
   6. #banner — legibilidad del párrafo del héroe
   El tema trae `text-transform: uppercase` en #banner p. Servía cuando el
   párrafo tenía 44 palabras; con el copy v2 son 93 y en versalitas queda un
   muro: 6 líneas en escritorio y ~14 en un teléfono de 320px. Se pasa a caja
   normal (misma Newsreader del resto del cuerpo, que sí se lee bien) y se
   limita la medida en pantallas anchas. El titular conserva su tratamiento.
   ========================================================================== */
#banner p {
	text-transform: none;
	letter-spacing: 0.01em;
	line-height: 1.75;
	font-size: 1.05em;
}

@media screen and (min-width: 981px) {
	#banner p {
		max-width: 40em;   /* medida de lectura cómoda: ~75 caracteres por línea */
	}
}

@media screen and (max-width: 736px) {
	#banner p {
		font-size: 0.95em;
		line-height: 1.7;
	}
}

/* Mensaje de error del formulario de WhatsApp.
   Estaba como style="" en el HTML; vive aquí para no mezclar capas. */
#wa-error {
	color: #f2b8b8;
	font-weight: 600;
	margin: 0 0 1em 0;
}

#wa-error[hidden] {
	display: none;
}

/* Salto al contenido: invisible hasta que el teclado lo enfoca.
   Primer tabulador de la página para quien no usa mouse. */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	padding: 0.85em 1.4em;
	background: #1E3A8A;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 3px solid #B45309;
}

.skip-link:focus {
	left: 0;
}
