/* BrandPet historia (template-brandpet.php).
   Un solo escenario fijo (sticky) que avanza con el scroll. El nombre está
   siempre en el centro exacto de la pantalla; los textos van alrededor.
   El JS pone data-fase y las variables: --fit, --g-* (medidas de la fuente
   para la retícula), --logo / --fondo / --tinta (fase de color), --p.
   Ojo: ningún ancestro puede tener overflow (desactiva el sticky). */

.bph { position: relative; height: 1700svh; }
/* El menú flota desde el inicio en esta página: detrás, el mismo blanco del escenario (no el gris del sitio). */
body.page-template-template-brandpet { background: #fff; }
/* Arriba del todo el escenario es fucsia claro y pasa a blanco mientras se borra BRANDPET (el JS pone --fondo/--tinta/--logo).
   El JS también le da a .bph un margin-top negativo del alto del menú, para que el escenario quede detrás del menú flotante. */
.bph__escena {
	position: sticky; top: 0; height: 100svh; overflow: hidden;
	background: var(--fondo, #fff); color: var(--tinta, #111);
	--tam: min(13vw, 22svh);
	--tope: calc(var(--arriba, 120px) + clamp(10px, 3svh, 32px));
	--ease: cubic-bezier(.22, .61, .36, 1);
	--rebote: cubic-bezier(.34, 1.56, .64, 1);
	transition: background-color .5s var(--ease), color .5s var(--ease);
}

/* ---------- textos: título arriba, párrafo abajo (uno por fase) ---------- */
.bph__arriba, .bph__abajo {
	position: absolute; left: 0; right: 0; margin: 0 auto; padding: 0 16px; text-align: center;
	opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease);
	pointer-events: none;
}
.bph__arriba { top: var(--tope); max-width: 900px; }
.bph__abajo { bottom: clamp(56px, 11svh, 120px); max-width: 560px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; }
.bph__eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acento, var(--pawnia-rosa)); transition: color .5s; }
.bph__titulo {
	margin: 10px auto 0; max-width: 22ch; font-family: var(--koi-font-texto); font-weight: 600;
	font-size: clamp(24px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.02em; color: inherit;
}
/* El JS enciende (data-on) el título y el párrafo de la fase actual. Antes del JS, el de la intro. */
.bph__escena[data-fase="0"] .bph__arriba[data-texto="0"], .bph__arriba[data-on] { opacity: 1; transform: none; }
.bph__escena[data-fase="0"] .bph__abajo[data-texto="0"], .bph__abajo[data-on] { opacity: .75; transform: none; }

/* ---------- el nombre, siempre al centro ---------- */
.bph__centro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bph__marca { position: relative; font-size: calc(var(--tam) * var(--fit, 1)); line-height: 1; white-space: nowrap; }
.bph__palabra {
	/* En bloque: así la línea base depende solo de su fuente (la retícula la calcula con esa medida). */
	display: block; min-height: 1em; position: relative; z-index: 1; font-family: var(--koi-font-display); font-weight: 400; line-height: 1;
	white-space: pre; text-align: center; /* en celular BRANDPET va en dos líneas (el JS pone "BRAND\nPET") */
	color: var(--logo, var(--pawnia-rosa)); transition: color .5s var(--ease);
}
.bph__cursor {
	position: absolute; left: 100%; top: .02em; width: .06em; height: .74em; margin-left: .05em;
	background: var(--logo, var(--pawnia-rosa)); border-radius: 2px; opacity: 0;
}
.bph__escena[data-fase="1"] .bph__cursor { opacity: 1; animation: bph-cursor 1s steps(1) infinite; }
.bph__escena[data-fase="1"][data-escribiendo] .bph__cursor { animation: none; }
@keyframes bph-cursor { 50% { opacity: 0; } }
.bph__escena[data-fase="2"] .bph__palabra,
.bph__escena[data-nombre] .bph__palabra { color: #111; }
/* BRANDPET arranca enorme y se achica letra a letra al borrarse (el JS mueve --fit). */
.bph__escena[data-fase="0"] .bph__marca,
.bph__escena[data-fase="1"] .bph__marca { transition: font-size .35s var(--ease), transform .35s var(--ease); }
/* Negula dibuja la mayúscula arriba de su caja: se baja un poco para que BRANDPET quede al centro óptico. */
.bph__escena[data-fase="0"] .bph__marca,
.bph__escena[data-fase="1"]:not([data-nombre]) .bph__marca { transform: translateY(.13em); }
/* Desde el símbolo el logo se achica (el JS baja --fit): con transición para que no salte. */
.bph__escena[data-fase="4"] .bph__marca, .bph__escena[data-fase="5"] .bph__marca,
.bph__escena[data-fase="6"] .bph__marca, .bph__escena[data-fase="7"] .bph__marca { transition: font-size .6s var(--ease); }
.bph__medidor {
	position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; white-space: pre;
	font-size: var(--tam); line-height: 1; font-family: var(--koi-font-display); font-weight: 400;
}

/* ---------- intro (fase 0): etiqueta arriba y ecualizador abajo de BRANDPET, como en MediaSnout ---------- */
.bph__rec, .bph__eq { position: absolute; left: 50%; z-index: 2; transform: translateX(-50%); transition: opacity .4s var(--ease); pointer-events: none; }
.bph__rec { bottom: calc(100% + 2svh); display: inline-flex; align-items: center; gap: 8px; font-family: var(--koi-font-texto); font-size: 14px; font-weight: 800; letter-spacing: .2em; color: #fff; white-space: nowrap; }
.bph__rec i { width: 12px; height: 12px; border-radius: 50%; background: #FFD60A; animation: bph-parpadeo 1.2s steps(1) infinite; }
@keyframes bph-parpadeo { 50% { opacity: .15; } }
.bph__eq { top: calc(100% + 2svh); display: flex; align-items: flex-end; gap: 5px; height: 7svh; }
.bph__eq i { width: clamp(4px, .6vw, 8px); height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .8); transform-origin: bottom; animation: bph-eq 1.1s var(--ease) calc(var(--i) * -.13s) infinite alternate; }
@keyframes bph-eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.bph__escena:not([data-fase="0"]) .bph__rec, .bph__escena:not([data-fase="0"]) .bph__eq { opacity: 0; }

/* ---------- símbolo: la mancha detrás del nombre (el JS pone --mancha 0-1) ---------- */
.bph__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bph__mancha {
	position: absolute; z-index: 0; left: -.5em; top: -.3em; width: calc(100% + 1em); height: calc(100% + .6em);
	fill: var(--logo, var(--pawnia-rosa)); pointer-events: none;
	opacity: var(--relleno, 0);
	transition: fill .5s var(--ease), opacity .3s;
}
/* Trazo "Illustrator": misma caja que la mancha. El SVG se estira (preserveAspectRatio none), así que
   las líneas no escalan (non-scaling-stroke) y los nodos van en HTML encima, en %, para que no se deformen. */
.bph__trazo, .bph__nodos {
	position: absolute; z-index: 3; left: -.5em; top: -.3em; width: calc(100% + 1em); height: calc(100% + .6em);
	overflow: visible; pointer-events: none; opacity: 0; transition: opacity .35s;
	--ai: #1473E6;
}
.bph__escena[data-nodos] .bph__trazo, .bph__escena[data-nodos] .bph__nodos { opacity: 1; }
.bph__tramo { fill: none; stroke: var(--ai); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bph__manijas line { stroke: var(--ai); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bph__manijas { opacity: 0; transition: opacity .2s; }
.bph__manijas[data-on] { opacity: 1; }
.bph__nodo {
	position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-sizing: border-box;
	background: #fff; border: 1.5px solid var(--ai); transform: scale(0); transition: transform .3s var(--rebote), background-color .2s;
}
.bph__nodo[data-on] { transform: scale(1); }
.bph__nodo[data-sel] { background: var(--ai); }
.bph__manija { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ai); opacity: 0; transition: opacity .2s; }
.bph__manija[data-on] { opacity: 1; }
/* La pluma sigue la punta del trazo (su punta está arriba al centro del ícono). */
.bph__pluma { position: absolute; width: 22px; height: 22px; margin-left: -11px; opacity: 0; transform: rotate(-30deg); transform-origin: 50% 0; transition: opacity .2s; }
.bph__escena[data-pluma] .bph__pluma { opacity: 1; }
/* Flecha de selección directa: arrastra el nodo activo (su punta está arriba a la izquierda). */
.bph__flecha { position: absolute; width: 20px; height: 20px; margin: -2px 0 0 -3px; opacity: 0; transition: opacity .2s; }
.bph__escena[data-flecha] .bph__flecha { opacity: 1; }
.bph__flecha svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 1.5; stroke-linejoin: round; }
.bph__pluma svg { display: block; width: 100%; height: 100%; fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; }
.bph__pluma circle { fill: #111; stroke: none; }
.bph__escena[data-mancha] .bph__palabra { color: var(--pareja, var(--fondo, #fff)); }
.bph__gota { position: absolute; z-index: 0; border-radius: 50%; background: var(--logo, var(--pawnia-rosa)); transform: scale(0); transition: transform .5s var(--rebote); }
.bph__gota--0 { width: .24em; height: .22em; right: -.76em; top: -.36em; }
.bph__gota--1 { width: .12em; height: .12em; right: -.9em; top: .02em; transition-delay: .08s; }
.bph__gota--2 { width: .16em; height: .15em; left: -.8em; bottom: -.32em; transition-delay: .16s; }
.bph__escena[data-gotas]:not([data-fase="7"]) .bph__gota { transform: scale(1); }
/* Fases 5-7 (voz, movimiento, aplicaciones): solo el nombre, sin la mancha ni las gotas detrás (Santiago, 2026-10-05). */
.bph__escena:is([data-fase="5"], [data-fase="6"], [data-fase="7"]) .bph__mancha { opacity: 0; }
.bph__escena:is([data-fase="5"], [data-fase="6"], [data-fase="7"])[data-gotas] .bph__gota { transform: scale(0); animation: none; }
.bph__escena:is([data-fase="5"], [data-fase="6"], [data-fase="7"])[data-mancha] .bph__palabra { color: var(--logo, var(--pawnia-rosa)); }

/* ---------- voz: globos con frases alrededor ---------- */
.bph__voz { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.bph__globo {
	position: absolute; max-width: 15em; padding: .8em 1.2em .85em; border-radius: 1.3em; text-align: center;
	font-size: clamp(14px, 1.3vw, 19px); font-weight: 700; line-height: 1.25; background: var(--pareja, #fff); color: #111;
	box-shadow: 0 .8em 2em rgba(17, 17, 17, .14);
	opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .3s, transform .6s var(--rebote);
}
.bph__globo::after { content: ''; position: absolute; bottom: -6px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.bph__globo--0 { left: 17%; top: 34%; }
.bph__globo--1 { left: 83%; top: 34%; }
.bph__globo--2 { left: 19%; top: 66%; }
.bph__globo--3 { left: 81%; top: 66%; }
.bph__globo--0::after, .bph__globo--2::after { right: 22%; }
.bph__globo--1::after, .bph__globo--3::after { left: 22%; }
.bph__globo--2::after, .bph__globo--3::after { bottom: auto; top: -6px; }
.bph__globo[data-on] { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- movimiento: las letras saltan en ola y la mancha late ---------- */
.bph__palabra span { display: inline-block; }
.bph__escena[data-fase="6"] .bph__palabra span { animation: bph-salto 1.2s var(--ease) infinite; animation-delay: calc(var(--i, 0) * .09s); }
.bph__escena[data-fase="6"] .bph__gota { animation: bph-flotar 1.8s ease-in-out infinite; }
.bph__escena[data-fase="6"] .bph__gota--1 { animation-delay: -.6s; }
.bph__escena[data-fase="6"] .bph__gota--2 { animation-delay: -1.2s; }
@keyframes bph-salto {
	0%, 55%, 100% { transform: none; }
	20% { transform: translateY(-.16em) rotate(-5deg); }
	38% { transform: translateY(.02em) scale(1.06, .9); }
}
@keyframes bph-flotar { 50% { transform: translateY(-.14em) scale(1.1); } }

/* ---------- aplicaciones: la marca puesta en cosas, alrededor del logo ---------- */
.bph__apps { position: absolute; inset: 0; pointer-events: none; }
.bph__app {
	position: absolute; margin: 0; font-size: clamp(9px, min(.95vw, 1.5vh), 14px); text-align: center;
	opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, transform .7s var(--rebote);
}
.bph__app[data-on] { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Burbuja de pensamiento como pompa de jabón: transparente, con el borde tornasolado (colores del agua
   con la luz) que gira despacio, un brillo arriba y un reflejo chico abajo. Dos burbujitas hacia el logo. */
.bph-burbuja, .bph-burbuja__punto {
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .45) 74%, rgba(255, 255, 255, .1) 100%),
		radial-gradient(circle at 70% 80%, rgba(170, 220, 255, .18), rgba(255, 255, 255, 0) 60%);
	box-shadow: inset 0 0 1.4em rgba(255, 255, 255, .55), inset -.5em -.7em 1.8em rgba(120, 190, 255, .22), inset .5em .6em 1.6em rgba(255, 150, 220, .2), 0 1.2em 2.4em rgba(17, 17, 17, .07);
}
.bph-burbuja {
	position: relative; width: 13.5em; height: 13.5em; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; justify-content: center;
}
/* Borde tornasol: un conic-gradient recortado a un aro que gira. */
.bph-burbuja::before, .bph-burbuja__punto::before {
	content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 2; pointer-events: none;
	background: conic-gradient(from 0deg, #ff9ad8, #ffd98a, #a8ffcf, #8fd8ff, #c7a2ff, #ff9ad8);
	-webkit-mask: radial-gradient(circle, transparent 58%, #000 71%, #000 100%);
	mask: radial-gradient(circle, transparent 58%, #000 71%, #000 100%);
	opacity: .6; mix-blend-mode: multiply;
	animation: bph-tornasol 9s linear infinite;
}
/* Brillo de la luz arriba a la izquierda y reflejo chico abajo a la derecha. */
.bph-burbuja::after, .bph-burbuja__punto::after {
	content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 3; pointer-events: none;
	background:
		radial-gradient(ellipse 22% 13% at 30% 20%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
		radial-gradient(circle at 74% 80%, rgba(255, 255, 255, .7) 0 2.5%, rgba(255, 255, 255, 0) 5.5%);
	transform: rotate(-18deg);
}
@keyframes bph-tornasol { to { transform: rotate(360deg); } }
.bph-burbuja > * { position: relative; z-index: 1; }
/* Foto real: llena la burbuja recortada en círculo; el borde tornasol y el brillo quedan encima. */
.bph-burbuja > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bph-burbuja > div { flex: none; transform: scale(var(--s, .6)); }
.bph-burbuja > .bph-chapa { --s: .9; }
.bph-burbuja > .bph-celu { --s: .58; }
.bph-burbuja__punto { position: absolute; }
.bph-burbuja__punto::before { animation-duration: 6s; }
.bph-burbuja__punto--1 { width: 2.4em; height: 2.4em; }
.bph-burbuja__punto--2 { width: 1.3em; height: 1.3em; }
/* Arriba a la izquierda: los puntitos bajan hacia la derecha (hacia el logo); el resto, en espejo. */
.bph__app--0 .bph-burbuja__punto--1 { right: -1.2em; top: 11.4em; }
.bph__app--0 .bph-burbuja__punto--2 { right: -2.7em; top: 13.4em; }
.bph__app--1 .bph-burbuja__punto--1 { right: -1.2em; top: 0; }
.bph__app--1 .bph-burbuja__punto--2 { right: -2.7em; top: -1.6em; }
.bph__app--2 .bph-burbuja__punto--1 { left: -1.2em; top: 0; }
.bph__app--2 .bph-burbuja__punto--2 { left: -2.7em; top: -1.6em; }
.bph__app--3 .bph-burbuja__punto--1 { left: -1.2em; top: 11.4em; }
.bph__app--3 .bph-burbuja__punto--2 { left: -2.7em; top: 13.4em; }
.bph__app figcaption { margin-top: 1em; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.bph__app--0 { left: 16%; top: 42%; }
.bph__app--1 { left: 18%; top: 71%; }
.bph__app--2 { left: 82%; top: 71%; }
.bph__app--3 { left: 85%; top: 42%; }
.bph__app b { font-family: var(--bph-fuente-final); font-weight: 400; line-height: 1; }
.bph-mini-mancha { display: block; fill: currentColor; }
/* Logo mini: la mancha detrás y el nombre encima, como el logo grande. */
.bph-logo-mini { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: .5em 1.15em; color: var(--pareja, #fff); }
.bph-logo-mini .bph-mini-mancha { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--logo, var(--pawnia-rosa)); }
.bph-logo-mini b { position: relative; font-size: 1.5em; }
.bph-bolsa {
	position: relative; width: 11em; height: 14em; border-radius: .5em .5em 1.1em 1.1em; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em;
	background: var(--logo, var(--pawnia-rosa)); color: var(--pareja, #fff); box-shadow: 0 1.2em 2.4em rgba(17, 17, 17, .18);
}
.bph-bolsa::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.3em; background: rgba(17, 17, 17, .14); }
.bph-bolsa .bph-mini-mancha { width: 4.2em; height: 2.2em; }
.bph-bolsa b { font-size: 2em; }
.bph-bolsa small { font-size: .85em; font-weight: 600; opacity: .85; }
.bph-chapa {
	position: relative; width: 9em; height: 9em; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35em;
	background: var(--logo, var(--pawnia-rosa)); color: var(--pareja, #fff); box-shadow: 0 1em 2em rgba(17, 17, 17, .18), inset 0 0 0 .45em rgba(255, 255, 255, .25);
}
.bph-chapa::before { content: ''; position: absolute; top: .7em; left: 50%; width: .9em; height: .9em; margin-left: -.45em; border-radius: 50%; background: #fff; }
.bph-chapa .bph-mini-mancha { width: 3.4em; height: 1.8em; margin-top: .6em; }
.bph-chapa b { font-size: 1.3em; }
.bph-tarjeta {
	width: 15em; height: 9em; padding: 1.2em; border-radius: .7em; text-align: left;
	background: #fff; box-shadow: 0 1.2em 2.4em rgba(17, 17, 17, .16);
	display: flex; flex-direction: column; align-items: flex-start;
}
.bph-tarjeta i { display: block; height: .5em; width: 60%; margin-top: .55em; border-radius: .25em; background: rgba(17, 17, 17, .12); }
.bph-tarjeta .bph-logo-mini { margin-bottom: auto; }
.bph-tarjeta i + i { width: 38%; }
.bph-celu {
	width: 10em; height: 17em; padding: .9em .75em; border-radius: 1.6em; border: .45em solid #111;
	background: #fff; box-shadow: 0 1.2em 2.4em rgba(17, 17, 17, .18); text-align: left;
}
.bph-celu__perfil { display: flex; align-items: center; gap: .5em; }
.bph-celu__perfil i { flex: 1; height: .5em; border-radius: .25em; background: rgba(17, 17, 17, .12); }
.bph-logo-mini--avatar { width: 3.2em; height: 3.2em; padding: 0; border-radius: 50%; overflow: hidden; background: var(--logo, var(--pawnia-rosa)); }
.bph-logo-mini--avatar .bph-mini-mancha { fill: var(--pareja, #fff); inset: 22% 8%; width: 84%; height: 56%; }
.bph-logo-mini--avatar b { font-size: 1.1em; color: var(--logo, var(--pawnia-rosa)); }
.bph-celu__grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3em; margin-top: 1em; }
.bph-celu__grilla i { aspect-ratio: 1; border-radius: .2em; background: var(--logo, var(--pawnia-rosa)); }
.bph-celu__grilla i:nth-child(3n + 2) { background: var(--pareja, #eee); }
.bph-celu__grilla i:nth-child(4n) { background: #111; }

/* ---------- notas del naming, alrededor del nombre ---------- */
.bph__notas { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.bph__nota {
	position: absolute; padding: .55em 1.1em .6em; border-radius: 999px; white-space: nowrap;
	font-size: clamp(13px, 1.2vw, 17px); font-weight: 700; background: #111; color: #fff;
	opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .3s, transform .6s var(--rebote);
}
.bph__nota::after { content: ''; position: absolute; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.bph__nota--0 { left: 24%; top: calc(50% - var(--tam) * .74); }
.bph__nota--0::after { right: 22%; bottom: -4px; }
.bph__nota--1 { left: 76%; top: calc(50% - var(--tam) * .74); background: var(--pawnia-rosa); }
.bph__nota--1::after { left: 22%; bottom: -4px; }
.bph__nota--2 { left: 50%; top: calc(50% + var(--tam) * .74); background: var(--pawnia-teal); }
.bph__nota--2::after { left: calc(50% - 5px); top: -4px; }
.bph__nota[data-on] { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- retícula según la fuente (medidas en em que pone el JS) ---------- */
.bph__reticula {
	position: absolute; z-index: 2; inset: -.18em -.45em; opacity: 0; pointer-events: none;
	transition: opacity .5s var(--ease);
}
/* La cuadrícula cubre toda la pantalla, con líneas muy claras, alineada al nombre
   (el background-position compensa lo que el cuadro se sale hacia arriba/izquierda). */
.bph__reticula::before {
	content: ''; position: absolute; inset: -100vh -100vw; background-position: 100vw 100vh;
	background-image:
		repeating-linear-gradient(90deg, rgba(47, 153, 151, .09) 0 1px, transparent 1px .125em),
		repeating-linear-gradient(0deg, rgba(47, 153, 151, .09) 0 1px, transparent 1px .125em);
}
/* Las guías y las verticales de cada letra siguen, más tenues, hasta el borde de la pantalla. */
.bph__guia::before { content: ''; position: absolute; left: -100vw; right: -100vw; top: -1.5px; border-top: inherit; opacity: .3; }
.bph__verticales span::before { content: ''; position: absolute; top: -100vh; bottom: -100vh; left: -1px; border-left: inherit; opacity: .35; }
.bph__escena[data-fase="2"] .bph__reticula { opacity: 1; }
.bph__guia {
	position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--pawnia-rosa);
	transition: top .45s var(--ease), opacity .3s;
}
/* Guía que cae encima de otra (ej. una fuente solo en mayúsculas): se oculta. */
.bph__guia[data-repetida] { opacity: 0; }
.bph__guia--cap { top: calc(.18em + var(--g-cap, 0em)); }
.bph__guia--x { top: calc(.18em + var(--g-x, .19em)); border-top-style: dashed; border-color: var(--pawnia-teal); }
.bph__guia--base { top: calc(.18em + var(--g-base, .75em)); }
.bph__guia--desc { top: calc(.18em + var(--g-desc, 1em)); border-top-style: dotted; border-color: rgba(17, 17, 17, .45); }
.bph__guia i {
	position: absolute; left: 100%; top: 0; margin-left: 10px; transform: translateY(-50%);
	font-family: var(--koi-font-texto); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; white-space: nowrap; color: var(--pawnia-rosa);
}
.bph__guia--x i { color: var(--pawnia-teal); }
.bph__guia--desc i { color: rgba(17, 17, 17, .5); }
.bph__verticales { position: absolute; inset: 0 .45em; }
.bph__verticales span { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(223, 56, 145, .5); transition: left .45s var(--ease); }

/* ---------- etiquetas bajo el nombre (fuente / color) ---------- */
.bph__etiqueta {
	position: absolute; left: 0; right: 0; top: calc(50% + var(--tam) * .85); text-align: center;
	font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	opacity: 0; transition: opacity .4s; pointer-events: none;
}
.bph__etiqueta--fuente { color: rgba(17, 17, 17, .55); }
/* Con la retícula a toda la pantalla, la guía descendente pasa por acá: la etiqueta la tapa. */
.bph__etiqueta--fuente { left: 50%; right: auto; transform: translateX(-50%); padding: 2px 10px; background: var(--fondo, #fff); z-index: 3; }
.bph__escena[data-fase="2"] .bph__etiqueta--fuente { opacity: 1; }
.bph__etiqueta--color b { font-weight: 700; opacity: .6; margin-left: 6px; }
.bph__escena[data-fase="3"] .bph__etiqueta--color { opacity: 1; }
.bph__muestras { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.bph__muestras li {
	width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--m-fg) 50%, var(--m-bg) 50%);
	box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); transition: transform .3s var(--rebote);
}
.bph__muestras li[data-on] { transform: scale(1.45); box-shadow: 0 0 0 2px currentColor; }

/* ---------- progreso, pista y precarga ---------- */
.bph__progreso { position: absolute; left: 50%; bottom: clamp(14px, 3svh, 28px); width: min(160px, 40vw); height: 3px; border-radius: 3px; background: rgba(127, 127, 127, .25); transform: translateX(-50%); }
.bph__progreso span { display: block; height: 100%; border-radius: inherit; background: var(--acento, var(--pawnia-rosa)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.bph__pista { position: absolute; left: 50%; bottom: calc(clamp(14px, 3svh, 28px) + 14px); transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .45; transition: opacity .4s; }
.bph__escena:not([data-fase="0"]) .bph__pista { opacity: 0; }
.bph__precarga { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- add-ons (después del escenario, sección normal) ---------- */
.bpa { background: #fff; padding: clamp(72px, 10vw, 140px) 16px; }
.bpa__cabeza { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.bpa__eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pawnia-rosa); }
.bpa__titulo {
	margin: 10px auto 0; font-family: var(--koi-font-texto); font-weight: 600; text-transform: none;
	font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.02em; color: #111;
}
.bpa__texto { margin: 14px auto 0; max-width: 46ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; opacity: .75; }
.bpa__grilla {
	list-style: none; margin: 0 auto; padding: 0; max-width: 1120px;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px;
}
.bpa__item { padding: 28px; border-radius: 24px; background: var(--pawnia-marfil, #FFFBF0); border: 1px solid rgba(17, 17, 17, .06); transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s; }
.bpa__item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17, 17, 17, .08); }
.bpa__icono { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pawnia-rosa); color: #fff; }
.bpa__icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bpa__nombre { margin: 18px 0 8px; font-family: var(--koi-font-texto); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-transform: none; color: #111; }
.bpa__item p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .72; }
.bpa__cta { margin-top: 40px; text-align: center; }
.bpa__cta p { margin: 0 0 16px; font-size: clamp(15px, 1.25vw, 18px); opacity: .75; }

/* ---------- hero: párrafo + dos CTA (solo la intro; los demás textos no reciben clics) ----------
   BRANDPET se achica en la intro (--alto-intro, lo lee el JS) para que entren el ecualizador, el párrafo y los botones. */
.bph__escena { --alto-intro: .24; }
/* + 31px: arriba del todo el escenario empieza debajo de la barra verde (topbar), así que su borde de abajo queda fuera de la pantalla. */
.bph__abajo--intro { bottom: calc(31px + clamp(16px, 3svh, 32px)); max-width: 600px; }
.bph__abajo--intro p { margin: 0; opacity: .85; }
.bph__escena[data-fase="0"] .bph__abajo--intro[data-texto="0"], .bph__escena .bph__abajo--intro[data-on] { opacity: 1; pointer-events: auto; }
.bph__acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; margin-top: 16px; }
.bph__ver { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .8; white-space: nowrap; }
.bph__ver:hover { opacity: 1; color: inherit; }
/* Ancla de "Mira cómo nace tu marca": justo donde arranca el naming. */
.bph__mira { position: absolute; top: 5%; left: 0; width: 1px; height: 1px; }
.bph__cta {
	display: inline-flex; padding: 13px 26px; border-radius: 999px;
	background: #fff; color: var(--pawnia-rosa); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(17, 17, 17, .14); transition: transform .25s var(--ease), box-shadow .25s;
}
.bph__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17, 17, 17, .2); color: var(--pawnia-rosa); }

/* ---------- cierre de la animación ---------- */
.bpc { background: var(--pawnia-rosa); color: #fff; text-align: center; padding: clamp(64px, 9vw, 120px) 16px; }
.bpc__titulo {
	margin: 0 auto 28px; max-width: 24ch; font-family: var(--koi-font-texto); font-weight: 600; text-transform: none;
	font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; color: #fff;
}
.bpc__titulo span { display: block; color: #FFD60A; }
.bpc .koi-btn { background: #fff; color: var(--pawnia-rosa); }
.bpc .koi-btn:hover { background: #FFD60A; color: #111; }

/* ---------- secciones informativas (mismo molde que los add-ons) ---------- */
.bpa--marfil { background: var(--pawnia-marfil, #FFFBF0); }
.bpa--marfil .bpa__item { background: #fff; }
/* Cinco tarjetas: 3 + 2 centradas en escritorio. */
.bpa__grilla--cinco { display: flex; flex-wrap: wrap; justify-content: center; }
.bpa__grilla--cinco .bpa__item { flex: 0 1 calc((100% - 32px) / 3); min-width: min(100%, 300px); }

/* Qué recibes: lista en dos columnas con check rosa. */
.bpr { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px 28px; }
.bpr__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(17, 17, 17, .08); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; color: #111; }
.bpr__item svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--pawnia-rosa); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Cómo trabajamos: 5 pasos numerados en fila (columna en celular). */
.bpt { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.bpt__paso { position: relative; padding: 24px 22px; border-radius: 24px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); }
.bpt__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pawnia-rosa); color: #fff; font-weight: 700; font-size: 17px; }
.bpt__nombre { margin: 16px 0 8px; font-family: var(--koi-font-texto); font-size: 18px; font-weight: 600; line-height: 1.25; text-transform: none; color: #111; }
.bpt__paso p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .72; }

/* Preguntas frecuentes: acordeón sin JS. */
.bpf { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.bpf__item { border-radius: 20px; background: #fff; border: 1px solid rgba(17, 17, 17, .06); }
.bpf__item summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 24px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; color: #111;
}
.bpf__item summary::-webkit-details-marker { display: none; }
.bpf__item summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pawnia-rosa); color: #fff; font-size: 20px; line-height: 1; transition: transform .25s; }
.bpf__item[open] summary::after { transform: rotate(45deg); }
.bpf__item p { margin: 0; padding: 0 24px 22px; font-size: 16px; line-height: 1.6; opacity: .75; }

@media (max-width: 1000px) {
	.bpt { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}

@media (max-width: 700px) {
	.bph__escena { --tam: 21vw; }
	.bph__globo { max-width: 11em; font-size: 14px; }
	.bph__globo--0 { left: 30%; top: 29%; }
	.bph__globo--1 { left: 70%; top: 38%; }
	.bph__globo--2 { left: 30%; top: 63%; }
	.bph__globo--3 { left: 70%; top: 72%; }
	.bph__app--0 { left: 27%; top: 34%; }
	.bph__app--3 { left: 73%; top: 33%; }
	.bph__app--1 { left: 27%; top: 67%; }
	.bph__app--2 { left: 70%; top: 67%; }
	.bph__app figcaption { font-size: 10px; margin-top: .7em; }
	.bph__reticula { inset: -.18em -.12em; }
	.bph__verticales { inset: 0 .12em; }
	.bph__guia i { display: none; }
	.bph__nota--0 { left: 30%; top: calc(50% - var(--tam) * 1.05); }
	.bph__nota--1 { left: 70%; top: calc(50% - var(--tam) * 1.05); }
	.bph__nota--2 { top: calc(50% + var(--tam) * 1.05); }
	.bph__etiqueta { top: calc(50% + var(--tam) * .75); }
	.bph__abajo { bottom: clamp(48px, 9svh, 90px); }
	.bph__escena { --alto-intro: .25; }
	.bph__abajo--intro { bottom: calc(31px + 12px); font-size: 14px; line-height: 1.45; }
	.bph__acciones { margin-top: 10px; gap: 6px; flex-direction: column; }
	.bph__cta { padding: 12px 22px; font-size: 13px; }
	.bph__ver { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.bph__escena, .bph__escena * { transition-duration: .01s !important; }
	.bph__escena[data-fase="1"] .bph__cursor { animation: none; }
	.bph__escena[data-fase="6"] .bph__palabra span, .bph__escena[data-fase="6"] .bph__gota { animation: none; }
	.bph-burbuja::before { animation: none; }
}

/* Computadoras con pantalla baja (notebooks): todo un poco más chico para que no se amontone. */
@media (min-width: 701px) and (max-height: 850px) {
	.bph__escena { --tam: min(11.5vw, 19svh); --tope: calc(var(--arriba, 120px) + clamp(8px, 2svh, 24px)); }
	.bph__eyebrow { font-size: 12px; }
	.bph__titulo { margin-top: 6px; font-size: clamp(22px, min(2.7vw, 4.8svh), 40px); }
	.bph__abajo { bottom: clamp(56px, 9svh, 90px); max-width: 520px; font-size: clamp(14px, min(1.1vw, 2.2svh), 16px); }
	.bph__escena { --alto-intro: .22; }
	.bph__abajo--intro { bottom: calc(31px + clamp(12px, 2svh, 20px)); max-width: 600px; }
	.bph__app { font-size: clamp(8px, min(.85vw, 1.35vh), 13px); }
	.bph__globo { font-size: clamp(13px, min(1.15vw, 2.2svh), 17px); }
	.bph__nota { font-size: clamp(12px, min(1.05vw, 2svh), 15px); }
}

/* Celulares bajos (iPhone con las barras de Safari): BRANDPET más chico en la intro para que el ecualizador no pise el párrafo. */
@media (max-width: 700px) and (max-height: 700px) {
	.bph__escena { --alto-intro: .2; }
}

/* Sin el fondo crema/amarillento (pedido de Santiago, 2026-10-05): secciones en el gris claro del sitio y tarjetas blancas. */
body.page-template-template-brandpet { background: #F4F4F4; }
.bpa, .bpa--marfil { background: #F4F4F4; }
.bpa__item, .bpa--marfil .bpa__item { background: #fff; }

/* Intro: kit de diseño de marca en lugar del ecualizador (pedido de Santiago, 2026-10-05). */
.bph__kit { align-items: center; gap: clamp(14px, 2vw, 26px); height: auto; }
.bph__kit-aa { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(30px, 4.6svh, 46px); line-height: 1; color: #fff; animation: bph-kit-letra 6s steps(1) infinite; }
@keyframes bph-kit-letra { 0% { font-family: 'Playfair Display', Georgia, serif; } 25% { font-family: 'DynaPuff', sans-serif; } 50% { font-family: 'Fascinate', sans-serif; } 75% { font-family: 'Anton SC', sans-serif; } }
.bph__kit-paleta { display: flex; gap: 8px; }
.bph__kit-paleta i { display: block; width: clamp(20px, 3svh, 30px); height: clamp(20px, 3svh, 30px); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); animation: bph-kit-pop 2.4s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .18s) infinite; }
@keyframes bph-kit-pop { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.3) translateY(-4px); } }
.bph__kit-nodo { width: clamp(34px, 5svh, 48px); height: auto; animation: bph-kit-nodo 4s ease-in-out infinite; }
@keyframes bph-kit-nodo { 50% { transform: rotate(-8deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .bph__kit-aa, .bph__kit-paleta i, .bph__kit-nodo { animation: none; } }
