/* =====================================================================
   LA NUEVA BARBERÍA · inicio.css
   Bloques del Inicio: 01 Primera pregunta · 02 Reels · 03 Niveles · 04 Calculadora
   Colores del tema (Apariencia › Editor › Estilos); el acento sigue a la
   variación de estilo (azul o rojo).
   ===================================================================== */
.lnb-p1, .lnb-rin, .lnb-niv2, .lnb-calc {
	--ac: var(--wp--preset--color--azul, #1E4C8A);
	--ac-claro: var(--wp--preset--color--azul-claro, #B7C7E0);
	--crema: var(--wp--preset--color--crema, #F5EBDA);
	--arena: var(--wp--preset--color--arena, #EDDFC4);
	--cafe: var(--wp--preset--color--cafe, #30211A);
	--cafe-2: var(--wp--preset--color--cafe-2, #6B5A4B);
	--linea: var(--wp--preset--color--linea, #D6C29A);
	--tit: var(--wp--preset--font-family--titulos, "Bebas Neue", Impact, sans-serif);
	box-sizing: border-box;
}
.lnb-p1 *, .lnb-rin *, .lnb-niv2 *, .lnb-calc * { box-sizing: border-box; }

/* ---------- 01 Primera pregunta (panel sobre fondo café) ---------- */
.lnb-p1 {
	background: var(--wp--preset--color--panel, #3D2B22);
	border: 1px solid var(--wp--preset--color--panel-linea, #5A4335);
	border-radius: 16px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--crema);
}
.lnb-p1 p { margin: 0; }
.p1-cab { display: flex; flex-direction: column; gap: 2px; }
.p1-tit { font-family: var(--tit); font-size: 32px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; color: var(--crema); }
.p1-ayuda { font-size: 15px; color: var(--linea); line-height: 1.4; }
.p1-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.p1-opt {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 16.5px;
	line-height: 1.25;
	background: var(--cafe);
	color: var(--crema);
	box-shadow: inset 0 0 0 1px var(--cafe-2);
	transition: background 140ms, color 140ms, transform 120ms;
	-webkit-tap-highlight-color: transparent;
}
.p1-opt:hover { box-shadow: inset 0 0 0 1px var(--linea); }
.p1-opt:active { transform: scale(.99); }
.p1-opt:focus-visible { outline: 3px solid var(--ac-claro); outline-offset: 2px; }
.p1-opt[aria-checked="true"] { background: var(--crema); color: var(--cafe); box-shadow: none; }
.p1-punto { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.p1-opt[aria-checked="true"] .p1-punto::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); }
.lnb-p1 .p1-seguir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px 12px;
	border-radius: 10px;
	background: var(--ac);
	color: var(--wp--preset--color--sobre-azul, #EEF3FB);
	font-family: var(--tit);
	font-size: 22px;
	letter-spacing: .045em;
	text-transform: uppercase;
	text-decoration: none;
	align-self: flex-start;
}
.lnb-p1 .p1-seguir[hidden] { display: none; }
.lnb-p1 .p1-seguir svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lnb-p1 .p1-seguir:hover { background: var(--wp--preset--color--azul-2, #1B54C4); }
.lnb-p1 .p1-seguir.entra { animation: p1-entra 260ms cubic-bezier(.2, 0, 0, 1) both; }
@keyframes p1-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.p1-nota { font-size: 14px; color: var(--linea); }
@media (max-width: 781.98px) {
	.lnb-p1 { padding: 16px 14px; gap: 10px; }
	.p1-tit { font-size: 25px; }
	.p1-ayuda { font-size: 14px; }
	.p1-opt { min-height: 50px; padding: 10px 14px; font-size: 15px; gap: 10px; }
	.p1-punto { width: 18px; height: 18px; }
	.p1-nota { font-size: 13px; }
	.calc-n { font-size: 32px; }
	.lnb-calc { padding: 18px; }
}

/* ---------- 02 Reels en Inicio (cuadrícula; el primero ocupa dos filas) ---------- */
.lnb-rin { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 14px; }
.lnb-rin .rin:first-child { grid-row: span 2; }
.lnb-rin-1 { grid-template-columns: minmax(0, 420px); }
.lnb-rin-2 { grid-template-columns: 1fr 1fr; }
.lnb-rin-2 .rin:first-child, .lnb-rin-1 .rin:first-child { grid-row: span 2; }
.lnb-rin-2 .rin:nth-child(2) { grid-row: span 2; }
.rin {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: var(--cafe);
	color: var(--crema);
	text-decoration: none;
	isolation: isolate;
}
.rin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(.2, 0, 0, 1); }
.rin:hover img { transform: scale(1.03); }
.rin:focus-visible { outline: 3px solid var(--wp--preset--color--azul-2, #1B54C4); outline-offset: 3px; }
.rin-sombra { position: absolute; inset: 0; background: linear-gradient(rgba(48, 33, 26, 0) 35%, rgba(48, 33, 26, .9)); }
.rin-play {
	position: absolute; left: 50%; top: 40%;
	width: 48px; height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(245, 235, 218, .22);
	border: 2px solid var(--crema);
	display: flex; align-items: center; justify-content: center;
}
.rin:first-child .rin-play { width: 72px; height: 72px; }
.rin-play svg { width: 22px; height: 22px; fill: var(--crema); margin-left: 3px; }
.rin-tx { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.rin-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--ac); color: var(--wp--preset--color--sobre-azul, #EEF3FB); }
.rin-tit { font-family: var(--tit); text-transform: uppercase; line-height: 1; font-size: 21px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rin:first-child .rin-tit { font-size: 34px; }
.lnb-ini-vacio { padding: 20px; border: 2px dashed var(--linea); border-radius: 12px; text-align: center; }
@media (max-width: 781.98px) {
	.lnb-rin, .lnb-rin-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
	.lnb-rin .rin:first-child { grid-column: 1 / -1; grid-row: span 2; }
	.lnb-rin-2 .rin:nth-child(2) { grid-row: span 2; grid-column: 1 / -1; }
	.rin:first-child .rin-tit { font-size: 28px; }
}

/* ---------- 03 Niveles (escalera) ---------- */
.lnb-niv2 { display: flex; flex-direction: column; }
.niv2-esc { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; }
.niv2-esc-b {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	min-height: calc(96px + var(--i) * 30px);
	padding: 12px 10px;
	border-radius: 10px 10px 0 0;
	text-align: left;
	color: var(--cafe);
	background: var(--t);
	transition: background 160ms, color 160ms;
	-webkit-tap-highlight-color: transparent;
}
.niv2-esc-b:nth-of-type(1) { --t: #E6D7B8; }
.niv2-esc-b:nth-of-type(2) { --t: #DFCCA6; }
.niv2-esc-b:nth-of-type(3) { --t: #D6C29A; }
.niv2-esc-b:nth-of-type(4) { --t: #CDB68A; }
.niv2-esc-b:nth-of-type(5) { --t: #C2A97A; }
.niv2-esc-b:nth-of-type(6) { --t: #B39A6B; }
.niv2-esc-b:nth-of-type(7) { --t: #A68C5E; }
.niv2-esc-b:nth-of-type(8) { --t: var(--ac); color: var(--crema); }
.niv2-esc-b[aria-selected="true"] { background: var(--cafe); color: var(--crema); }
.niv2-esc-b:focus-visible { outline: 3px solid var(--ac-claro); outline-offset: 2px; }
.niv2-k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; line-height: 1.2; }
.niv2-t { font-family: var(--tit); font-size: 22px; line-height: 1; text-transform: uppercase; }
.niv2-caja {
	background: var(--cafe);
	color: var(--crema);
	border-radius: 0 0 14px 14px;
	padding: 24px 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}
.niv2-caja > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.niv2-caja p { margin: 0; }
.niv2-ck { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--linea); }
.niv2-ct { font-family: var(--tit); font-size: 34px; line-height: .95; text-transform: uppercase; }
.niv2-cd { font-size: 18px; line-height: 1.5; }
.lnb-niv2 .niv2-leer { color: var(--crema); font-weight: 600; }
/* teléfono: la escalera se acuesta. Cada nivel es una barra que crece hacia
   la derecha (Entusiasta la más corta, Libre a todo lo ancho) y el texto del
   nivel elegido se abre justo debajo de su barra. */
@media (max-width: 781.98px) {
	.niv2-esc { grid-template-columns: 1fr; gap: 6px; align-items: start; }
	.niv2-esc-b {
		width: calc(58% + var(--i) * 6%);
		min-height: 0;
		padding: 9px 14px 8px;
		border-radius: 10px;
		gap: 1px;
		position: relative;
	}
	.niv2-esc-b .niv2-k { font-size: 10.5px; letter-spacing: .09em; }
	.niv2-esc-b .niv2-t { font-size: 20px; }
	.niv2-esc-b[aria-selected="true"]::after {
		content: "";
		position: absolute;
		left: 22px; bottom: -7px;
		width: 14px; height: 14px;
		background: var(--cafe);
		transform: rotate(45deg);
		border-radius: 2px;
	}
	.niv2-esc .niv2-caja { margin: 2px 0 6px; border-radius: 12px; padding: 18px 18px 16px; gap: 10px; }
	.niv2-caja > div { flex-basis: 100%; }
	.niv2-ck { display: none; }
	.niv2-ct { font-size: 26px; }
	.niv2-cd { font-size: 16px; }
	.niv2-caja.entra { animation: niv2-abre 240ms cubic-bezier(.2, 0, 0, 1) both; }
}
@keyframes niv2-abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 04 Calculadora ---------- */
.lnb-calc { background: var(--crema); color: var(--cafe); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.lnb-calc p { margin: 0; }
.calc-campos, .calc-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc-campos label { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.calc-campos input {
	font: inherit; font-size: 22px; font-weight: 700;
	padding: 12px 14px;
	border-radius: 10px;
	border: 2px solid var(--linea);
	background: var(--wp--preset--color--papel, #FFFBF3);
	color: var(--cafe);
	width: 100%;
}
.calc-campos input:focus { outline: 3px solid var(--ac-claro); border-color: var(--ac); }
.calc-res > div { background: var(--arena); border-radius: 12px; padding: 16px; }
.calc-res > div > p:first-child { font-size: 14px; color: var(--cafe-2); }
.calc-res .calc-fuerte { background: var(--cafe); color: var(--crema); }
.calc-res .calc-fuerte > p:first-child { color: var(--linea); }
.calc-n { font-family: var(--tit); font-size: 40px; line-height: 1; text-transform: uppercase; }
.calc-fuerte .calc-n { color: var(--ac-claro); }
.lnb-calc.negativo .calc-n[data-r="queda"] { color: var(--wp--preset--color--rojo, #C1121F); }
.calc-nota { font-size: 14px; color: var(--cafe-2); }
@media (max-width: 781.98px) {
	.calc-campos, .calc-res { grid-template-columns: 1fr; }
}

/* nota en texto sutil debajo de las opciones: «3 minutos · Gratis · Sin registro» */
.lnb-p1 .p1-chips { display: flex; flex-wrap: wrap; margin: 0; font-size: 14px; color: var(--linea); }
.lnb-p1 .p1-chips span + span::before { content: "·"; margin: 0 8px; opacity: .7; }
