:root,
html {
	color-scheme: only light;
	scroll-behavior: smooth;
}

:root {
	/* ---- Base ---- */
	--site-color-primary:        #051C3C;   /* azul marino: títulos y textos fuertes (se aclara en modo oscuro) */
	--site-color-marino:         #051C3C;   /* azul marino fijo: fondos navy (no cambia en modo oscuro) */
	--site-color-text:           #676F8F;   /* párrafos */
	--site-color-accent:         #b9c4d3;   /* gris azulado */
	--site-color-borde:          color-mix(in srgb, var(--site-color-accent) 60%, #FFFFFF);   /* #D5DCE5 · bordes de tarjetas y separadores de secciones: gris azulado aclarado */
	--site-color-tarjeta:        #FFFFFF;   /* fondo de tarjetas */
	--site-color-gris-claro:     #EBEEF7;   /* fondo del badge, fondos alternos y footer */
	--site-color-fondo:          #F9F9FF;   /* fondo del sitio */

	/* ---- Colores de marca (los claros, solo dentro de degradados) ---- */
	--site-color-pase:           #886ADE;   /* morado · Pase Digital */
	--site-color-pase-claro:     #A68FE6;
	--site-color-turquesa:       #0EDAB7;   /* turquesa · Digital Projects */
	--site-color-turquesa-claro: #93EEDF;
	--site-color-amarillo:       #F3A301;   /* amarillo · Carta Virtual */
	--site-color-amarillo-claro: #F9D180;

	/* ---- WhatsApp ---- */
	--site-color-whatsapp:       #2CAB1C;

	/* ---- Enlaces dentro de párrafos ---- */
	--site-color-enlace:         #0E56DA;

	/* COLOR DE LA MARCA DE LA PÁGINA: cada body.marca-* redefine estas dos.
	   --marca        base (texto, íconos, bordes, botones, fondos)
	   --marca-claro  solo para el lado claro de los degradados */
	--marca:        var(--site-color-pase);
	--marca-claro:  var(--site-color-pase-claro);

	/* COLORES OFICIALES DE MARCA: morado #886ADE (Pase Digital), amarillo #F3A301
	   (Carta Virtual), turquesa #0EDAB7 (Digital Projects). Cualquier variante sale
	   de estos mezclándolos con blanco (más lechoso), negro (más oscuro) o con
	   transparencia; no usar otros morados/amarillos/turquesas sueltos.
	   Texto, íconos, bordes y fondos planos: SOLO la base (o la base con
	   transparencia). Los claros solo dentro de degradados: #A68FE6 (morado
	   +25% blanco), #F9D180 (amarillo +50%), #93EEDF (turquesa +55%). */

	/* colores terciarios: para variar íconos, tags o tarjetas en cualquier página (iguales en todas las marcas) */
	--site-color-terciario-azul:  #63B3FF;
	--site-color-terciario-rojo:  #EF4444;
	--site-color-terciario-verde: var(--site-color-whatsapp);

	--site-typography-primary-font-family: "Golos Text";
	--site-typography-text-font-family:    "Google Sans";
	--site-typography-script-font-family: "Style Script";

	--site-transition: var(--dur-media) ease;

	--site-bp-laptop: 1300px;
	--site-bp-tablet: 1024px;
	--site-bp-mobile: 768px;

	/* ================================
	   ESCALA ATÓMICA
	   Radios: crecen con el nivel del elemento
	   (átomo → molécula → organismo → bloque).
	   Espacios: múltiplos de 4 px.
	   ================================ */
	--radio-xs:      6px;     /* detalles: badge de borde, imágenes pequeñas */
	--radio-sm:      8px;     /* átomos: botones, inputs, badge, cápsulas */
	--radio-md:      12px;    /* moléculas: tarjeta estándar, FAQ, filas, contenedores de ícono */
	--radio-lg:      20px;    /* organismos: tarjetas con foto, precios, compra */
	--radio-xl:      24px;    /* bloques: caja de CTA, mockups */
	--radio-pill:    999px;   /* chips, pastillas, etiquetas */
	--radio-circulo: 50%;     /* avatares, puntos, botones redondos */

	--esp-1:  4px;
	--esp-2:  8px;
	--esp-3:  12px;
	--esp-4:  16px;
	--esp-5:  20px;
	--esp-6:  24px;
	--esp-8:  32px;
	--esp-10: 40px;
	--esp-12: 48px;
	--esp-15: 60px;
	--esp-16: 64px;
	--esp-20: 80px;

	--contenedor:         1120px;  /* .site-inner */
	--contenedor-medio:   900px;   /* procesos, formularios */
	--contenedor-lectura: 750px;   /* FAQ y textos largos */
	--margen-lateral:     30px;

	/* Tipografía: escala de tamaños (los títulos display grandes van en px propios) */
	--fs-2xs: 11px;   /* sobretítulos en mayúsculas */
	--fs-xs:  12px;   /* notas mínimas, etiquetas de tarjetas */
	--fs-sm:  14px;   /* labels, textos secundarios, legales */
	--fs-md:  16px;   /* textos de tarjetas, badge, menú secundario */
	--fs-base: 18px;  /* párrafos y botones */
	--fs-lg:  20px;   /* bajadas, h4 */
	--fs-xl:  24px;   /* h3 */
	--fs-2xl: 28px;   /* títulos de tarjetas grandes */
	--fs-3xl: 32px;   /* h2 en celular */
	--fs-4xl: 40px;   /* h2 */
	--fs-5xl: 48px;   /* h1 en tablet */
	--fs-6xl: 56px;
	--fs-7xl: 70px;   /* h1 */

	/* Sombras: niveles de elevación (las tarjetas normales no llevan sombra) */
	--sombra-1: 0 8px 24px rgba(5, 28, 60, 0.10);   /* desplegables y submenús */
	--sombra-2: 0 18px 40px rgba(5, 28, 60, 0.08);  /* tarjetas que destacan, megamenú */
	--sombra-3: 0 10px 60px rgba(5, 28, 60, 0.22);  /* mockups de dispositivos */
	--sombra-4: 0 24px 60px rgba(5, 28, 60, .28);   /* cajas de CTA azul marino */

	/* Íconos */
	--icono-sm: 16px;
	--icono-md: 20px;
	--icono-lg: 24px;

	/* Movimiento */
	--dur-rapida: .2s;
	--dur-media:  .3s;
	--dur-lenta:  .6s;
}

/* ================================
   MARCAS — color de variación
   El principal es el azul marino en todo el sitio. La variación cambia con
   la marca de la página (clase del body, ver graphica_marca() en functions.php):
   - marca-dp    Graphica Digital Projects → turquesa
   - marca-pase  Graphica Pase Digital     → morado (el de las variables)
   - marca-carta Graphica Carta Virtual    → amarillo
   ================================ */
body.marca-dp {
	--marca:       var(--site-color-turquesa);
	--marca-claro: var(--site-color-turquesa-claro);
}

body.marca-pase {
	--marca:       var(--site-color-pase);
	--marca-claro: var(--site-color-pase-claro);
}

body.marca-carta {
	--marca:       var(--site-color-amarillo);
	--marca-claro: var(--site-color-amarillo-claro);
}

/* títulos de páginas compartidas por todos los servicios (nosotros, blog,
   documentos legales, promociones): degradado general morado → turquesa */
.grad-general {
	--marca:       var(--site-color-pase);
	--marca-claro: var(--site-color-turquesa);
}

/* Carta Virtual: azul marino + amarillo, sin el turquesa ni el morado de las otras marcas */
/* sobre el amarillo, el texto del botón va en azul marino para que se lea */
body.marca-carta .btn-cta {
	color: var(--site-color-marino);
}

body.marca-carta .btn-cta svg {
	fill: var(--site-color-marino);
}

/* Digital Projects (menos la home): sombra de la cifra destacada en turquesa */
body.marca-dp:not(.home) .fp-stat__pill {
	box-shadow: 0 4px 15px 0 rgba(14, 218, 183, 0.2);
}

/* Pase Digital: los acentos que estaban fijos en turquesa pasan a sus morados */
body.marca-pase .link-gradient::after {
	background: linear-gradient(270deg, var(--site-color-pase-claro) 1.05%, var(--site-color-pase) 51.88%) !important;
}

body.marca-pase .fp-testimonials__name {
	color: var(--site-color-pase);
}

body.marca-pase .fp-testimonials__avatar {
	background: linear-gradient(270deg, var(--site-color-pase-claro), var(--site-color-pase));
}

/* ================================
   SECTION — padding estándar global
   ================================ */
section {
	padding: var(--esp-20) 0 !important;
}

@media (max-width: 1024px) {
	section { padding: var(--esp-16) 0 !important; }
}

/* ================================
   BASE
   ================================ */
body {
	background: var(--site-color-fondo);
	font-family: var(--site-typography-primary-font-family), sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.8px;
	font-weight: 600;
}

h1 {
	font-size: var(--fs-7xl);
	line-height: 1em;
}

@media (max-width: 1024px) {
	h1 { font-size: var(--fs-5xl); }
}

@media (max-width: 768px) {
	h1 { font-size: 44px; }
}

h2 {
	font-size: var(--fs-4xl);
	color: var(--site-color-primary);
}

@media (max-width: 768px) {
	h2 { font-size: var(--fs-3xl); }
}

h3 {
	font-size: var(--fs-xl);
	color: var(--marca);
}

@media (max-width: 768px) {
	h3 { font-size: var(--fs-xl); }
}

h4 {
	font-size: var(--fs-lg);
}

p,
li {
	font-size: var(--fs-base);
	color: var(--site-color-text);
	line-height: 1.3em;
}

p {
	font-family: var(--site-typography-text-font-family), sans-serif;
}

ol {
	padding: 5px 0 5px 20px;
}

p strong,
p b {
	font-weight: 500;
}

/* ---- Botones estándar ---- */
.btn-wsp,
.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--esp-2);
	color: #fff;
	font-size: var(--fs-base);
	font-weight: 500;
	padding: var(--esp-3) var(--esp-6);
	border-radius: var(--radio-sm);
	border: none;
	text-decoration: none;
	transition: opacity var(--site-transition);
}

.btn-wsp:hover,
.btn-cta:hover {
	opacity: 0.88;
}

/* WhatsApp — verde */
.btn-wsp {
	background: var(--site-color-whatsapp);
}

.btn-wsp svg {
	width: var(--icono-md);
	height: var(--icono-md);
	fill: #fff;
	flex-shrink: 0;
}

/* Terciario: acción pequeña de los sistemas, fondo gris */
.btn-terciario {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--esp-1);
	padding: var(--esp-1) var(--esp-3);
	border: 0;
	border-radius: var(--radio-sm);
	background: var(--site-color-gris-claro);
	color: var(--site-color-primary);
	font-family: inherit;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

.btn-terciario:hover {
	background: var(--site-color-borde);
}

.btn-terciario svg {
	width: 16px;
	height: 21px;   /* la misma altura que una línea de texto */
	flex-shrink: 0;
}

/* CTA — morado */
.btn-cta {
	background: var(--marca);
}

.btn-cta svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	flex-shrink: 0;
}

/* ---- Enlace con subrayado degradado ---- */
.link-gradient svg {
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

@keyframes arrow-slide {
	0%, 100% { transform: translateX(0); }
	50%       { transform: translateX(5px); }
}

.link-gradient:hover svg {
	animation: arrow-slide 0.6s ease infinite;
}

.link-gradient {
	position: relative;
	display: inline-block;
	font-size: var(--fs-lg);
	font-weight: 500;
	color: var(--site-color-primary);
	text-decoration: none;
	text-transform: none !important;
}

.link-general {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: var(--site-color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.link-general:hover {
	opacity: 0.8;
}

/* enlaces dentro de párrafos: siempre este color, en toda la web (los que tienen clase propia, como los botones, no) */
p a:not([class]),
p a.cta,
p .link-general {
	color: var(--site-color-enlace);
}

/* ---- Ribbon "MÁS POPULAR" ---- */
.popular,
.ultimo {
	position: relative;
	overflow: hidden;
}

.popular::after {
	content: 'MÁS POPULAR';
	position: absolute;
	top: 30px;
	right: -45px;
	background: linear-gradient(90deg, #886ADE, #0EDAB7);
	color: #fff;
	font-size: var(--fs-xs);
	font-weight: 500;
	padding: 6px 44px;
	transform: rotate(45deg);
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.badge {
	display: inline-block;
	background-color: var(--site-color-gris-claro);
	padding: var(--esp-2) var(--esp-3);
	border-radius: var(--radio-sm);
	font-size: var(--fs-md);
	color: var(--site-color-primary);
}

.link-gradient::after {
	content: '' !important;
	position: absolute !important;
	width: 100% !important;
	margin: 0px auto !important;
	height: 2px !important;
	background: linear-gradient(270deg, #886ADE 1.05%, #0EDAB7 51.88%) !important;
	bottom: -6px !important;
	left: 0px !important;
	right: 0px !important;
	display: block !important;
	transition: all var(--dur-media) linear !important;
}

/* ---- Bajada ---- */
.bajada *,
.bajada {
	font-size: var(--fs-lg) !important;
	font-weight: 400 !important;
	line-height: 1.3em !important;
	letter-spacing: 0 !important;
	word-spacing: 0 !important;
}

/* ---- List ---- */
.list ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: var(--esp-2);
}

.list li {
	display: block;
	font: 400 var(--fs-base) / 1.5 var(--site-typography-text-font-family), sans-serif;
	color: var(--site-color-text);
}

.list ul li::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: var(--marca);
	border-radius: var(--radio-circulo);
	flex-shrink: 0;
}

/* ---- Error page (403, 404) ---- */
.error-page {
	padding: 100px 0;
	text-align: center;
}

.error-page__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--esp-4);
}

.error-page__code {
	font-size: 120px;
	font-weight: 500;
	line-height: 1;
	color: var(--site-color-gris-claro);
	letter-spacing: -4px;
}

.error-page__title {
	font-size: var(--fs-3xl);
	font-weight: 600;
	color: var(--site-color-primary);
	margin: 0;
	max-width: 520px;
}

.error-page__actions {
	display: flex;
	gap: var(--esp-4);
	margin-top: 16px;
	flex-wrap: wrap;
	justify-content: center;
}

@media (max-width: 768px) {
	.error-page { padding: 60px 0; }
	.error-page__code { font-size: 80px; }
	.error-page__title { font-size: var(--fs-xl); }
	.error-page__actions { flex-direction: column; align-items: center; }
}

/* ================================
   UTILIDADES — FONDOS
   ================================ */
.bg-blue_standar {
	position: relative;
	background: var(--site-color-primary);
	overflow: hidden;
}

.bg-blue_standar::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('../../img/core/pattern_corporativo.png');
	background-repeat: repeat;
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
}

/* ================================
   DARK MODE
   ================================ */
[data-theme="dark"] {
	color-scheme: dark;
	--site-color-primary:   #E8EEF7;
	--site-color-text:      #B0BEC5;
	--site-color-tarjeta:   #0D1B2E;
	--site-color-fondo:   #111827;
	--site-color-gris-claro:   #1E2A3A;
	--site-color-borde:     #1E2A3A;   /* en oscuro el borde no se aclara */
	--site-color-enlace:    #7AA2EB;   /* azul enlace + 45 % de blanco: se lee sobre fondo oscuro */
}

/* ================================
   LOGO
   ================================ */
.logo-dark { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-dark  { display: block; }
[data-theme="dark"] .logo-light { display: none; }

/* ================================
   CURSOR CUSTOM
   ================================ */
#cursorElement {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 99999;
	mix-blend-mode: exclusion;
}

#cursorElement::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	mix-blend-mode: exclusion;
	pointer-events: none;
	z-index: 99999;
	background: transparent;
	border: 1px solid #fff;
	opacity: 0.2;
	border-radius: 100%;
}

#cursorElement #cursor_arrow {
	opacity: 0;
	transition: var(--dur-lenta);
	transform: scale(0.3);
	pointer-events: none;
}

#cursorElement.showArrow {
	cursor: pointer;
	pointer-events: none;
}

#cursorElement.showArrow #cursor_arrow {
	opacity: 1;
	transform: scale(1);
	pointer-events: none;
	display: none;
}

/* ================================
   GRADIENT TEXT CLASSES
   ================================ */
@keyframes shine {
	to { background-position: 200%; }
}

@keyframes shine-y {
	to { background-position-y: 200%; }
}

.grd_general { color: var(--marca); }

.grd_eventos,
.grd_gestion,
.grd_web {
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	background-size: 200% auto;
	animation: shine 3s linear infinite;
	-webkit-animation: shine 3s linear infinite;
}

.grd_eventos {
	background-image: linear-gradient(90deg, #A68FE6 20%, #886ADE 40%, #886ADE 60%, #A68FE6 80%);
}

.grd_gestion {
	background-image: linear-gradient(90deg, #F3A301 20%, #F9D180 40%, #F9D180 60%, #F3A301 80%);
}

.grd_web {
	background-image: linear-gradient(90deg, #93EEDF 20%, #0EDAB7 40%, #0EDAB7 60%, #93EEDF 80%);
}

/* ================================
   INNER CONTAINER
   ================================ */
.site-inner {
	max-width: var(--contenedor);
	margin: 0 auto;
	padding: 0 var(--margen-lateral) !important;
}

@media (max-width: 1024px) {
	.site-inner { max-width: 920px !important; padding: 0 var(--margen-lateral) !important; }
}

@media (max-width: 768px) {
	.site-inner { max-width: 500px !important; padding: 0 var(--margen-lateral) !important; }
}

/* ================================
   SITE HEADER
   ================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	width: 100% !important;
	max-width: 100% !important;
	padding: 10px 0 !important;
	background: var(--site-color-fondo);
	border-bottom: 1px solid var(--site-color-borde);
	transition: box-shadow var(--dur-media) ease, top var(--dur-media) ease;
}

/* al bajar se esconde; reaparece apenas se hace scroll hacia arriba (custom.js).
   Se mueve con "top" y no con transform: un transform en el header vuelve
   relativo a él el menú fijo del celular (que espera fuera de la pantalla, a la
   derecha) y eso abre una barra de scroll horizontal. */
.site-header.site-header--oculto {
	top: -140px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 30px;
}

/* ---- Logo ---- */
.site-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__logo img {
	height: 72px;
	width: auto;
}

/* ---- Nav desktop: alineado a la derecha, pegado al switch ---- */
@media (min-width: 1025px) {
	.site-header__nav {
		margin-left: auto;
		margin-right: 26px;
	}
}

.site-footer #menu-principal-es-1,
.site-footer .sub-menu {
	list-style-type: none;
}

.site-header__nav .menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--esp-6);
	align-items: center;
}

.site-header__nav .menu li a {
	font-family: var(--site-typography-primary-font-family), Sans-serif;
	font-size: var(--fs-base);
	font-weight: 400;
	color: var(--site-color-text);
	text-decoration: none;
	padding: 0 0 3px 0;
	border-bottom: 2px solid transparent;
	transition: color var(--dur-rapida), border-color var(--dur-rapida);
	white-space: nowrap;
	display: inline-block;
}

.site-header__nav .menu li a:hover {
	color: var(--marca);
}

.site-header__nav .menu li.current-menu-item > a,
.site-header__nav .menu li.current-menu-ancestor > a {
	color: var(--marca);
	border-bottom-color: var(--marca);
}

/* ---- Dark mode toggle ---- */
.site-header__darkmode {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	border-radius: var(--radio-circulo);
	box-shadow: none;
	outline: none;
	color: var(--site-color-text);
	flex-shrink: 0;
	transition: color var(--dur-rapida), background var(--dur-rapida);
}

.site-header__darkmode:hover {
	background: var(--site-color-gris-claro) !important;
}

.site-header__darkmode svg {
	stroke: var(--site-color-text) !important;
	flex-shrink: 0;
}

.site-header__darkmode .icon-moon { display: none !important; }
.site-header__darkmode .icon-sun  { display: block !important; }

[data-theme="dark"] .site-header__darkmode .icon-moon { display: block !important; }
[data-theme="dark"] .site-header__darkmode .icon-sun  { display: none !important; }

/* ---- Hamburger ---- */
.site-header__hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: var(--esp-1);
	width: 40px;
	height: 40px;
	background: var(--marca);
	border: none;
	border-radius: var(--radio-xs);
	padding: 8px;
	flex-shrink: 0;
}

.site-header__hamburger span {
	display: block !important;
	width: 24px;
	height: 2px;
	background: var(--site-color-tarjeta) !important;
	border-radius: 2px;
	transition: transform var(--dur-media) ease, opacity var(--dur-media) ease;
	transform-origin: center;
}

.site-header__hamburger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.site-header__hamburger.is-active span:nth-child(2) {
	opacity: 0;
}
.site-header__hamburger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Submenú desktop ---- */
.site-header__nav .menu li {
	position: relative;
}

.site-header__nav .menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--site-color-fondo);
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-sm);
	padding: 8px;
	list-style: none;
	margin: 0;
	box-shadow: var(--sombra-1);
	z-index: 9100;
}

.site-header__nav .menu li:hover > .sub-menu {
	display: block;
}

.site-header__nav .menu .sub-menu li {
	width: 100%;
	border-bottom: none;
}

.site-header__nav .menu .sub-menu li a {
	display: block;
	padding: 9px 14px;
	font-size: var(--fs-md);
	border-radius: var(--radio-xs);
	border-bottom: none;
	color: var(--site-color-text);
	white-space: nowrap;
	transition: background var(--site-transition), color var(--site-transition);
}

.site-header__nav .menu .sub-menu li a:hover {
	background: var(--site-color-gris-claro);
	color: var(--marca);
}

.site-header__nav .menu .sub-menu li.current-menu-item > a {
	color: var(--marca);
	border-bottom: none;
}

[data-theme="dark"] .site-header__nav .menu .sub-menu {
	background: var(--site-color-gris-claro);
	border-color: #ffffff15;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}

/* ---- Megamenú (desktop: panel a todo el ancho bajo el header) ---- */
.mega {
	--mega-acento: var(--marca);
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--site-color-tarjeta);
	border-top: 1px solid var(--site-color-borde);
	border-bottom: 1px solid var(--site-color-borde);
	box-shadow: var(--sombra-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--dur-rapida) ease, transform var(--dur-rapida) ease, visibility 0s linear var(--dur-rapida);
	z-index: 9100;
}

/* puente invisible para no perder el hover entre el ítem y el panel */
.mega::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 30px;
}

.mega--servicios {
	--mega-acento: var(--site-color-turquesa);
}

.mega--invitaciones {
	--mega-acento: var(--site-color-pase);
}

.site-header__nav .menu li.has-mega:hover > .mega,
.site-header__nav .menu li.has-mega:focus-within > .mega {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--dur-rapida) ease, transform var(--dur-rapida) ease, visibility 0s;
}

.mega__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 30px 30px 26px;
}

.mega__titulo {
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--site-color-borde);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--site-color-text);
}

.mega__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* columnas separadas por una línea vertical */
.mega__grid > * {
	padding: 0 12px;
	border-left: 1px solid var(--site-color-borde);
}

.mega__grid > :first-child {
	padding-left: 0;
	border-left: 0;
}

.mega__grid > :last-child {
	padding-right: 0;
}

/* cada ítem es una caja que se rellena al pasar el mouse */
.site-header__nav .menu .mega .mega__item,
.mega__col--grupo .mega__caja {
	display: flex;
	gap: var(--esp-3);
	padding: 14px 16px;
	border: 0;
	border-radius: var(--radio-sm);
	white-space: normal;
	color: var(--site-color-text);
	transition: background var(--dur-rapida) ease;
}

.site-header__nav .menu .mega .mega__item:hover,
.mega__col--grupo .mega__caja:hover {
	background: var(--site-color-fondo);
}

.mega__col--grupo .mega__caja {
	flex-direction: column;
	gap: 0;
}

/* grupo con sub-enlaces (Bodas → Plan Express / Plan Exclusive) */
.mega__grupo {
	display: flex;
	align-items: center;
	gap: var(--esp-3);
}

.mega__grupo .mega__icono {
	margin-top: 0;
}

.mega__sub {
	display: flex;
	flex-direction: column;
	gap: var(--esp-1);
	margin: 10px 0 0 34px;
}

.site-header__nav .menu .mega .mega__sublink {
	align-self: flex-start;
	margin-left: -12px;
	padding: 5px 12px;
	border: 0;
	border-radius: var(--radio-pill);
	font-size: var(--fs-md);
	color: var(--site-color-text);
	transition: background var(--dur-rapida) ease, color var(--dur-rapida) ease;
}

/* hover: chip morado con texto blanco */
.site-header__nav .menu .mega .mega__sublink:hover {
	background: var(--mega-acento);
	color: #FFFFFF;
}

/* columna con varios ítems apilados (Recuerdos + Blog) */
.mega__col--lista {
	display: flex;
	flex-direction: column;
	gap: var(--esp-1);
}

.mega__col--lista .mega__icono {
	margin-top: 0;
}

.site-header__nav .menu .mega .mega__col--lista .mega__item {
	align-items: center;
}

.mega__icono {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--mega-acento);
}

.mega__icono svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mega__cuerpo {
	display: flex;
	flex-direction: column;
	gap: var(--esp-1);
}

.mega__nombre {
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.3;
	color: var(--site-color-primary);
}

.mega__texto {
	font-size: var(--fs-md);
	line-height: 1.45;
	color: var(--site-color-text);
}

.mega__mas {
	margin-top: 6px;
	font-size: var(--fs-md);
	font-weight: 600;
	color: var(--site-color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-header__nav .menu .mega .mega__item:hover .mega__mas,
.site-header__nav .menu .mega .mega__nota:hover .mega__mas {
	color: var(--mega-acento);
}

.site-header__nav .menu .mega .mega__nota {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--esp-3);
	margin-top: 26px;
	padding: 0;
	border: 0;
	white-space: normal;
	font-size: var(--fs-md);
	font-weight: 600;
	color: var(--site-color-primary);
}

.mega__nota .mega__icono {
	margin-top: 0;
}

.mega__nota .mega__mas {
	margin-top: 0;
	color: var(--mega-acento);
}

@media (min-width: 1025px) {
	.site-header__nav .menu li.has-mega {
		position: static;
	}
}

/* chips del menú: "Invitaciones" (morado + blanco) y "Carta virtual" (azul marino + amarillo) */
.site-header__nav .menu li.menu-capsula > a,
.site-header__nav .menu li.menu-capsula > a:hover,
.site-header__nav .menu li.menu-capsula.current-menu-item > a {
	padding: 4px 14px;
	border: 0;
	border-radius: var(--radio-sm);
	background: var(--site-color-pase);
	color: #FFFFFF;
	transition: opacity var(--dur-rapida);
}

.site-header__nav .menu li.menu-capsula--carta > a,
.site-header__nav .menu li.menu-capsula--carta > a:hover,
.site-header__nav .menu li.menu-capsula--carta.current-menu-item > a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 4px 14px 3px;
	background: var(--site-color-marino);
	color: var(--site-color-amarillo);
	line-height: 1.1;
}

/* etiqueta "NUEVO" pegada debajo del texto, dentro del chip */
.menu-capsula__nuevo {
	align-self: flex-end;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
	color: #FFFFFF;
}

.site-header__nav .menu li.menu-capsula > a:hover {
	opacity: 0.85;
}

/* flecha de desplegable en los ítems con megamenú */
.site-header__nav .menu li.has-mega > a::after {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 6px;
	vertical-align: 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--dur-rapida) ease;
}

@media (min-width: 1025px) {
	.site-header__nav .menu li.has-mega:hover > a::after,
	.site-header__nav .menu li.has-mega:focus-within > a::after {
		transform: rotate(180deg);
	}
}

/* ---- Megamenú en el menú mobile: lista simple bajo el ítem ---- */
@media (max-width: 1024px) {
	.mega {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		transition: none;
	}

	.mega::before,
	.mega__titulo,
	.mega__texto,
	.mega__item .mega__mas,
	.mega__nota .mega__mas {
		display: none;
	}

	.mega__inner {
		padding: 0 0 12px 16px;
	}

	.mega__grid {
		display: block;
	}

	.mega__grid > * {
		padding: 0;
		border: 0;
	}

	.mega__col--grupo .mega__caja {
		display: block;
		padding: 0;
	}

	.site-header__nav .menu .mega .mega__item:hover,
	.mega__col--grupo .mega__caja:hover {
		background: none;
	}

	.mega__col--lista {
		gap: 0;
	}

	.mega__grupo {
		padding: 10px 0 4px;
	}

	.mega__sub {
		margin: 0 0 6px 34px;
	}

	.site-header__nav .menu .mega .mega__sublink {
		padding: 6px 12px;
		font-size: var(--fs-md);
	}

	.site-header__nav .menu li.menu-capsula > a {
		display: inline-block;
		margin: 10px 0;
		padding: 5px 14px;
	}

	.site-header__nav .menu li.menu-capsula--carta > a {
		display: inline-flex;
		padding: 5px 14px 4px;
	}

	.site-header__nav .menu .mega .mega__item,
	.site-header__nav .menu .mega .mega__item:first-child,
	.site-header__nav .menu .mega .mega__nota {
		justify-content: flex-start;
		align-items: center;
		margin: 0;
		padding: 10px 0;
		border: 0;
	}

	.mega__nombre,
	.site-header__nav .menu .mega .mega__nota {
		font-size: var(--fs-md);
		font-weight: 400;
		color: var(--site-color-text);
	}
}

/* ---- Header mobile ---- */
@media (max-width: 1024px) {
	.site-header__inner {
		padding: 0 24px;
	}

	.site-header__darkmode {
		margin-left: auto;
		margin-right: 8px;
	}

	.site-header__hamburger {
		display: flex;
	}

	.site-header__nav {
		position: fixed;
		inset: 80px 0 0 0;
		background: var(--site-color-fondo);
		padding: 40px 24px;
		transform: translateX(100%);
		transition: transform var(--dur-media) ease;
		overflow-y: auto;
		z-index: 8999;
	}

	.site-header__nav.is-open {
		transform: translateX(0);
	}

	.site-header__nav .menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.site-header__nav .menu li {
		width: 100%;
		border-bottom: 1px solid var(--site-color-borde);
	}

	.site-header__nav .menu li a {
		display: block;
		padding: 16px 0;
		font-size: var(--fs-base);
		border-bottom: none;
	}

	.site-header__nav .menu li.current-menu-item > a {
		color: var(--marca);
		border-bottom: none;
	}

	/* Submenú mobile — inline, sin posición absoluta */
	.site-header__nav .menu .sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0 0 0 16px;
		background: transparent;
		min-width: 0;
	}

	.site-header__nav .menu .sub-menu li {
		border-bottom: 1px solid var(--site-color-borde);
	}

	.site-header__nav .menu .sub-menu li a {
		padding: 12px 0;
		border-radius: 0;
		font-size: var(--fs-md);
	}
}

@media (max-width: 768px) {
	.site-header__logo img {
		height: 62px;
	}
}

/* ================================
   SITE FOOTER
   ================================ */
.site-footer {
	width: 100%;
	background: var(--site-color-gris-claro);
	font-size: var(--fs-base);
}

.site-footer a {
	text-decoration: none;
}

.site-footer__inner {
	display: flex;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 30px;
}

.site-footer__upper {
	padding: 134px 0 64px 0;
}

.site-footer__upper .site-footer__inner {
	gap: var(--esp-12);
	align-items: flex-start;
}

.site-footer__col {
	flex: 1;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1.4;
}

.site-footer__heading {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--site-color-primary);
	margin-bottom: 20px;
}

.site-footer__about p {
	line-height: 1.7;
	color: var(--site-color-text);
	margin-bottom: 12px;
}

.site-footer__legal-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--site-color-text);
	text-decoration: underline;
	transition: color var(--site-transition);
}

.site-footer__legal-link:hover {
	color: var(--marca);
}

.site-footer__legal-menu {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-1) var(--esp-4);
}

.site-footer__legal-menu li a {
	color: var(--site-color-text);
	font-size: var(--fs-sm);
	text-decoration: underline;
	transition: color var(--site-transition);
}

.site-footer__legal-menu li a:hover {
	color: var(--marca);
}

.site-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: var(--fs-lg);
	align-items: flex-start;
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer__menu > li > a {
	display: block;
	padding: 6px 0;
	text-align: left;
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: var(--fs-base);
	font-weight: 400;
	color: var(--site-color-primary);
	transition: color var(--site-transition);
}

.site-footer__menu li a:hover,
.site-footer__menu li.current-menu-item > a {
	color: var(--marca);
}

.site-footer__menu .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.site-footer__menu .sub-menu li a {
	display: block;
	padding: 8px 0 8px 16px;
	font-size: var(--fs-md);
	font-weight: 400;
	color: var(--site-color-text);
	border-top: 1px solid var(--site-color-borde);
	transition: color var(--site-transition);
}

.site-footer__contact-item {
	display: flex;
	align-items: center;
	gap: var(--esp-2);
	color: var(--site-color-text);
	margin-bottom: 12px;
	transition: color var(--site-transition);
}

.site-footer__contact-item:hover {
	color: var(--marca);
}

.site-footer__contact-item svg {
	flex-shrink: 0;
	color: var(--marca);
}

.site-footer__payment-label {
	color: var(--site-color-text);
	line-height: 1.5;
	margin: 20px 0 10px;
}

.site-footer__izipay {
	height: 48px !important;
	width: auto;
	margin-bottom: 16px;
}

.site-footer__libro {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	gap: var(--esp-3);
	background: #051C3C08;
	border-radius: var(--radio-sm);
	padding: 12px 16px;
	color: var(--site-color-text);
	font-weight: 500;
}

.site-footer__libro img {
	width: 116px;
	height: auto;
}

.site-footer__social-bar {
	border-top: 1px solid var(--site-color-borde);
	padding: 40px 0;
}

.site-footer__social-bar .site-footer__inner {
	align-items: center;
	justify-content: center;
}

.site-footer__social-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--esp-4);
}

.site-footer__social-group img {
	height: 68px;
	width: auto;
}

.site-footer__handle {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-weight: 500;
	transition: opacity var(--site-transition);
}

.site-footer__handle:hover {
	opacity: 0.8;
}

.site-footer__handle--purple { color: var(--site-color-pase); }
.site-footer__handle--teal   { color: var(--site-color-turquesa); }

.site-footer__social-icons {
	display: flex;
	gap: var(--esp-3);
}

.site-footer__social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radio-circulo);
	color: var(--site-color-tarjeta);
	transition: opacity var(--site-transition), transform var(--site-transition);
}

.site-footer__social-icons a:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

.site-footer__social-icons--purple a { background: var(--site-color-pase); }
.site-footer__social-icons--teal   a { background: var(--site-color-turquesa); }

.site-footer__social-divider {
	width: 1px;
	height: 120px;
	background: var(--site-color-accent);
	opacity: 0.4;
	flex-shrink: 0;
	margin: 0 40px;
}

.site-footer__bottom {
	border-top: 1px solid var(--site-color-borde);
	padding: 20px 30px;
	text-align: center;
}

.site-footer__bottom p {
	font-size: var(--fs-sm);
	color: var(--site-color-accent);
}

.site-footer__strip {
	width: 100%;
	height: 16px;
	background-repeat: repeat-x;
	background-size: 258px auto;
}

[data-theme="dark"] .site-footer {
	background: var(--site-color-fondo);
}

[data-theme="dark"] .site-footer__libro {
	background: var(--site-color-gris-claro);
}

/* ---- Footer responsive ---- */
@media (max-width: 1024px) {
	.site-footer__inner {
		max-width: 920px;
	}

	.site-footer__upper .site-footer__inner {
		flex-wrap: wrap;
		gap: var(--esp-10);
	}

	.site-footer__links {
		display: none;
	}

	.site-footer__col {
		flex: 1 1 calc(50% - 18px);
	}

	.site-footer__social-divider {
		height: 80px;
		margin: 0 24px;
	}
}

@media (max-width: 768px) {
	.site-footer__inner {
		max-width: 500px;
	}

	.site-footer {
		text-align: center;
	}

	.site-footer__about p {
		font-size: var(--fs-md);
		text-align: center;
	}

	.site-footer__legal-link,
	.site-footer__contact-item,
	.site-footer__payment-label {
		text-align: center;
		justify-content: center;
	}

	.site-footer__social-group img {
		height: 50px;
	}

	.site-footer__upper {
		padding: 150px 0 40px 0;
	}

	.site-footer__upper .site-footer__inner {
		flex-direction: column;
		gap: var(--esp-8);
	}

	.site-footer__col {
		flex: 1 1 100%;
	}

	.site-footer__social-bar .site-footer__inner {
		flex-direction: column;
		gap: var(--esp-10);
	}

	.site-footer__social-divider {
		width: 80px;
		height: 1px;
		margin: 0;
	}
}

/* ================================
   HERO
   ================================ */
.fp-hero {
	overflow: hidden;
	position: relative;
}

.fp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--fp-hero-blur);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	opacity: 0.1;
	pointer-events: none;
	z-index: 0;
}

.fp-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--esp-15);
}

/* ---- Text col ---- */
.fp-hero__text {
	flex: 1.3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.fp-hero__pretitle {
	font-size: 36px;
	font-weight: 500;
	color: var(--site-color-primary);
	line-height: 1em;
	margin-bottom: 4px;
}

.fp-hero__title {
	color: var(--site-color-primary);
	margin-bottom: 24px;
}

.fp-hero__gradient {
	animation: shine 3s linear infinite;
	background: linear-gradient(270deg, var(--marca-claro) 20%, var(--marca) 40%, var(--marca) 60%, var(--marca-claro) 80%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.fp-hero__sub {
	margin-bottom: 36px;
	text-align: right;
}

/* ---- Image col ---- */
.fp-hero__image {
	flex: 1;
}

.fp-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ================================
   WHY
   ================================ */
[data-theme="dark"] .fp-why {
	background: var(--site-color-fondo);
}

.fp-why__title {
	line-height: 1.1em;
}

/* ---- Grid ---- */
.fp-why__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 110px;
}

.fp-why__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.fp-why__card-img {
	width: 100%;
	max-width: 250px;
	height: auto;
	display: block;
	border-radius: var(--radio-md);
	margin-bottom: 24px;
}

/* ---- Ilustraciones de las tarjetas (HTML/CSS, antes PNG) ----
   Ventana oscura con sus tres puntos, un título y el contenido; una forma de
   color asoma por un borde. Todo se escala con el ancho (cqw). */
.fp-ilus {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 376 / 298;
	border-radius: 0;
}

.fp-ilus__ventana {
	position: absolute;
	inset: 0 3%;
	overflow: hidden;
	border-radius: 7cqw;
	background: var(--site-color-primary);
	text-align: left;
}

.fp-ilus__titulo {
	position: absolute;
	left: 8cqw;
	top: 8cqw;
	margin: 0;
	font-size: 7cqw;
	font-weight: 700;
	line-height: 1;
	color: #FFFFFF;
}

.fp-ilus__puntos {
	position: absolute;
	right: 6cqw;
	top: 5cqw;
	display: flex;
	gap: 1.6cqw;
}

.fp-ilus__puntos i {
	width: 3.4cqw;
	height: 3.4cqw;
	border-radius: var(--radio-circulo);
	background: #8FC690;
	box-shadow: 0 0 2cqw rgba(143, 198, 144, 0.6);
}

.fp-ilus__puntos i:nth-child(2) {
	background: #E8B98C;
	box-shadow: 0 0 2cqw rgba(232, 185, 140, 0.6);
}

.fp-ilus__puntos i:nth-child(3) {
	background: #F2A5B6;
	box-shadow: 0 0 2cqw rgba(242, 165, 182, 0.6);
}

/* formas que asoman por los bordes */
.fp-ilus__forma {
	position: absolute;
	z-index: 1;
}

.fp-ilus__forma--circulo {
	left: 0;
	top: 62%;
	width: 12cqw;
	height: 24cqw;
	border-radius: 0 12cqw 12cqw 0;
	background: var(--site-color-turquesa);
	transform: translateX(-30%);
}

.fp-ilus__forma--triangulo {
	right: 0;
	top: 18%;
	width: 14cqw;
	height: 14cqw;
	background: var(--site-color-amarillo);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.fp-ilus__forma--rombo {
	right: 0;
	top: 58%;
	width: 8cqw;
	height: 20cqw;
	background: var(--marca);
	clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
}

/* --- Portfolio --- */
.fp-ilus__galeria {
	position: absolute;
	left: 8cqw;
	right: 8cqw;
	top: 20cqw;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4cqw;
}

.fp-ilus__tile {
	position: relative;
	aspect-ratio: 1;
	border-radius: 4cqw;
}

.fp-ilus__tile--turquesa { background: var(--site-color-turquesa-claro); }
.fp-ilus__tile--lila     { background: var(--marca-claro); }
.fp-ilus__tile--amarillo { background: var(--site-color-amarillo-claro); }
.fp-ilus__tile--celeste  { background: var(--site-color-gris-claro); }

.fp-ilus__estrellas {
	position: absolute;
	left: 4cqw;
	bottom: 3cqw;
	font-size: 3.6cqw;
	letter-spacing: 0.05em;
	line-height: 1;
	color: var(--site-color-primary);
}

.fp-ilus__estrellas b {
	font-weight: inherit;
	opacity: 0.45;
}

/* --- Gantt: cinco días --- */
.fp-ilus__gantt {
	position: absolute;
	left: 5cqw;
	right: 0;
	top: 20cqw;
	bottom: 6cqw;
	display: grid;
	grid-template-columns: 15cqw repeat(5, 1fr);
	grid-template-rows: repeat(4, 1fr);
	font-size: 4cqw;
	color: #FFFFFF;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
	background-size: 100% 25%, calc((100% - 15cqw) / 5) 100%;
	background-position: 0 0, 15cqw 0;
	border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.fp-ilus__dia,
.fp-ilus__fila {
	display: flex;
	align-items: center;
	justify-content: center;
	grid-row: 1;
}

.fp-ilus__fila {
	grid-row: var(--f);
	grid-column: 1;
}

.fp-ilus__barra,
.fp-ilus__hito,
.fp-ilus__enlace {
	grid-row: var(--f);
	grid-column: var(--c);
}

.fp-ilus__barra {
	align-self: center;
	height: 4.4cqw;
	margin: 0 1.5cqw;
	border-radius: var(--radio-pill);
}

.fp-ilus__barra--verde   { background: var(--site-color-whatsapp); }
.fp-ilus__barra--naranja { background: var(--site-color-amarillo); }
.fp-ilus__barra--azul    { background: var(--site-color-turquesa); }

/* avance dentro de la primera barra */
.fp-ilus__barra i {
	display: block;
	width: 60%;
	height: 32%;
	margin: 1.5cqw 0 0 2cqw;
	border-radius: var(--radio-pill);
	background: #FFFFFF;
}

/* línea de hito con rombos en los extremos */
.fp-ilus__hito {
	position: relative;
	align-self: start;
	height: 1px;
	margin: 2.2cqw 1.5cqw 0;
	background: rgba(255, 255, 255, 0.8);
}

.fp-ilus__hito::before,
.fp-ilus__hito::after {
	content: '';
	position: absolute;
	top: -1.2cqw;
	width: 2.4cqw;
	height: 2.4cqw;
	background: #FFFFFF;
	transform: rotate(45deg);
}

.fp-ilus__hito::before { left: -1.2cqw; }
.fp-ilus__hito::after  { right: -1.2cqw; }
.fp-ilus__hito--abierto::after { content: none; }

/* dependencia punteada entre una barra y la siguiente */
.fp-ilus__enlace {
	align-self: stretch;
	margin: 50% 0 50% 0;
	width: 40%;
	height: auto;
	margin: 0;
	border-left: 1px dashed rgba(255, 255, 255, 0.55);
	border-bottom: 1px dashed rgba(255, 255, 255, 0.55);
	transform: translateY(-25%) scaleY(0.5);
}

/* --- Heatmap --- */
.fp-ilus__ui {
	position: absolute;
	border-radius: 1.6cqw;
	background: rgba(255, 255, 255, 0.08);
}

.fp-ilus__ui--barra { right: 6cqw; top: 15cqw; width: 30cqw; height: 4cqw; border-radius: var(--radio-pill); }
.fp-ilus__ui--a     { left: 8cqw;  top: 24cqw; width: 26cqw; height: 15cqw; }
.fp-ilus__ui--b     { left: 37cqw; top: 24cqw; width: 26cqw; height: 15cqw; }
.fp-ilus__ui--c     { left: 66cqw; top: 24cqw; width: 26cqw; height: 15cqw; }
.fp-ilus__ui--linea { left: 30cqw; top: 46cqw; width: 40cqw; height: 2cqw; border-radius: var(--radio-pill); }
.fp-ilus__ui--d     { left: 8cqw;  top: 58cqw; width: 40cqw; height: 13cqw; }
.fp-ilus__ui--e     { left: 52cqw; top: 58cqw; width: 40cqw; height: 13cqw; }

.fp-ilus__calor {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.fp-why__card-title {
	line-height: 1.2em;
	margin-bottom: 12px;
	color: var(--site-color-primary);
}

.fp-why__card p {
	font-size: var(--fs-lg);
	color: var(--site-color-text);
	line-height: 1.5em;
	margin-bottom: 20px;
	flex: 1;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
	.fp-hero__pretitle {
		font-size: var(--fs-xl);
	}

	.fp-hero__inner {
		gap: var(--esp-10);
	}

}

@media (max-width: 768px) {
	.fp-hero__inner {
		flex-direction: column;
		text-align: center;
	}

	.fp-hero__text {
		align-items: center;
		text-align: center;
	}

	.fp-hero__pretitle,
	.fp-hero__sub {
		text-align: center;
	}

	.fp-hero__pretitle {
		font-size: var(--fs-2xl);
	}

	.fp-hero__sub {
		max-width: 100%;
	}

	.fp-hero__image {
		width: 100%;
	}

	/* why mobile */

	.fp-why__grid {
		grid-template-columns: 1fr;
		gap: var(--esp-12);
	}
}

/* ================================
   DARK MODE
   ================================ */
[data-theme="dark"] .bg-blue_standar {
	background: var(--site-color-gris-claro);
}

[data-theme="dark"] .fp-stat {
	background: var(--site-color-gris-claro);
}

[data-theme="dark"] .fp-stat__pill {
	background: #000;
	box-shadow: 0px 4px 15px 0px rgb(42 23 97 / 20%);
}

/* ================================
   TESTIMONIOS
   ================================ */
.fp-testimonials {
	padding-bottom: 120px !important;
}

.fp-testimonials__inner {
	position: relative;
	z-index: 1;
}

.fp-testimonials__header h2 {
	color: #fff;
}

/* ---- Masonry grid ---- */
.fp-testimonials__grid {
	columns: 3;
	column-gap: var(--esp-2);
}

/* ---- Card ---- */
.fp-testimonials__card {
	padding: 15px !important;
	break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 10px;
}

.fp-testimonials__quote {
	font-size: var(--fs-md);
	color: var(--site-color-primary);
	line-height: 1.6em;
	flex: 1;
}

/* ---- Author ---- */
.fp-testimonials__author {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--esp-3);
	padding-top: 16px;
	border-top: 1px solid var(--site-color-borde);
}

.fp-testimonials__name {
	display: block;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--site-color-turquesa);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.fp-testimonials__company {
	display: block;
	font-size: var(--fs-sm);
	color: var(--site-color-text);
}

/* ---- Avatar con borde degradado ---- */
.fp-testimonials__avatar {
	width: 56px;
	height: 56px;
	border-radius: var(--radio-circulo);
	padding: 2px;
	background: linear-gradient(270deg, #0EDAB7, #886ADE);
	flex-shrink: 0;
}

.fp-testimonials__avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--radio-circulo);
	object-fit: cover;
	display: block;
}

/* ---- Variante invertida: fondo blanco, tarjetas en el gris lavanda del sitio ---- */
.fp-testimonials--invertido {
	background: transparent;
}

.fp-testimonials--invertido .fp-testimonials__header h2 {
	color: var(--site-color-primary);
}

.fp-testimonials--invertido .fp-testimonials__card {
	background: #FFFFFF;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.fp-testimonials__grid {
		columns: 2;
	}
}

@media (max-width: 768px) {
	/* móvil: todas las tarjetas en una fila con scroll horizontal */
	.fp-testimonials__grid {
		columns: auto;
		display: flex;
		align-items: flex-start;
		gap: var(--esp-3);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.fp-testimonials__grid::-webkit-scrollbar {
		display: none;
	}
	.fp-testimonials__card {
		flex: 0 0 82%;
		margin-bottom: 0;
		scroll-snap-align: start;
	}

}

/* ================================
   STAT FLOTANTE
   ================================ */
.fp-stat {
	background: var(--site-color-gris-claro);
	padding: 0 30px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 0;
	overflow: inherit;
	z-index: 1;
	position: relative;
}

.fp-stat__pill {
	background: #fff;
	border-radius: var(--radio-pill);
	padding: 20px 60px;
	display: flex;
	align-items: center;
	gap: var(--esp-6);
	max-width: 800px;
	box-shadow: 0px 4px 15px 0px rgba(116, 90, 189, 0.2);
}

.fp-stat__img {
	width: 72px;
	height: auto;
	flex-shrink: 0;
}

.fp-stat__number {
	font-size: 68px;
	font-weight: 500;
	/* degradado general de la marca: turquesa → morado */
	background: linear-gradient(90deg, var(--site-color-turquesa), var(--site-color-pase));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
	flex-shrink: 0;
	letter-spacing: -2px;
}

.fp-stat__text {
	font-size: var(--fs-2xl);
	font-weight: 500;
	color: var(--site-color-primary);
	line-height: 1.2em;
	letter-spacing: -1px;
}

@media (max-width: 768px) {
	.fp-stat__pill {
		border-radius: var(--radio-lg);
		padding: 24px;
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
		gap: var(--esp-2);
	}

	.fp-stat__img {
		width: 52px;
	}

	.fp-stat__number {
		font-size: var(--fs-4xl);
	}

	.fp-stat__text {
		font-size: var(--fs-base);
	}
}

/* ================================
   PORTFOLIO
   ================================ */
.fp-portfolio {
	background: #fff;
}

/* en el home va sin fondo blanco */
.home .fp-portfolio {
	background: transparent;
}

[data-theme="dark"] .fp-portfolio {
	background: var(--site-color-fondo);
}

main.page-nosotros .fp-portfolio {
	background: transparent;
}

.fp-portfolio__flags {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--esp-2);
}

.fp-portfolio__flags img {
	width: 30px;
	height: 24px;
	object-fit: cover;
	border-radius: var(--radio-xs);
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.09);
}

/* ---- Grid ---- */
.fp-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--esp-6);
}

.fp-portfolio__card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radio-lg);
	display: block;
	text-decoration: none;
	transition: transform var(--dur-media) ease;
}

.fp-portfolio__card:hover {
	transform: scale(1.02);
}

.fp-portfolio__card-img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---- Overlay hover ---- */
.fp-portfolio__overlay {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: inherit;
	background: rgba(5, 28, 60, 0.8);
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transform: translateY(150%);
	transition: transform var(--dur-media) ease;
	border-radius: var(--radio-sm);
}

.fp-portfolio__card:hover .fp-portfolio__overlay {
	transform: translateY(0);
}

.fp-portfolio__overlay-type {
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 4px;
}

.fp-portfolio__overlay-name {
	font-size: var(--fs-lg);
	font-weight: 500;
	color: #fff;
}

.fp-portfolio__overlay-arrow {
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fp-portfolio__overlay-arrow svg {
	width: 28px;
	height: 28px;
}

.fp-portfolio__ribbon {
	position: absolute;
	bottom: 50%;
	left: 0;
	z-index: 1;
	pointer-events: none;
	width: 60px;
	transform: translateY(50%);
}

.fp-portfolio__card-flag {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 30px;
	height: 24px;
	object-fit: cover;
	border-radius: var(--radio-xs);
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.09);
}

/* ---- CTA ---- */
.fp-portfolio__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--esp-8);
	margin-top: 48px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.fp-portfolio__grid {
		grid-template-columns: 1fr;
	}


	.fp-portfolio__cta {
		flex-direction: column;
		gap: var(--esp-5);
	}
}

/* ================================
   SERVICES
   ================================ */
.fp-services {
}

.fp-services__inner {
	position: relative;
	z-index: 1;
}

.fp-services__header h2 {
	color: #fff;
}

/* ---- Grid ---- */
.fp-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-6);
}

.fp-services__card {
	padding: 32px 24px 28px;
	align-items: center;
	text-align: center;
	text-decoration: none;
	transition: transform var(--dur-media) ease;
}

.fp-services__card:hover {
	transform: scale(1.05);
}

.fp-services__card-title {
	margin-bottom: 24px;
	line-height: 1.2em;
}

.fp-services__card-img {
	min-width: 100%;
	padding: 0;
	margin-bottom: 28px;
}

.fp-services__card-img img {
	height: auto;
	width: 100%;
	display: block;
}

/* ---- Ilustraciones de los servicios (HTML/CSS, antes PNG) ----
   Fondo celeste, piezas blancas y los colores de marca; todo en cqw. */
.fp-sil {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 428 / 352;
	overflow: hidden;
	border-radius: 4.5% / 5.5%;   /* en % porque cqw no se aplica sobre su propio contenedor */
	background: color-mix(in srgb, var(--site-color-gris-claro) 70%, var(--site-color-accent));
}

.fp-sil i {
	display: block;
}

/* barras de título (web y gestión) */
.fp-sil__titulo {
	position: absolute;
	left: 32cqw;
	top: 12cqw;
	width: 36cqw;
	height: 2.4cqw;
	border-radius: var(--radio-pill);
	background: var(--site-color-accent);
}

.fp-sil__titulo--2 {
	left: 28cqw;
	top: 17.5cqw;
	width: 44cqw;
}

/* foto con montañas */
.fp-sil__foto {
	position: absolute;
	overflow: hidden;
	border: 1.6cqw solid #FFFFFF;
	border-radius: 2.4cqw;
	box-shadow: 0 2cqw 5cqw rgba(5, 28, 60, 0.15);
}

.fp-sil__foto-fondo {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--marca-claro) 40%, #FFFFFF);
}

.fp-sil__monte {
	position: absolute;
	bottom: 0;
	height: 78%;
}

.fp-sil__monte--a {
	left: 4%;
	width: 66%;
	background: color-mix(in srgb, var(--site-color-turquesa) 45%, var(--site-color-primary));
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.fp-sil__monte--b {
	right: 2%;
	width: 46%;
	height: 52%;
	background: color-mix(in srgb, var(--site-color-turquesa-claro) 70%, var(--site-color-turquesa));
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* --- Invitaciones --- */
.fp-sil__movil {
	position: absolute;
	left: 22cqw;
	top: 12cqw;
	width: 46cqw;
	height: 90cqw;
	border-radius: 7cqw;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 2cqw 6cqw rgba(5, 28, 60, 0.08);
}

.fp-sil__movil--atras {
	left: 27cqw;
	top: 8cqw;
	background: rgba(255, 255, 255, 0.5);
}

.fp-sil__linea {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: var(--w);
	height: 2.2cqw;
	border-radius: var(--radio-pill);
	background: var(--site-color-gris-claro);
}

.fp-sil__foto--grande {
	left: 37cqw;
	top: 12cqw;
	width: 45cqw;
	height: 41cqw;
}

.fp-sil__corazon {
	position: absolute;
	left: 71cqw;
	top: 48cqw;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15cqw;
	height: 15cqw;
	border-radius: var(--radio-circulo);
	background: linear-gradient(135deg, var(--marca-claro), var(--marca));
	box-shadow: 0 1.5cqw 4cqw rgba(136, 106, 222, 0.35);
	color: #FFFFFF;
}

.fp-sil__corazon svg {
	width: 7cqw;
	height: 7cqw;
}

/* --- Web: carrusel --- */
.fp-sil__carrusel {
	position: absolute;
	left: 14cqw;
	right: 14cqw;
	top: 28cqw;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3cqw;
}

.fp-sil__tarjeta {
	position: relative;
	display: block;
	height: 37cqw;
	padding: 2cqw;
	border-radius: 2.4cqw;
	background: #FFFFFF;
	box-shadow: 0 1.5cqw 4cqw rgba(5, 28, 60, 0.08);
}

.fp-sil__tarjeta-img {
	height: 16cqw;
	margin-bottom: 2.4cqw;
	border-radius: 1.6cqw;
	background: var(--site-color-turquesa-claro);
}

.fp-sil__raya {
	width: 90%;
	height: 1.6cqw;
	margin-bottom: 1.4cqw;
	border-radius: var(--radio-pill);
	background: var(--site-color-accent);
}

.fp-sil__raya--corta {
	width: 60%;
}

.fp-sil__punto {
	width: 2.4cqw;
	height: 2.4cqw;
	margin-top: 2.4cqw;
	border-radius: var(--radio-circulo);
	background: var(--marca);
}

.fp-sil__flecha {
	position: absolute;
	top: 42cqw;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 7.5cqw;
	height: 7.5cqw;
	border-radius: var(--radio-circulo);
	background: #FFFFFF;
	box-shadow: 0 1cqw 3cqw rgba(5, 28, 60, 0.12);
	color: var(--marca);
}

.fp-sil__flecha svg {
	width: 4cqw;
	height: 4cqw;
}

.fp-sil__flecha--izq { left: 10cqw; }
.fp-sil__flecha--der { right: 10cqw; }

.fp-sil__paginas {
	position: absolute;
	left: 0;
	right: 0;
	top: 71cqw;
	display: flex;
	justify-content: center;
	gap: 1.4cqw;
}

.fp-sil__paginas i {
	width: 2cqw;
	height: 2cqw;
	border-radius: var(--radio-circulo);
	background: var(--site-color-text);
}

.fp-sil__paginas i:first-child {
	background: var(--site-color-primary);
}

/* --- Gestión: subida de archivos --- */
.fp-sil__subida {
	position: absolute;
	left: 19cqw;
	top: 29cqw;
	width: 62cqw;
	height: 38cqw;
	border-radius: 2.4cqw;
	background: var(--site-color-turquesa-claro);
	box-shadow: 0 2cqw 5cqw rgba(14, 218, 183, 0.25);
}

.fp-sil__subida::before {
	content: '';
	position: absolute;
	inset: 2.4cqw;
	border: 1px dashed rgba(255, 255, 255, 0.95);
	border-radius: 1.6cqw;
}

.fp-sil__subida-ico {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9cqw;
	height: 9cqw;
	transform: translate(-50%, -50%);
	color: #FFFFFF;
}

.fp-sil__subida-ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fp-sil__foto--chica {
	left: 60cqw;
	top: 49cqw;
	width: 20cqw;
	height: 21cqw;
}

.fp-sil__foto--chica .fp-sil__foto-fondo {
	background: color-mix(in srgb, var(--site-color-gris-claro) 60%, var(--marca-claro));
}

/* la ilustración de invitaciones va siempre en los morados de Pase Digital
   (las variables de acento cambian con la marca de la página) */
.fp-sil--invitaciones {
	--marca:       var(--site-color-pase);
	--marca-claro: var(--site-color-pase-claro);
}

/* en la home los títulos de servicio van en color plano (sin degradado) */
.fp-services__card-title .grd_eventos,
.fp-services__card-title .grd_gestion,
.fp-services__card-title .grd_web {
	background: none;
	animation: none;
	-webkit-animation: none;
}

.fp-services__card-title .grd_eventos { color: var(--site-color-pase); }
.fp-services__card-title .grd_gestion { color: var(--site-color-amarillo); }
.fp-services__card-title .grd_web { color: var(--site-color-turquesa); }

/* --- Cartas virtuales: celular con platos + QR (tonos de Carta Virtual) --- */
.fp-sil__carta-cab {
	position: absolute;
	left: 4cqw;
	right: 4cqw;
	top: 5cqw;
	height: 8cqw;
	border-radius: 2cqw;
	background: var(--site-color-primary);
}

.fp-sil__plato {
	position: absolute;
	left: 3cqw;
	right: 3cqw;
	top: var(--y);
	display: flex;
	align-items: center;
	gap: 2cqw;
	height: 11cqw;
	padding: 0 2cqw;
	border-radius: 2cqw;
	background: #FFFFFF;
	box-shadow: 0 1cqw 3cqw rgba(5, 28, 60, 0.08);
}

.fp-sil__plato-foto {
	flex: none;
	width: 7.5cqw;
	height: 7.5cqw;
	border-radius: var(--radio-circulo);
	background: radial-gradient(circle at 35% 35%, var(--site-color-amarillo-claro), var(--site-color-amarillo));
}

.fp-sil__plato-txt {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1.4cqw;
}

.fp-sil__plato-linea {
	height: 1.6cqw;
	border-radius: var(--radio-pill);
	background: var(--site-color-gris-claro);
}

.fp-sil__plato-linea--corta {
	width: 55%;
}

.fp-sil__plato-precio {
	flex: none;
	width: 7cqw;
	height: 3.4cqw;
	border-radius: var(--radio-pill);
	background: var(--site-color-amarillo);
}

.fp-sil__qr {
	position: absolute;
	right: 9cqw;
	top: 46cqw;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20cqw;
	height: 20cqw;
	border: 1.2cqw solid var(--site-color-amarillo);
	border-radius: 3cqw;
	background: #FFFFFF;
	box-shadow: 0 2cqw 5cqw rgba(5, 28, 60, 0.15);
	color: var(--site-color-primary);
}

.fp-sil__qr svg {
	width: 12cqw;
	height: 12cqw;
}

.fp-services__bajada {
	max-width: 620px;
	margin: 14px auto 0;
	color: var(--site-color-accent) !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.fp-services__grid {
		gap: var(--esp-4);
	}
}

@media (max-width: 768px) {
	.fp-services__grid {
		grid-template-columns: 1fr;
		gap: var(--esp-6);
	}

}

/* ================================
   DISEÑO Y DESARROLLO WEB
   ================================ */

/* Badge en lugar de pretitle: necesita el mismo spacing */
.fp-hero__text .badge {
	margin-bottom: 4px;
}

/* ================================
   MOLÉCULA · CHIP
   Pastilla con borde para características, filtros y etiquetas.
   Variantes: --color (tinte de --c o de la marca), --filtro (botón
   seleccionable, .is-active) y --hover (se eleva al pasar el mouse).
   ================================ */
.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2);
	padding: var(--esp-2) var(--esp-4);
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-pill);
	background: var(--site-color-tarjeta);
	color: var(--site-color-primary);
	font-family: inherit;
	font-size: var(--fs-md);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: border-color var(--site-transition), background-color var(--site-transition),
	            color var(--site-transition), transform var(--site-transition);
}

.chip svg {
	width: var(--icono-sm);
	height: var(--icono-sm);
	flex-shrink: 0;
	color: var(--site-color-whatsapp);
}

.chip--color {
	align-self: flex-start;
	padding: 6px var(--esp-3);
	border-color: transparent;
	background: color-mix(in srgb, var(--c, var(--marca)) 12%, transparent);
	color: color-mix(in srgb, var(--c, var(--marca)) 78%, #000);
	font-size: var(--fs-sm);
	line-height: 1.2;
}

.chip--filtro {
	background: transparent;
	cursor: pointer;
}

.chip--filtro:hover,
.chip--hover:hover {
	border-color: var(--c, var(--marca));
}

.chip--hover:hover {
	transform: translateY(-2px);
}

.chip--filtro.is-active {
	border-color: var(--c, var(--marca));
	background: var(--c, var(--marca));
	color: #FFFFFF;
}

@media (max-width: 768px) {
	.chip {
		padding: var(--esp-2) var(--esp-3);
		font-size: var(--fs-sm);
	}
}

[data-theme="dark"] .chip--color {
	color: var(--c, var(--marca));
}

/* ================================
   MOLÉCULA · CONTENEDOR DE ÍCONO
   Cuadro con el ícono en el color de la marca (o de --c) sobre su tinte al 12 %.
   Variantes: --sm (42 px) y --borde (con borde del color, para fondos navy).
   ================================ */
.icono-caja {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: var(--radio-md);
	background: color-mix(in srgb, var(--c, var(--marca)) 12%, transparent);
	color: var(--c, var(--marca));
}

.icono-caja svg {
	width: var(--icono-lg);
	height: var(--icono-lg);
}

.icono-caja--sm {
	width: 42px;
	height: 42px;
}

.icono-caja--borde {
	border: 1px solid color-mix(in srgb, var(--c, var(--marca)) 40%, transparent);
	background: color-mix(in srgb, var(--c, var(--marca)) 16%, transparent);
}

.icono-caja--borde svg {
	fill: currentColor;
}

@media (max-width: 768px) {
	.icono-caja--sm {
		width: 38px;
		height: 38px;
	}
}

/* ================================
   MOLÉCULA · BADGE — variantes
   .badge (base, más arriba) · --borde (mayúsculas con borde de la marca)
   · --oscuro (sobre fondos navy)
   ================================ */
.badge--borde {
	padding: var(--esp-1) 10px;
	border: 1px solid var(--marca);
	border-radius: var(--radio-xs);
	background: transparent;
	color: var(--marca);
	font-size: var(--fs-2xs);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.badge--oscuro {
	background: rgba(255, 255, 255, .12);
	color: #FFFFFF;
}

/* ================================
   ORGANISMO · CABECERA DE SECCIÓN
   Badge + título + bajada, centrados sobre el contenido de la sección.
   --angosta limita el ancho para bajadas largas.
   ================================ */
.seccion-cab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--esp-5);
	margin-bottom: var(--esp-15);
	text-align: center;
}

.seccion-cab > h1,
.seccion-cab > h2,
.seccion-cab > p {
	margin: 0;
}

.seccion-cab > p {
	max-width: 720px;
}

.seccion-cab--angosta {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.seccion-cab {
		margin-bottom: var(--esp-10);
	}
}

/* ================================
   TIPOS DE PROYECTO
   ================================ */
.sw-types .site-inner {
	max-width: 1300px !important;
}

/* Contenedor con scroll horizontal cuando el abanico no entra.
   El padding lateral negativo deja que las cards rotadas y sus sombras
   no se recorten contra los bordes del scroller. */
.sw-types__scroller {
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0 -30px;
	padding: 0 30px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--site-color-turquesa-claro) transparent;
}
/* arrastre con el mouse (solo desktop/tablet) */
@media (min-width: 769px) {
	.sw-types__scroller {
		cursor: grab;
	}
	/* los botones conservan su cursor y su clic */
	.sw-types__scroller a {
		cursor: pointer;
	}
	.sw-types__scroller.is-dragging,
	.sw-types__scroller.is-dragging a {
		cursor: grabbing;
	}
	.sw-types__scroller.is-dragging {
		user-select: none;
		scroll-behavior: auto;
	}
	/* solo mientras se arrastra de verdad se desactiva el hover/enlace */
	.sw-types__scroller.is-dragging .sw-types__card {
		transition: none;
	}
	.sw-types__scroller.is-dragging a {
		pointer-events: none;
	}
}

.sw-types__scroller::-webkit-scrollbar {
	height: 6px;
}
.sw-types__scroller::-webkit-scrollbar-thumb {
	background: var(--site-color-turquesa-claro);
	border-radius: 3px;
}

/* Abanico: las cards se solapan y se inclinan alternadamente.
   Al pasar el mouse, la card se endereza y pasa por encima del resto. */
.sw-types__grid {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 30px 0;
	min-width: max-content;
	margin: 0 auto;
}

.card-standar {
	background: #fff;
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-md);
	padding: var(--esp-8);
	display: flex;
	flex-direction: column;
	gap: var(--esp-3);
	position: relative;
	overflow: hidden;
}

.card-standar ol,
.card-standar ul {
	list-style: none;
}

.card-standar p,
.card-standar li {
	font-size: var(--fs-base);
	color: var(--site-color-text);
	line-height: 1.4em;
}

.sw-types__card {
	flex: 0 0 260px;
	border: 1px solid #e2e8f0;
	border-radius: var(--radio-lg);
	padding: 28px 24px;
	box-shadow: 0 10px 15px #2549cc1a, 0 4px 6px #28335b1a;
	transform-origin: center bottom;
	transition: transform var(--dur-media) ease, box-shadow var(--dur-media) ease;
}

/* solape + inclinación en abanico */
.sw-types__card + .sw-types__card { margin-left: -20px; }
.sw-types__card:nth-child(1) { transform: rotate(-3.5deg) translateY(8px);  z-index: 1; }
.sw-types__card:nth-child(2) { transform: rotate(1.5deg)  translateY(-4px); z-index: 2; }
.sw-types__card:nth-child(3) { transform: rotate(-1.5deg) translateY(6px);  z-index: 3; }
.sw-types__card:nth-child(4) { transform: rotate(2.5deg)  translateY(-2px); z-index: 4; }
.sw-types__card:nth-child(5) { transform: rotate(-2.5deg) translateY(5px);  z-index: 5; }

/* al hover: derecha, elevada y por encima de todas.
   Solo en dispositivos con puntero real: en táctil el :hover se queda
   pegado tras el tap, sin importar el ancho de pantalla. */
@media (hover: hover) and (pointer: fine) {
	.sw-types__grid .sw-types__card:hover,
	.sw-types__grid .sw-types__card:focus-within {
		transform: rotate(0deg) translateY(-14px) scale(1.04);
		box-shadow: 0 22px 20px rgba(20, 30, 60, .20);
		z-index: 20;
	}
}

.sw-types__card h3 {
	color: var(--site-color-primary);
	font-size: var(--fs-xl);
	line-height: 1.2em;
}

.sw-types__card p {
	flex: 1;
}

/* el boton usa la clase global .btn-wsp; aqui solo se ajusta al ancho de la card */
.sw-types__card .btn-wsp {
	width: 100%;
	font-size: var(--fs-md);
	padding: 12px 20px;
}

/* ---- Responsive ---- */
/* Hasta tablet se mantiene el abanico y se navega con scroll horizontal;
   solo en móvil las cards se apilan una debajo de otra. */
@media (max-width: 1024px) {
	.sw-types__grid {
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.sw-types__scroller {
		overflow-x: visible;
		margin: 0;
		padding: 0;
	}
	.sw-types__grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--esp-5);
		padding: 0;
		min-width: 0;
	}
	.sw-types__card {
		flex: 1 1 auto;
		box-shadow: none;
	}
	.sw-types__card + .sw-types__card { margin-left: 0; }
	.sw-types__card:nth-child(1),
	.sw-types__card:nth-child(2),
	.sw-types__card:nth-child(3),
	.sw-types__card:nth-child(4),
	.sw-types__card:nth-child(5) {
		transform: none;
		z-index: auto;
	}
	/* refuerzo: aunque el equipo reporte puntero fino, en móvil no hay hover */
	.sw-types__grid .sw-types__card:hover,
	.sw-types__grid .sw-types__card:focus-within {
		transform: none;
		box-shadow: none;
		z-index: auto;
	}

}

@media (prefers-reduced-motion: reduce) {
	.sw-types__card { transition: box-shadow var(--dur-rapida) ease; }
}

/* ================================
   BENEFITS
   ================================ */
.sw-benefits {
	margin-top: 0;
	padding-top: 60px;
}

.sw-benefits__title {
	text-align: center;
	margin-bottom: 40px;
	color: var(--site-color-primary);
}

.sw-benefits__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--esp-4);
	margin-bottom: 48px;
}

.sw-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: var(--esp-3);
	background: #fff;
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-md);
	padding: 20px;
}

.sw-benefits__item p {
	margin: 0;
}

.sw-benefits__icon {
	display: flex;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: 2px;
}

.sw-benefits__cta {
	display: flex;
	justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
	.sw-benefits {
		margin-top: 40px;
		padding-top: 40px;
	}

	.sw-benefits__grid {
		grid-template-columns: 1fr;
	}
}

/* ================================
   PAIN POINTS
   ================================ */
.sw-pain {
	background: var(--site-color-primary);
}

.sw-pain__inner {
	display: flex;
	align-items: center;
	gap: var(--esp-20);
}

.sw-pain__title {
	color: #fff;
	flex: 1;
	flex-shrink: 0;
	line-height: 1.15em;
}

.sw-pain__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-10);
	flex: 2.5;
}

.sw-pain__icon {
	display: block;
	width: 56px;
	height: auto;
	margin-bottom: 16px;
}

.sw-pain__card h3 {
	color: #fff;
	font-size: var(--fs-lg);
	line-height: 1.3em;
	margin-bottom: 12px;
}

.sw-pain__card p {
	color: rgba(255, 255, 255, 0.65);
	font-size: var(--fs-md);
	line-height: 1.6em;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.sw-pain__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--esp-10);
	}

	.sw-pain__title {
		text-align: center;
		width: 100%;
	}

	.sw-pain__grid {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.sw-pain__grid {
		grid-template-columns: 1fr;
		gap: var(--esp-8);
	}

	.sw-pain__card {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ================================
   TABLA DE PRECIOS — tarjeta estándar del sitio (.plan-card)
   Úsala en toda tabla de precios:
   <div class="card-standar plan-card [plan-card--destacado]">
     <span class="plan-card__etiqueta">Ahorra 10%</span>   (opcional, solo en la destacada)
     <span class="plan-card__nombre">Plan mensual</span>
     <p class="plan-card__precio"><span class="plan-card__monto">S/ 29.90</span> / mes</p>
     <p class="plan-card__nota">Permanencia mínima de 3 meses</p>
     <ul class="plan-card__lista"><li>svg check + texto</li>…</ul>
     <a class="btn-wsp">…</a>
   </div>
   ================================ */
.plan-card {
	align-items: flex-start;
	padding: 36px 32px;
	border-radius: var(--radio-lg);
	overflow: visible;
}

.plan-card--destacado {
	border: 2px solid var(--marca);
	box-shadow: 0 24px 50px color-mix(in srgb, var(--marca) 18%, transparent);
}

.plan-card__etiqueta {
	position: absolute;
	right: 24px;
	top: -14px;
	padding: 6px 14px;
	border-radius: var(--radio-pill);
	background: var(--marca);
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 500;
}

.plan-card__nombre {
	color: var(--marca);
	font-size: var(--fs-xl);
	font-weight: 600;
}

.plan-card__precio {
	margin: 0;
	color: var(--site-color-text);
}

/* el precio va siempre en azul marino, en todas las tablas */
.plan-card__monto {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.8px;
	color: var(--site-color-primary);
}

.plan-card__nota {
	margin: 0 0 8px;
	font-size: var(--fs-md) !important;
}

.plan-card__lista {
	display: flex;
	flex-direction: column;
	gap: var(--esp-3);
	width: 100%;
	margin: 8px 0 28px;
	padding: 20px 0 0;
	border-top: 1px solid var(--site-color-borde);
	list-style: none;
}

.plan-card__lista li {
	display: flex;
	align-items: flex-start;
	gap: var(--esp-2);
	font-family: var(--site-typography-text-font-family), sans-serif;
	font-size: var(--fs-md) !important;
}

.plan-card__lista svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--site-color-whatsapp);
}

.plan-card .btn-wsp {
	width: 100%;
	margin-top: auto;
}

@media (max-width: 768px) {
	.plan-card { padding: 32px 24px; }
}

/* ================================
   PLANES DE GESTIÓN
   ================================ */
.sw-plans__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-6);
	align-items: stretch;
	margin-bottom: 60px;
}

.sw-plans__btn {
	display: block;
	text-align: center;
	background: var(--site-color-whatsapp);
	color: #fff;
	padding: 14px 20px;
	border-radius: var(--radio-sm);
	text-decoration: none;
	font-size: var(--fs-md);
	font-weight: 500;
	transition: opacity var(--site-transition);
	margin-top: auto;
}

.sw-plans__btn:hover {
	opacity: 0.88;
}

.sw-plans__cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.sw-plans__btn--cta {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2);
	width: fit-content;
	margin-top: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.sw-plans__grid {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
}

/* ================================================
   NOSOTROS - HERO
   ================================================ */
.ns-hero {
	text-align: center;
	position: relative;
	overflow: hidden;
}

.ns-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--fp-hero-blur);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	opacity: 0.1;
	pointer-events: none;
}

.ns-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ns-hero__title {
	line-height: 1.1em;
	color: var(--site-color-primary);
	margin-bottom: 24px;
}

.ns-hero__sub {
	max-width: 480px;
	text-align: center;
}

@media (max-width: 768px) {
	/* ns-hero__title hereda responsive del h1 global */
}

/* ================================================
   NOSOTROS - TIMELINE
   ================================================ */
.ns-timeline {
	background: #fff;
}

.ns-timeline__header p {
	max-width: 560px;
	margin: 0 auto;
}

.ns-timeline__track {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--esp-10);
}

.ns-timeline__track::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--site-color-borde);
	transform: translateX(-50%);
	z-index: 0;
}

.ns-timeline__item {
	display: grid;
	grid-template-columns: 1fr 80px 1fr;
	align-items: start;
	position: relative;
	z-index: 1;
}

.ns-timeline__center {
	display: flex;
	justify-content: center;
	padding-top: 28px;
}

.ns-timeline__dot {
	width: 32px;
	height: 32px;
	border-radius: var(--radio-circulo);
	border: 5px solid transparent;
	background-image: linear-gradient(#fff, #fff), linear-gradient(270deg, #0EDAB7, #886ADE);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	flex-shrink: 0;
}

.ns-timeline__card {
	border-radius: var(--radio-md);
	padding: 28px;
	padding-right: 110px;
	position: relative;
	overflow: hidden;
	background: #f9f9ff;
}

.ns-timeline__item--right .ns-timeline__card {
	padding-right: 28px;
	padding-left: 110px;
}

.ns-timeline__year {
	display: block;
	color: var(--marca);
	font-size: var(--fs-md);
	margin-bottom: 8px;
}

.ns-timeline__card-title {
	color: var(--site-color-primary);
	margin-bottom: 12px;
}

.ns-timeline__card p {
	font-size: var(--fs-md);
	line-height: 1.6em;
	color: var(--site-color-text);
}

.ns-timeline__card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 50px;
	height: 100%;
	background-image: var(--ns-pattern);
	background-repeat: repeat;
	background-size: 50px;
	pointer-events: none;
}

.ns-timeline__item--right .ns-timeline__card::after {
	right: auto;
	left: 0;
}

.ns-timeline__spacer {
	/* placeholder vacío */
}

/* ================================================
   NOSOTROS - EQUIPO
   ================================================ */
.ns-team {
	text-align: center;
	padding-bottom: 40px;
}

.ns-team__connector {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ns-team__line {
	width: 1px;
	height: 48px;
	background: var(--site-color-borde);
}

.ns-team__title {
	margin: 48px 0 40px;
}

.ns-team__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--esp-8) var(--esp-6);
}

.ns-team__member {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--esp-3);
	width: 140px;
}

.ns-team__avatar {
	width: 140px;
	height: 140px;
	border-radius: var(--radio-circulo);
	border: 3px solid transparent;
	background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #0EDAB7, #886ADE);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	overflow: hidden;
	flex-shrink: 0;
}

.ns-team__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ns-team__role {
	font-size: var(--fs-md);
	color: var(--site-color-text);
	text-align: center;
	line-height: 1.4em;
}

/* ================================================
   NOSOTROS - STATS
   ================================================ */
.ns-stats {
	text-align: center;
	padding: 60px 0 0;
}

.ns-stats__title {
	margin-bottom: 48px;
}

.ns-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-10);
}

.ns-stats__number {
	display: block;
	font-size: 76px;
	font-weight: 500;
	color: var(--site-color-turquesa);
	line-height: 1em;
	margin-bottom: 12px;
}

.ns-stats__desc {
	font-size: var(--fs-lg);
	color: var(--site-color-text);
	line-height: 1.4em;
}

@media (max-width: 768px) {
	.ns-stats__grid {
		grid-template-columns: 1fr;
		gap: var(--esp-8);
	}

	.ns-stats__number {
		font-size: var(--fs-5xl);
	}
}

@media (max-width: 768px) {
	.ns-timeline__track {
		gap: var(--esp-6);
	}

	.ns-timeline__track::before {
		display: none;
	}

	.ns-timeline__item {
		grid-template-columns: 1fr;
	}

	.ns-timeline__center {
		display: none;
	}

	.ns-timeline__spacer {
		display: none;
	}

	.ns-timeline__card,
	.ns-timeline__item--right .ns-timeline__card {
		padding: 24px;
		padding-right: 70px;
	}

	.ns-timeline__item--right .ns-timeline__card::after {
		right: 0;
		left: auto;
	}

	.ns-timeline__card::after {
		width: 24px;
		background-size: 32px;
	}
}

/* ================================================
   BLOG
   ================================================ */
.bl-hero__inner {
	display: flex;
	align-items: center;
	gap: var(--esp-8);
}

.bl-hero__title {
	font-size: 80px;
	line-height: 1em;
	flex-shrink: 0;
}

.bl-hero__sub {
	font-size: var(--fs-base);
	color: var(--site-color-text);
}

/* Categorías */
.bl-categories {
	background: #fff;
}

.bl-cat {
	margin-bottom: 60px;
}

.bl-cat__header {
	display: flex;
	align-items: center;
	gap: var(--esp-4);
	border-bottom: 2px solid var(--marca);
	padding-bottom: 12px;
	margin-bottom: 28px;
}

.bl-cat__name {
	font-size: var(--fs-xl);
	color: var(--marca);
	flex-shrink: 0;
	margin: 0;
}

.bl-cat__link {
	margin-left: auto;
	font-size: var(--fs-sm);
	color: var(--marca);
	text-decoration: none;
	letter-spacing: 0.06em;
	flex-shrink: 0;
	transition: opacity var(--site-transition);
}

.bl-cat__link:hover {
	opacity: 0.7;
}

/* Grid de posts */
.bl-cat__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-8);
}

.bl-card__img-wrap {
	display: block;
	border-radius: var(--radio-sm);
	overflow: hidden;
	margin-bottom: 16px;
	aspect-ratio: 4 / 3;
}

.bl-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--site-transition);
}

.bl-card__img--placeholder {
	width: 100%;
	height: 100%;
	background: var(--site-color-gris-claro);
}

.bl-card__img-wrap:hover .bl-card__img {
	transform: scale(1.04);
}

.bl-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--esp-2);
}

.bl-card__title {
	font-size: var(--fs-lg);
	line-height: 1.3em;
	margin: 0;
}

.bl-card__title a {
	color: var(--site-color-primary);
	text-decoration: none;
}

/* hover del título: turquesa (casos de éxito, servicios web) o morado (invitaciones web) */
.bl-card__title a:hover,
.bl-destacado__title a:hover {
	color: var(--bl-hover, var(--site-color-turquesa));
}

.bl-card--pase {
	--bl-hover: var(--site-color-pase);
}

.bl-card__excerpt {
	font-size: var(--fs-md);
	line-height: 1.5em;
	color: var(--site-color-text);
	margin: 0;
}

.bl-card__meta {
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	opacity: 0.6;
	margin: 0;
}

.bl-card__sep {
	margin: 0 6px;
}

/* Responsive */
@media (max-width: 1024px) {
	.bl-cat__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ================================================
   CATEGORY ARCHIVE
   ================================================ */
.cat-hero {
	text-align: center;
}

.cat-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--esp-4);
}

.cat-hero__title {
	font-size: 64px;
	color: var(--marca);
	line-height: 1.1em;
	margin: 0;
}

.cat-hero__back {
	font-size: var(--fs-sm);
	color: var(--site-color-primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cat-filter-wrap {
	border-top: 1px dashed var(--site-color-borde);
	border-bottom: 1px dashed var(--site-color-borde);
	padding: 16px 0;
}

.cat-filter {
	display: flex;
	align-items: center;
	gap: var(--esp-4);
	flex-wrap: wrap;
}

.cat-filter__label {
	font-size: var(--fs-sm);
	color: var(--site-color-primary);
	flex-shrink: 0;
}

.cat-filter__links {
	display: flex;
	align-items: center;
	gap: var(--esp-5);
	flex-wrap: wrap;
}

.cat-filter__link {
	font-size: var(--fs-md);
	color: var(--marca);
	text-decoration: none;
	transition: opacity var(--site-transition);
}

.cat-filter__link:hover,
.cat-filter__link.active {
	opacity: 0.7;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cat-posts {
	background: #fff;
}

.cat-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

@media (max-width: 768px) {
	.cat-hero__title {
		font-size: var(--fs-4xl);
	}
}

@media (max-width: 768px) {
	.bl-hero__title {
		font-size: 52px;
	}

	.bl-cat__grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================
   DARK MODE  (activado por JS: data-theme="dark" en <body>)
   ================================================ */

/* ---- Fondos de sección ---- */
[data-theme="dark"] .bl-categories,
[data-theme="dark"] .ns-timeline,
[data-theme="dark"] .cat-posts {
	background: #0e131e;
}

[data-theme="dark"] .sw-pain {
	background: #0d1b2e;
}

/* ---- Fondos de cards / items ---- */
[data-theme="dark"] .sw-benefits__item,
[data-theme="dark"] .card-standar,
[data-theme="dark"] .fp-services__card,
[data-theme="dark"] .ns-timeline__card {
	background: var(--site-color-tarjeta);
}

/* ---- Punto de timeline (color interior adapta al fondo) ---- */
[data-theme="dark"] .ns-timeline__dot {
	background-image: linear-gradient(#0e131e, #0e131e), linear-gradient(270deg, #0EDAB7, #886ADE);
}

/* ---- Líneas verticales ---- */
[data-theme="dark"] .ns-timeline__track::before,
[data-theme="dark"] .ns-team__line {
	background: #ffffff47;
}

/* ================================================
   SINGLE POST
   ================================================ */
.sp-hero {
	overflow: hidden;
}

.sp-hero__inner,
.sp-content__inner {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 30px;
}

.sp-hero__inner {
	max-width: 1100px;
	display: flex;
	flex-direction: column;
	gap: var(--esp-6);
}

.sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: var(--esp-2);
}

.sp-breadcrumb .badge {
	text-decoration: none;
	transition: opacity var(--site-transition);
}

.sp-breadcrumb .badge:hover {
	opacity: 0.75;
}

.sp-hero__title {
	line-height: 1.1em;
	margin: 0;
}

@media (min-width: 769px) {
	.head-title_h1B {
		font-size: var(--fs-6xl);
	}
}

.sp-hero__divider {
	border: none;
	border-top: 1px solid var(--site-color-borde);
	margin: 32px 0 0;
}

.sp-content {
	padding: 48px 0 80px;
	overflow: hidden;
}

/* sp-hero__title hereda responsive del h1 global */

/* ---- Contenido del post ---- */
.sp-content__inner p {
	margin-bottom: 15px;
	line-height: 1.6em;
}

/* ---- Listas del contenido ---- */
.sp-content__inner ul,
.sp-content__inner ol {
	margin: 0 0 20px;
	padding-left: 26px;
}

.sp-content__inner li {
	position: relative;
	margin-bottom: 10px;
	/* mismo tamano y alto de linea que los parrafos del contenido */
	font-size: var(--fs-base);
	line-height: 1.6em;
}

.sp-content__inner li:last-child {
	margin-bottom: 0;
}

/* Listas anidadas */
.sp-content__inner li > ul,
.sp-content__inner li > ol {
	margin: 10px 0 0;
}

/* Viñeta cuadrada morada, alineada con la primera línea del texto */
.sp-content__inner ul {
	list-style: none;
}

.sp-content__inner ul > li::before {
	content: '';
	position: absolute;
	left: -26px;
	/* centra el cuadrito respecto a la altura de la primera línea */
	top: calc((1.6em - 10px) / 2);
	width: 10px;
	height: 10px;
	background: var(--marca);
}

/* Numeradas: mantiene el número, en morado */
.sp-content__inner ol {
	list-style: decimal;
}

.sp-content__inner ol > li::marker {
	color: var(--marca);
	font-weight: 500;
}

.sp-content__inner h1{
	margin-bottom: 8px;
	margin-top: 32px;
}

.sp-content__inner h2 {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: var(--fs-xl);
	letter-spacing: 0;
	margin: 45px 0 20px;
}

.sp-content__inner h3,
.sp-content__inner h4 {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	letter-spacing: 0;
	color: var(--site-color-text);
	margin: 35px 0 20px;
}

.sp-content__inner h3 { font-size: var(--fs-xl); }
.sp-content__inner h4 { font-size: var(--fs-base); }

.sp-content__inner a {
	color: var(--marca);
	font-size: inherit;
	text-decoration: underline;
}

.sp-content__inner strong,
.sp-content__inner b {
	font-weight: 500;
}

.sp-content__inner em {
	background: #fff490;
	font-style: normal;
	text-decoration: inherit;
}

.sp-content__inner img,
.sp-content__inner video {
	border-radius: var(--radio-xs);
	box-shadow: 0 0 6px rgba(19, 48, 106, 0.1);
	background: #fff;
	border: 4px solid #fff;
	display: block;
	margin: 10px auto;
	max-width: 100%;
}

.sp-content__inner img.emoji {
	background: transparent;
	border: none;
	padding: 2px;
	margin: auto;
	position: relative;
	top: 4px;
	width: 35px;
	height: auto;
	box-shadow: none;
}

.sp-content__inner figcaption {
	color: var(--site-color-text);
	font-size: var(--fs-sm);
	font-style: italic;
	font-weight: 300;
	line-height: 1.4;
	margin: 2px auto;
	text-align: center;
	display: block;
}

.sp-content__inner figure.wp-caption.alignright { margin: 0 0 0 20px; }
.sp-content__inner figure.wp-caption.alignleft  { margin: 0 20px 0 0; }

.sp-content__inner blockquote {
	border-radius: var(--radio-sm);
	border: 1px solid #886ADE;
	padding: 16px;
	margin: 10px 0;
	width: 100%;
	background: #EBE5FC;
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: var(--fs-base);
	color: #290661;
}

[data-theme="dark"] .sp-content__inner em {
	background: #edff0038;
}

[data-theme="dark"] .sp-content__inner blockquote {
	background: #281f45;
}

/* ---- Post-it / insight ---- */
.sp-content__inner .insight_blog {
	display: inline-block;
	vertical-align: top;
	text-align: center;
	width: 300px;
	position: relative;
	background: rgba(136, 106, 222, 0.2);
	overflow: hidden;
	margin: 20px;
	padding: 20px 20px 30px;
	border-radius: 0 0 0 30px / 45px;
	box-shadow:
		inset 0 -40px 40px rgba(0,0,0,0.04),
		inset 0  25px 10px rgba(0,0,0,0.04),
		0 5px 6px 5px rgba(0,0,0,0.04);
}

.sp-content__inner .insight_blog::before {
	content: '';
	display: block;
	position: absolute;
	width: 20px;
	height: 25px;
	background: rgba(136, 106, 222, 0.2);
	box-shadow: 3px -2px 10px rgba(0,0,0,0.2), inset 15px -15px 15px rgba(0,0,0,0.2);
	left: 0;
	bottom: 0;
	z-index: 2;
	transform: skewX(25deg);
}

/* ---- Utilidades ---- */
.hide { display: none !important; }

.sp-content__inner .img-only-mobile { display: none; }

@media (max-width: 768px) {
	.sp-content__inner .img-only-desktop { display: none; }
	.sp-content__inner .img-only-mobile  { display: block; }

	.sp-content__inner figure {
		padding: 0;
		display: block;
		float: none;
		width: 100%;
	}

	.sp-content__inner figure.wp-caption.alignright,
	.sp-content__inner figure.wp-caption.alignleft {
		margin: 0 auto;
	}
}

/* ================================================
   RELACIONADOS (grid de productos — sección universal)
   ================================================ */
.p3d-relacionados {
	border-top: 1px solid var(--site-color-borde);
	padding-top: 40px !important;
	padding-bottom: 80px !important;
}

.p3d-relacionados__header h4 {
	font-size: var(--fs-xl);
	color: var(--site-color-primary);
	margin: 0 0 28px;
}

.p3d-relacionados__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--esp-6);
}

.p3d-rel-card {
	display: flex;
	flex-direction: column;
}

.p3d-rel-card__img {
	display: block;
	background: #FDEAE2;
	border-radius: var(--radio-md);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	transition: transform var(--site-transition);
}

.p3d-rel-card__img:hover {
	transform: scale(1.02);
}

.p3d-rel-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	padding: 0;
}

.p3d-rel-card__title {
	font-size: var(--fs-md);
	font-weight: 500;
	color: var(--site-color-primary);
	text-decoration: none;
	line-height: 1.3em;
	transition: color var(--site-transition);
	display: block;
	margin-bottom: 4px;
}

.p3d-rel-card__title:hover {
	color: var(--marca);
}

.p3d-rel-card__excerpt {
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	margin: 0 0 6px;
	line-height: 1.4em;
}

.p3d-rel-card__precio {
	display: flex;
	align-items: center;
	gap: var(--esp-2);
	flex-wrap: wrap;
}

.p3d-rel-card__precio-sale .woocommerce-Price-amount {
	font-size: var(--fs-md);
	font-weight: 600;
	color: var(--site-color-primary);
}

.p3d-rel-card__precio-tachado .woocommerce-Price-amount,
.p3d-rel-card__precio del,
.p3d-rel-card__precio del .woocommerce-Price-amount {
	font-weight: 400;
}

.p3d-rel-card__precio-tachado .woocommerce-Price-amount {
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	text-decoration: line-through;
	opacity: 0.5;
}

.p3d-rel-card__precio-actual .woocommerce-Price-amount {
	font-size: var(--fs-md);
	font-weight: 600;
	color: var(--site-color-primary);
}

@media (max-width: 1024px) {
	.p3d-relacionados__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.p3d-relacionados__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--esp-4);
	}
}

@media (max-width: 470px) {
	.p3d-relacionados__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--esp-3);
	}
}

/* ================================================
   MAPA DE SITIO
   ================================================ */
.sitemap-hero {
	padding: 60px 0 80px;
}

.sitemap-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 12px;
}

.sitemap-desc {
	margin-bottom: 48px;
	max-width: 560px;
}

.sitemap-nav {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--esp-10) var(--esp-12);
}

.sitemap-section__title {
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-size: var(--fs-base);
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--marca);
}

.sitemap-section__title a {
	color: var(--site-color-primary);
	transition: color var(--site-transition);
}

.sitemap-section__title a:hover {
	color: var(--site-color-turquesa);
}

.sitemap-section__list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid var(--site-color-borde);
}

.sitemap-section__list li {
	border-bottom: 1px solid var(--site-color-borde);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--esp-3);
}

.sitemap-section__list li a {
	display: block;
	padding: 7px 0;
	font-size: var(--fs-md);
	color: var(--site-color-text);
	transition: color var(--site-transition);
}

.sitemap-section__list li a:hover {
	color: var(--site-color-turquesa);
}

.sitemap-date {
	font-size: var(--fs-xs);
	color: var(--marca);
	white-space: nowrap;
	flex-shrink: 0;
}

/* ================================================
   PROMOS
   ================================================ */
.pm-hero {
	text-align: center;
	overflow: hidden;
}

.pm-hero__title {
	margin: 0 0 60px 0;
}

/* ---- Tabs nav ---- */
.pm-tabs .site-inner,
.page-promos .site-inner {
	max-width: 800px;
}

.pm-tabs__nav {
	display: flex;
	justify-content: center;
	gap: var(--esp-8);
	border-bottom: 1px solid var(--site-color-borde);
	margin-bottom: 32px;
}

.pm-tabs__btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 0;
	margin-bottom: -1px;
	font-size: var(--fs-base);
	font-weight: 500;
	color: var(--site-color-primary);
	cursor: pointer;
	transition: color var(--site-transition), border-color var(--site-transition);
	font-family: var(--site-typography-primary-font-family), sans-serif;
}

.pm-tabs__btn.is-active {
	color: var(--site-color-turquesa);
	border-bottom-color: var(--site-color-turquesa);
}

/* ---- Panels ---- */
.pm-tabs__panel {
	display: none;
}

.pm-tabs__panel.is-active {
	display: block;
}

/* ---- Lista de promos ---- */
.pm-list {
	display: flex;
	flex-direction: column;
	gap: var(--esp-3);
}

.pm-item {
	display: flex;
	align-items: center;
	gap: var(--esp-5);
	background: #fff;
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-sm);
	padding: 16px 20px;
	text-decoration: none;
	transition: box-shadow var(--site-transition);
	box-shadow: 0 2px 10px 0 rgba(66, 35, 187, .05);
}

.pm-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.pm-item:hover .pm-item__arrow svg {
	animation: arrow-slide 0.6s ease infinite;
}

.pm-item__img {
	width: 100%;
	max-width: 80px;
	border-radius: var(--radio-sm);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--site-color-gris-claro);
	box-shadow: 0 0 10px 0 rgb(0 0 0 / .05);
}

.pm-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pm-item__img--placeholder {
	background: var(--site-color-gris-claro);
}

.pm-item__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--esp-1);
	text-align: left;
}

.pm-item__title {
	font-weight: 500;
	color: var(--site-color-primary);
	margin: 0;
}

.page-legales .pm-item__title {
	font-weight: 400 !important;
}

.pm-item__vigencia {
	font-size: var(--fs-sm);
	color: var(--site-color-accent);
	margin: 0;
}

.pm-item__arrow {
	color: var(--marca);
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.pm-item__arrow svg {
	width: 30px;
	height: 30px;
}

.pm-empty {
	color: var(--site-color-accent);
}

/* ---- Dark mode ---- */
[data-theme="dark"] .pm-item {
	background: #000000b5;
}

@media (max-width: 768px) {
	/* pm-hero__title hereda responsive del h1 global */
	.pm-tabs__nav { gap: var(--esp-5); }
}

/* ================================================
   SINGLE PROMO
   ================================================ */
.spr-hero__body {
	display: flex;
	align-items: center;
	gap: var(--esp-8);
}

.spr-hero__img {
	flex-shrink: 0;
	width: 180px;
	height: 180px;
	border-radius: var(--radio-md);
	overflow: hidden;
	background: var(--site-color-gris-claro);
	box-shadow: 0 4px 20px 0 rgb(0 0 0 / .08);
}

.spr-hero__img img {
	width: 100%;
	max-width: 200px;
	border-style: solid;
	border-width: 2px;
	border-color: var(--site-color-tarjeta);
	border-radius: var(--radio-lg);
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
	display: block;
}

.spr-hero__meta {
	display: flex;
	flex-direction: column;
	gap: var(--esp-2);
}

.spr-hero__estado {
	font-size: var(--fs-sm);
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--site-color-accent);
	text-transform: uppercase;
	margin: 0;
}

.spr-hero__estado strong {
	font-weight: 500;
}

.spr-hero__meta .sp-hero__title {
	margin: 0;
}

.spr-hero__vigencia {
	font-size: var(--fs-md);
	color: var(--site-color-text);
	margin: 0;
}

@media (max-width: 768px) {
	.spr-hero__body {
		flex-direction: column;
		align-items: flex-start;
	}
	.spr-hero__img {
		width: 140px;
		height: 140px;
	}
}

/* ================================================
   LIST — bullets reemplazados por checkmark SVG
   ================================================ */
.list ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.list ul li {
	position: relative;
	padding: 4px 0 4px 28px;
}

/* Ítems de icono: por defecto el SVG se oculta y el label se muestra (footer, mobile, tablet) */
.menu-icon-svg { display: none !important; }
.menu-icon-label { display: inline; }

/* Solo en el header desktop se invierte */
@media (min-width: 1025px) {
	.site-header__nav .menu-icon-svg {
		display: inline-flex !important;
		align-items: center;
		width: 1.2em;
		height: 1.2em;
		vertical-align: middle;
		fill: currentColor;
		line-height: 1;
	}
	.site-header__nav .menu-icon-svg svg {
		width: 24px;
		height: 24px;
		display: block;
		fill: inherit;
	}
	.site-header__nav .menu-icon-label { display: none; }

	/* Separador vertical antes del icono */
	.site-header__nav .menu-carrito,
	.site-header__nav .menu-user {
		border-left: 1px solid #ccc;
		padding: 0 0 0 10px;
	}
}

.list ul li::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 0;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='currentColor' aria-hidden='true'><path d='M14.72 8.79L10.43 13.09L8.78 11.44C8.69036 11.3353 8.58004 11.2503 8.45597 11.1903C8.33191 11.1303 8.19678 11.0965 8.05906 11.0912C7.92134 11.0859 7.78401 11.1091 7.65568 11.1594C7.52736 11.2096 7.41081 11.2859 7.31335 11.3833C7.2159 11.4808 7.13964 11.5974 7.08937 11.7257C7.03909 11.854 7.01589 11.9913 7.02121 12.1291C7.02653 12.2668 7.06026 12.4019 7.12028 12.526C7.1803 12.65 7.26532 12.7604 7.37 12.85L9.72 15.21C9.81344 15.3027 9.92426 15.376 10.0461 15.4258C10.1679 15.4755 10.2984 15.5008 10.43 15.5C10.6923 15.4989 10.9437 15.3947 11.13 15.21L16.13 10.21C16.2237 10.117 16.2981 10.0064 16.3489 9.88458C16.3997 9.76272 16.4258 9.63201 16.4258 9.5C16.4258 9.36799 16.3997 9.23728 16.3489 9.11542C16.2981 8.99356 16.2237 8.88296 16.13 8.79C15.9426 8.60375 15.6892 8.49921 15.425 8.49921C15.1608 8.49921 14.9074 8.60375 14.72 8.79ZM12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17317C2.00433 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8079C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7363 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2V2ZM12 20C10.4178 20 8.87104 19.5308 7.55544 18.6518C6.23985 17.7727 5.21447 16.5233 4.60897 15.0615C4.00347 13.5997 3.84504 11.9911 4.15372 10.4393C4.4624 8.88743 5.22433 7.46197 6.34315 6.34315C7.46197 5.22433 8.88743 4.4624 10.4393 4.15372C11.9911 3.84504 13.5997 4.00346 15.0615 4.60896C16.5233 5.21447 17.7727 6.23984 18.6518 7.55544C19.5308 8.87103 20 10.4177 20 12C20 14.1217 19.1572 16.1566 17.6569 17.6569C16.1566 19.1571 14.1217 20 12 20V20Z' fill='%2310DB48'/></svg>") center / contain no-repeat;
}

.page-virtual-invitations .site-footer__upper { display: none !important; }
.page-virtual-invitations .site-header__nav { display: none !important; }

.vi-lang-float {
	position: fixed;
	top: 26px;
	right: 96px;
	z-index: 9999;
	background: #fff;
	color: var(--site-color-primary);
	font-size: var(--fs-sm);
	font-weight: 600;
	padding: 10px 16px;
	border-radius: var(--radio-pill);
	box-shadow: none;
	border: 1px solid var(--marca);
	text-decoration: none;
	transition: opacity var(--dur-rapida);
}

@media (max-width: 768px) {
	.vi-lang-float {
		top: 23px;
		right: 76px;
	}
	.vi-lang-float__text {
		display: none;
	}
}

.vi-lang-float:hover {
	opacity: 0.85;
}
.page-virtual-invitations .site-header__hamburger { display: none !important; }

/* ================================================
   DISEÑO Y DESARROLLO WEB — secciones nuevas
   ================================================ */

/* ---- Hero full-width (sin imagen) ---- */
.dw-hero-full .fp-hero__inner {
	justify-content: center;
}
.dw-hero-full .fp-hero__text {
	flex: unset;
	align-items: center;
	text-align: center;
	max-width: 700px;
}
.dw-hero-full .fp-hero__sub {
	text-align: center;
}

/* ---- Pain points (dark) ---- */
.dw-pain {
	background: #0b1628;
	padding: 72px 0;
}
.dw-pain__inner {
	display: flex;
	align-items: center;
	gap: var(--esp-15);
}
.dw-pain__title {
	flex: 0 0 260px;
	color: #fff;
	font-size: 36px;
	line-height: 1.2;
	margin: 0;
}
.dw-pain__grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--esp-10);
}
.dw-pain__icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
	display: block;
	margin-bottom: 16px;
}
.dw-pain__card h3 {
	color: #fff;
	font-size: var(--fs-base);
	font-weight: 500;
	margin: 0 0 10px;
	line-height: 1.3;
}
.dw-pain__card p {
	color: #a0aec0;
	font-size: var(--fs-sm);
	margin: 0;
	line-height: 1.7;
}

@media (max-width: 1024px) {
	.dw-pain__inner { flex-direction: column; gap: var(--esp-10); }
	.dw-pain__title { flex: unset; font-size: var(--fs-2xl); }
	.dw-pain__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 470px) {
	.dw-pain__grid { grid-template-columns: 1fr; }
}

/* ---- Reencuadre ---- */
.dw-reframe {
	background: var(--site-color-fondo);
	padding: 80px 0;
	overflow: hidden;
}
.dw-reframe__inner {
	display: flex;
	align-items: flex-start;
	gap: var(--esp-15);
}
.dw-reframe__text {
	flex: 1.4;
}
.dw-reframe__text .badge {
	margin-bottom: 16px;
	display: inline-block;
}
.dw-reframe__text h2 {
	margin: 0 0 30px;
}
.dw-reframe__text p {
	margin-bottom: 30px;
	color: var(--site-color-primary) !important;
}
.dw-hl {
	font-weight: 500;
}
/* chips */
.dw-reframe__chips {
	list-style: none;
	padding: 0;
	margin: 30px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-2);
}
/* visual: imagen + stats flotando */
.dw-reframe__visual {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ---- Mockup de tienda (fondo imagen + secuencia de compra en código) ---- */
.dw-mock {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}
.dw-mock__bg {
	display: block;
	width: 100%;
	height: auto;
}

/* card de producto */
.dw-mock__card {
	position: absolute;
	z-index: 1;
	top: 10%;
	left: 10%;
	width: 100%;
	max-width: 230px;
	background: #fff;
	border-radius: var(--radio-lg);
	padding: 10px 10px 16px;
	box-shadow: 0 2px 15px rgba(20, 30, 60, .20);
}
.dw-mock__photo {
	position: relative;
	border-radius: var(--radio-md);
	margin-bottom: 12px;
}
.dw-mock__photo svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radio-md);
}
.dw-mock__badge {
	position: absolute;
	top: -6px;
	right: -4px;
	background: #E5342A;
	color: #fff;
	font-size: var(--fs-2xs);
	font-weight: 500;
	letter-spacing: .3px;
	padding: 5px 9px;
	border-radius: var(--radio-xs);
	line-height: 1;
}
.dw-mock__name {
	font-size: var(--fs-lg);
	font-weight: 500;
	color: #0D1B2A;
	margin: 0 0 7px;
	padding: 0 4px;
	line-height: 1.15;
}
.dw-mock__stars {
	display: flex;
	gap: 3px;
	padding: 0 4px;
	margin-bottom: 9px;
}
.dw-mock__stars span {
	width: 12px;
	height: 12px;
	background: #DDDDE8;
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.dw-mock__stars span.on { background: #F3A301; }
.dw-mock__desc {
	font-size: var(--fs-xs);
	font-weight: 400;
	color: #5A6A85;
	line-height: 1.5;
	margin: 0 0 12px;
	padding: 0 4px;
}

/* fila precio + carrito */
.dw-mock__buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--esp-2);
	padding: 0 4px;
}
.dw-mock__price {
	font-size: var(--fs-base);
	font-weight: 500;
	color: #0D1B2A;
	margin: 0;
}
.dw-mock__cart {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2);
	padding: 9px 15px;
	border-radius: var(--radio-sm);
	background: #E5342A;
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(229, 52, 42, .32);
	animation: dw-cart-press 9s ease-in-out infinite;
}
.dw-mock__cart svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes dw-cart-press {
	0%,  18%  { transform: scale(1); }
	21%       { transform: scale(.82); }
	25%, 100% { transform: scale(1); }
}

/* popup de compra exitosa */
.dw-mock__popup {
	position: absolute;
	z-index: 3;
	top: 30%;
	left: 20%;
	width: 56%;
	background: #fff;
	border-radius: var(--radio-lg);
	padding: 26px 18px 22px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(20, 30, 60, .22);
	opacity: 0;
	transform: scale(.85);
	animation: dw-popup 9s ease-in-out infinite;
}
@keyframes dw-popup {
	0%,  22%  { opacity: 0; transform: scale(.85); pointer-events: none; }
	27%, 62%  { opacity: 1; transform: scale(1); }
	68%, 100% { opacity: 0; transform: scale(.85); }
}
.dw-mock__popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	color: #9AA5B8;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: dw-close-press 9s ease-in-out infinite;
}
.dw-mock__popup-close svg { width: 13px; height: 13px; }
@keyframes dw-close-press {
	0%,  58%  { transform: scale(1); }
	61%       { transform: scale(.75); }
	65%, 100% { transform: scale(1); }
}
.dw-mock__popup-icon {
	display: block;
	width: 52px;
	margin: 0 auto 12px;
}
.dw-mock__popup-icon svg { width: 100%; height: auto; }
.dw-mock__popup-ring {
	stroke-dasharray: 145;
	stroke-dashoffset: 145;
	animation: dw-ring 9s ease-in-out infinite;
}
@keyframes dw-ring {
	0%,  23%  { stroke-dashoffset: 145; }
	33%, 66%  { stroke-dashoffset: 0; }
	67%, 100% { stroke-dashoffset: 145; }
}
.dw-mock__popup-check {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: dw-check 9s ease-in-out infinite;
}
@keyframes dw-check {
	0%,  29%  { stroke-dashoffset: 40; }
	37%, 66%  { stroke-dashoffset: 0; }
	67%, 100% { stroke-dashoffset: 40; }
}
.dw-mock__popup-title {
	font-size: var(--fs-base);
	font-weight: 500;
	color: #0D1B2A;
	margin: 0 0 4px;
}
.dw-mock__popup-sub {
	font-size: var(--fs-xs);
	color: #5A6A85;
	margin: 0;
}

/* cursor */
.dw-mock__cursor {
	position: absolute;
	z-index: 4;
	width: 20px;
	top: 0;
	left: 0;
	animation: dw-cursor-move 9s cubic-bezier(.45, 0, .25, 1) infinite;
}
.dw-mock__cursor svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 2px 4px rgba(20, 30, 60, .3));
	animation: dw-cursor-click 9s ease-in-out infinite;
}
/* recorrido: entra → clic en "Comprar" → sube a la X → clic → sale */
@keyframes dw-cursor-move {
	0%        { top: 96%; left: 80%; opacity: 0; }
	6%        { top: 92%; left: 76%; opacity: 1; }
	18%, 25%  { top: 71%; left: 52%; opacity: 1; }
	48%, 66%  { top: 34%; left: 71%; opacity: 1; }
	84%       { top: 92%; left: 76%; opacity: 1; }
	94%, 100% { top: 96%; left: 80%; opacity: 0; }
}
@keyframes dw-cursor-click {
	0%,  18%  { transform: scale(1); }
	21%       { transform: scale(.75); }
	25%, 58%  { transform: scale(1); }
	61%       { transform: scale(.75); }
	65%, 100% { transform: scale(1); }
}

@media (max-width: 1024px) {
	.dw-mock { max-width: 360px; }
}
@media (max-width: 470px) {
	.dw-mock__name  { font-size: var(--fs-md); }
	.dw-mock__price { font-size: var(--fs-md); }
	.dw-mock__desc  { font-size: 10.5px; }
	.dw-mock__badge { font-size: 9px; padding: 4px 7px; }
	.dw-mock__cart  { font-size: var(--fs-2xs); padding: 7px 11px; gap: var(--esp-1); }
	.dw-mock__popup-title { font-size: var(--fs-md); }
}

@media (prefers-reduced-motion: reduce) {
	.dw-mock__cart, .dw-mock__cursor, .dw-mock__cursor svg,
	.dw-mock__popup, .dw-mock__popup-close,
	.dw-mock__popup-ring, .dw-mock__popup-check {
		animation: none;
	}
	.dw-mock__popup { display: none; }
	.dw-mock__cursor { display: none; }
}

.dw-reframe__cards {
	display: flex;
	align-items: stretch;
	gap: var(--esp-8);
	margin-top: 30px;
}
.dw-reframe__stat {
	display: flex;
	flex-direction: column;
	gap: var(--esp-2);
	padding-left: 28px;
	border-left: 1px solid var(--site-color-borde);
}
.dw-reframe__stat:first-child {
	padding-left: 0;
	border-left: 0;
}
.dw-reframe__num {
	font-size: 44px;
	font-weight: 500;
	line-height: 1;
	background: linear-gradient(90deg, var(--marca), var(--marca-claro));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.dw-reframe__label {
	font-size: var(--fs-sm);
	color: var(--site-color-primary) !important;
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.dw-reframe__inner {
		flex-direction: column;
		align-items: center;
		gap: var(--esp-10);
	}
	.dw-reframe__text {
		text-align: center;
	}
	.dw-reframe__chips,
	.dw-reframe__cards {
		justify-content: center;
	}
	.dw-reframe__stat {
		align-items: center;
		text-align: center;
	}
	.dw-reframe__visual {
		width: 100%;
		order: -1;
	}
}
@media (max-width: 470px) {
	.dw-reframe__cards { gap: var(--esp-4); margin-top: 24px; }
	.dw-reframe__stat { padding-left: 18px; }
	.dw-reframe__num { font-size: 34px; }
}

/* dark */
/* ---- Qué incluye ---- */
.dw-includes {
	padding: 80px 0;
}
.dw-includes__inner {}
.dw-includes__header h2 {
	color: #fff !important;
}
.dw-includes__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--esp-5);
}

/* Cards navy con borde de color y resplandor del mismo tono.
   Cada card define su color con la variable --c. */
.dw-includes__card {
	display: flex;
	flex-direction: column;
	gap: var(--esp-3);
	position: relative;
	background: var(--site-color-marino) !important;
	border: 1px solid color-mix(in srgb, var(--c, #0EDAB7) 45%, transparent) !important;
	border-radius: var(--radio-lg);
	padding: 26px 22px;
	overflow: visible;
	box-shadow: 0 8px 24px rgba(6, 12, 28, .35);
	transition: border-color var(--site-transition),
	            box-shadow var(--site-transition),
	            transform var(--site-transition);
}
@media (hover: hover) and (pointer: fine) {
	.dw-includes__card:hover {
		border-color: color-mix(in srgb, var(--c, #0EDAB7) 90%, transparent) !important;
		box-shadow: 0 0 34px -2px color-mix(in srgb, var(--c, #0EDAB7) 75%, transparent),
		            0 12px 30px rgba(6, 12, 28, .4);
		transform: translateY(-4px);
	}
}

/* tipografía global del sitio; solo se ajusta el color por el fondo navy */
.dw-includes__card h3 {
	margin: 0;
	color: #fff;
}
.dw-includes__card p {
	margin: 0;
	color: var(--site-color-accent) !important;
}

@media (max-width: 1024px) {
	.dw-includes__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 470px) {
	.dw-includes__grid { grid-template-columns: 1fr; }
}

/* ---- Proceso (timeline vertical) ---- */
.dw-process {
	padding: 80px 0;
}
/* contenedor más angosto solo en esta sección */
.dw-process__inner {
	max-width: var(--contenedor-medio);
}
/* línea vertical que recorre todos los pasos */
.dw-process__steps {
	position: relative;
	padding-left: 22px;
}
.dw-process__steps::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--site-color-borde);
}

/* cada paso: [número] [título] | [descripción] */
.dw-process__step {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: start;
	gap: var(--esp-6);
	padding: 34px 0;
	border-bottom: 1px solid var(--site-color-borde);
}
.dw-process__step:last-child {
	border-bottom: 0;
}

/* punto sobre la línea */
.dw-process__step::before {
	content: '';
	position: absolute;
	left: -27px;
	top: 62px;
	width: 10px;
	height: 10px;
	border-radius: var(--radio-circulo);
	background: var(--c, var(--marca));
}

/* caja del número */
.dw-process__num {
	width: 64px;
	height: 64px;
	border-radius: var(--radio-md);
	border: 2px solid color-mix(in srgb, var(--c, var(--marca)) 55%, transparent);
	background: color-mix(in srgb, var(--c, var(--marca)) 10%, transparent);
	color: var(--c, var(--marca));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--fs-lg);
	font-weight: 500;
	flex-shrink: 0;
}

/* título: el verbo inicial toma el color del paso */
/* col 1: número (ocupa las dos filas) */
.dw-process__num {
	grid-column: 1;
	grid-row: 1 / span 2;
}

/* col 2: título y, debajo, los tags */
.dw-process__title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: var(--fs-xl);
	line-height: 1.25;
	color: var(--site-color-primary);
}
.dw-process__title span {
	color: var(--c, var(--marca));
}
.dw-process__tags {
	grid-column: 2;
	grid-row: 2;
	margin: 10px 0 0 !important;
	font-size: var(--fs-sm);
	color: var(--site-color-accent) !important;
}

/* col 3: descripción, abarcando ambas filas */
.dw-process__content {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
}
.dw-process__content p {
	margin: 0;
	color: var(--site-color-text);
}

@media (max-width: 1024px) {
	.dw-process__step {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: var(--esp-4);
	}
	.dw-process__num {
		width: 56px;
		height: 56px;
		font-size: var(--fs-base);
	}
	.dw-process__title {
		font-size: var(--fs-xl);
	}
	/* dos columnas: todo se apila bajo el título */
	.dw-process__num    { grid-row: 1 / span 3; }
	.dw-process__content {
		grid-column: 2;
		grid-row: 2;
		margin-top: 12px;
	}
	.dw-process__tags   { grid-row: 3; }
	.dw-process__step::before {
		top: 52px;
	}
}

@media (max-width: 470px) {
	.dw-process__steps { padding-left: 18px; }
	.dw-process__step { padding: 26px 0; gap: var(--esp-3); }
	.dw-process__step::before { left: -23px; top: 44px; }
	.dw-process__num { width: 48px; height: 48px; font-size: var(--fs-md); border-radius: var(--radio-md); }
	.dw-process__step { grid-template-columns: 48px minmax(0, 1fr); }
	.dw-process__title { font-size: var(--fs-lg); }
}

/* ---- CTA final ---- */
.dw-cta {
	padding: 40px 0 90px;
}
/* caja azul marino; abajo, el color de la marca de la página + azul #347FBF */
.dw-cta__box {
	position: relative;
	overflow: hidden;
	border-radius: var(--radio-xl);
	padding: 70px 40px;
	text-align: center;
	background:
		radial-gradient(120% 130% at 75% 110%, color-mix(in srgb, #347FBF 55%, transparent) 0%, transparent 60%),
		radial-gradient(110% 120% at 15% 100%, color-mix(in srgb, var(--marca) 30%, transparent) 0%, transparent 55%),
		linear-gradient(160deg, var(--site-color-marino) 0%, #0A2350 100%);
	box-shadow: var(--sombra-4);
}
.dw-cta__pretitle {
	color: #fff;
	font-size: var(--fs-xl);
	font-weight: 500;
	margin: 0 0 4px;
	line-height: 1.3;
}
.dw-cta__title {
	color: #fff;
	margin: 0 0 20px;
	line-height: 1.2;
}
/* palabras destacadas con el degradado de marca */
.dw-cta__grad {
	background: linear-gradient(90deg, var(--marca-claro), var(--marca));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.dw-cta__sub {
	max-width: 640px;
	margin: 0 auto 34px;
	color: var(--site-color-accent) !important;
}
.dw-cta__sub u {
	text-decoration-color: color-mix(in srgb, var(--site-color-accent) 60%, transparent);
	text-underline-offset: 4px;
}
.dw-cta__btns {
	display: flex;
	justify-content: center;
	gap: var(--esp-4);
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.dw-cta { padding: 20px 0 60px; }
	.dw-cta__box { padding: 48px 24px; border-radius: var(--radio-lg); }
	.dw-cta__pretitle { font-size: var(--fs-base); }
}

/* dark mode */
[data-theme="dark"] .dw-includes {
	background: var(--site-color-bg-dark, #0e131e);
}

/* ================================================
   FAQ (compartido: productos y pagina de servicio)
   ================================================ */
.ex-faq {
	padding: 60px 0 80px;
}

.ex-faq__inner {
	max-width: var(--contenedor-lectura);
}

.ex-faq__title {
	color: var(--site-color-primary);
}

.ex-faq__list {
	display: flex;
	flex-direction: column;
	gap: var(--esp-3);
}

.ex-faq__item {
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-md);
	overflow: hidden;
	transition: border-color var(--dur-rapida);
	background-color: #fff;
}

[data-theme="dark"] .ex-faq__item,
[data-theme="dark"] .ex-includes__item {
	background-color: #000000b5;
}

[data-theme="dark"] .ex-faq__question {
	color: #fff;
}

.ex-faq__item[open] {
	border-color: var(--site-color-borde);
}

.ex-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--esp-4);
	padding: 18px 24px;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.ex-faq__question::-webkit-details-marker {
	display: none;
}

.ex-faq__question::after {
	content: '';
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	/* icono "+" en el color de la marca; al abrir gira y queda como "×" */
	background: var(--marca);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--dur-media) ease;
}

.ex-faq__item[open] .ex-faq__question::after {
	transform: rotate(45deg);
}

.ex-faq__answer {
	padding: 0 24px 20px;
	display: flex;
	flex-direction: column;
	gap: var(--esp-2);
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--site-color-text);
}

@media (max-width: 768px) {
	.ex-faq__question {
		padding: 16px 18px;
	}

	.ex-faq__answer {
		padding: 0 18px 18px;
	}
}

/* ================================================
   LIBRO DE RECLAMACIONES
   Reutiliza .card-standar, .badge, .bajada y .btn-cta.
   Aquí solo va el layout y el patrón de campos del checkout.
   ================================================ */
.gr-libro__inner {
	max-width: var(--contenedor-medio);
}

.gr-libro__header .bajada {
	max-width: 620px;
	margin: 0 auto;
}

.gr-libro__legal,
.gr-libro__form {
	margin-bottom: 28px;
}
.gr-libro__legal p:last-child {
	margin-bottom: 0;
}

.gr-libro__section {
	margin-bottom: 34px;
}
.gr-libro__section > h3 {
	padding-bottom: 14px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--site-color-borde);
}

.gr-libro__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--esp-6);
}

.gr-libro__apoderado {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px dashed var(--site-color-borde);
}

/* ---- Campos: mismo patrón que el checkout (solo borde inferior) ---- */
.gr-field {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.gr-field--full {
	grid-column: 1 / -1;
}
.gr-field > label {
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	margin-bottom: 4px;
}
.gr-field input,
.gr-field select,
.gr-field textarea {
	border: none;
	border-bottom: 1px solid var(--site-color-primary);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 8px 0;
	width: 100%;
	font-size: var(--fs-base);
	font-family: var(--site-typography-primary-font-family), sans-serif;
	color: var(--site-color-primary);
	outline: none;
}
.gr-field textarea {
	resize: vertical;
}
.gr-field input:focus,
.gr-field select:focus,
.gr-field textarea:focus {
	border-bottom-color: var(--marca);
}

.gr-field__radios {
	display: flex;
	gap: var(--esp-6);
	flex-wrap: wrap;
	padding-top: 4px;
}
.gr-field__radios label {
	display: flex;
	align-items: center;
	gap: var(--esp-2);
	cursor: pointer;
}
.gr-field__radios input {
	width: auto;
	accent-color: var(--site-color-turquesa);
}

.gr-field__hint {
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	line-height: 1.5;
}

.gr-field__accept {
	margin: 24px 0;
}
.gr-field__accept label {
	display: flex;
	align-items: flex-start;
	gap: var(--esp-2);
	cursor: pointer;
	font-size: var(--fs-sm);
	color: var(--site-color-text);
	line-height: 1.5;
}
.gr-field__accept input {
	width: 16px;
	height: 16px;
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--site-color-turquesa);
}
.gr-field__accept a {
	color: var(--site-color-turquesa);
}

.gr-libro__error {
	border: 1px solid var(--site-color-borde);
	border-left: 3px solid #E5342A;
	border-radius: var(--radio-sm);
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: var(--fs-sm);
	color: #A32118;
}

.gr-libro__form .btn-cta:disabled {
	opacity: .6;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.gr-libro__grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================
   WHATSAPP FLOTANTE (todas las páginas)
   ================================================ */
.wsp-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	width: 58px;
	height: 58px;
	border-radius: var(--radio-circulo);
	background: var(--site-color-whatsapp);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(20, 30, 60, .25);
	transition: transform var(--site-transition), box-shadow var(--site-transition);
}
.wsp-float svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}
.wsp-float:hover {
	transform: scale(1.08);
	box-shadow: 0 10px 28px rgba(20, 30, 60, .32);
}

@media (max-width: 768px) {
	.wsp-float {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}
	.wsp-float svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
	.wsp-float { transition: none; }
	.wsp-float:hover { transform: none; }
}

/* ================================================
   PUBLICIDAD DEL BLOG
   ================================================ */

/* Cuando hay publicidad vertical, la nota pasa a dos columnas */
.sp-content__inner--con-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--esp-10);
	align-items: start;
	max-width: 1180px;
}

.sp-content__texto {
	min-width: 0; /* evita que el contenido desborde la columna */
}

.sp-aside {
	position: sticky;
	top: 100px;
}

/* ---- Caja del anuncio ---- */
.gr-ad {
	display: block;
}

.gr-ad__label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--fs-2xs);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--site-color-accent);
}

.gr-ad__slot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radio-sm);
}

/* El alto lo define la propia imagen: el JS le pasa width/height reales,
   asi el navegador reserva el espacio exacto y el contenido no salta. */

.gr-ad--horizontal {
	margin: 40px 0 10px;
}

/* Publicidad horizontal de la nota: fuera de las dos columnas,
   alineada con el ancho del contenido */
.sp-content__ad {
	max-width: 1100px;
}

/* Dentro de la grilla del blog ocupa todas las columnas */
.bl-cat__grid > .gr-ad {
	grid-column: 1 / -1;
	margin: 10px 0 20px;
}

/* Entre bloques de categoría */
.bl-cat + .gr-ad {
	margin: 10px 0 50px;
}

@media (max-width: 1024px) {
	/* El aside baja debajo del contenido */
	.sp-content__inner--con-aside {
		grid-template-columns: 1fr;
		gap: var(--esp-8);
	}
	.sp-aside {
		position: static;
		display: flex;
		justify-content: center;
	}
	.gr-ad--vertical .gr-ad__slot img {
		max-width: 300px;
	}
}

/* ================================================
   BLOG — destacado y filtros
   ================================================ */

/* ---- Artículo destacado ---- */
.bl-destacado,
.bl-listado {
	background: var(--site-color-tarjeta);
}

.bl-destacado {
	padding-bottom: 20px !important;
}

.bl-destacado__card {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: var(--esp-10);
	align-items: center;
}

.bl-destacado__img-wrap {
	display: block;
	border-radius: var(--radio-md);
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.bl-destacado__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--site-transition);
}

.bl-destacado__img-wrap:hover .bl-destacado__img {
	transform: scale(1.03);
}

.bl-destacado__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--esp-3);
}

.bl-destacado__title {
	font-size: 34px;
	line-height: 1.2em;
	margin: 0;
}

.bl-destacado__title a {
	color: var(--site-color-primary);
	text-decoration: none;
	transition: color var(--site-transition);
}


.bl-destacado__excerpt {
	margin: 0;
}

/* ---- Filtros de categoría ---- */
.bl-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: var(--esp-2);
	margin-bottom: 32px;
}

/* filtro "Invitaciones Web": morado de Pase Digital */
.bl-filtro[data-cat="invitaciones-virtuales-web"]:hover {
	border-color: var(--site-color-pase);
}

.bl-filtro[data-cat="invitaciones-virtuales-web"].is-active {
	background: var(--site-color-pase);
	border-color: var(--site-color-pase);
}

.bl-vacio {
	text-align: center;
	padding: 40px 0;
	color: var(--site-color-text);
}

/* Usada por el filtro. El reset aplica article{display:block}, que
   anula el atributo [hidden], por eso se oculta con clase. */
.is-oculto {
	display: none !important;
}

@media (max-width: 1024px) {
	.bl-destacado__card {
		grid-template-columns: 1fr;
		gap: var(--esp-5);
	}
	.bl-destacado__title {
		font-size: var(--fs-xl);
	}
}

@media (max-width: 768px) {
	.bl-filtros {
		gap: var(--esp-2);
	}
}

/* ======================================
   LANDING PORTAFOLIO (page-portafolio.php)
   ====================================== */
/* franja con el patron a todo el ancho; la foto la pisa por abajo */
.pf-hero { padding: 0 0 90px !important; } /* el global section pone 70px arriba */
.pf-hero__patron {
	height: 180px;
	background-repeat: repeat-x;
	background-size: auto 201%;
	background-position: center top;
}
.pf-hero__perfil {
	display: flex;
	align-items: flex-start;
	gap: var(--esp-8);
	margin-top: -110px;
}
.pf-hero__avatar {
	flex-shrink: 0;
	width: 220px;
	height: 220px;
}
.pf-hero__texto { padding-top: 130px; } /* 110 del solape + aire para no tocar el patron */
.pf-hero__texto h1 { font-size: var(--fs-5xl); margin-bottom: 12px; }
.pf-hero__texto p { max-width: 640px; margin: 0; }
.pf-hero__texto p + p { margin-top: 8px; }
.pf-hero__texto a { text-decoration: underline; }
@media (max-width: 768px) {
	.pf-hero__patron { height: 120px; }
	.pf-hero__perfil { flex-direction: column; align-items: flex-start; gap: var(--esp-4); margin-top: -80px; }
	.pf-hero__avatar { width: 160px; height: 160px; }
	.pf-hero__texto { padding-top: 0; }
	.pf-hero__texto h1 { font-size: 36px; }
}

/* iOS ignora overflow-x en body si html no lo lleva tambien */
html:has(.page-template-page-portafolio),
.page-template-page-portafolio { overflow-x: hidden; }

/* Grupos por categoria: titulo + fila con scroll horizontal */
.pf-grupo { padding-top: 60px; }
.pf-grupo__head { display: flex; align-items: baseline; gap: var(--esp-3); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 4px solid var(--site-color-primary); }
.pf-grupo__conteo { font-size: var(--fs-sm); color: var(--site-color-text); }
.pf-grupo__nota { margin: 0; font-size: var(--fs-sm); color: var(--site-color-text); }
.pf-scroller {
	overflow-x: auto;
	overflow-y: hidden;
	/* de borde a borde del navegador; el padding devuelve el primer item a la
	   linea del titulo, y al hacer scroll la fila corre hasta el extremo */
	margin: 0 calc(50% - 50vw);
	padding: 20px calc(50vw - 50%) 26px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;      /* la barra nativa se oculta: la reemplaza .pf-barra */
}
.pf-scroller::-webkit-scrollbar { display: none; }

/* barra propia: 200px centrada, thumb morado */
.pf-barra {
	position: relative;
	width: 200px;
	height: 6px;
	margin: 4px auto 0;
	border-radius: 3px;
	background: var(--site-color-gris-claro);
}
.pf-barra.is-oculto { display: none; }
.pf-barra__thumb {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 3px;
	background: var(--marca);
	cursor: grab;
	will-change: transform;
}
.pf-barra__thumb:active { cursor: grabbing; }
@media (min-width: 769px) {
	.pf-scroller { cursor: grab; }
	.pf-scroller.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
}
.pf-scroller__fila {
	display: flex;
	align-items: stretch;
	gap: var(--esp-12);
	width: max-content;
}

/* Cada proyecto: case de celular (como .ti-showcase__phone) + texto al lado */
.pf-item {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--esp-6);
	/* ancho explicito (no solo flex-basis): Safari calcula el max-content de la fila
	   con el tamano natural de la imagen y dejaba un hueco enorme al final */
	width: 560px;
	max-width: 560px;
	flex: 0 0 auto;
	padding: 20px;
	opacity: .12;
	transition: opacity var(--dur-media) ease;
}
.pf-item.is-centro { opacity: 1; }
/* la capsula blanca va en un ::before para poder moverla/animarla sin tocar el contenido */
.pf-item::before {
	content: '';
	position: absolute;
	inset: 0;
	top: 10%;
	height: 80%;
	z-index: 0;
	background: #fff;
	border: 1px solid var(--site-color-borde);
	border-radius: var(--radio-lg);
}
.pf-item > * { position: relative; z-index: 1; }
.pf-item__phone {
	position: relative;
	align-self: center;
	flex: 0 0 auto;
	width: 50%;
	min-width: 0;
	padding: 4px;
	box-sizing: border-box;
	border: 4px solid transparent;
	border-radius: var(--radio-xl);
	background:
		linear-gradient(#14131A, #14131A) padding-box,
		linear-gradient(160deg, #FFFFFF 0%, #E4E6EA 30%, #FFFFFF 55%, #D5D8DE 80%, #F2F3F5 100%) border-box;
	box-shadow: 0 12px 24px rgba(20, 30, 60, .14);
}
.pf-item__lente {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 9px;
	height: 9px;
	border-radius: var(--radio-circulo);
	background: #14131A;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
	z-index: 2;
}
.pf-item__phone-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: var(--radio-lg);
}
.pf-item__texto {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 0 4px;
}
.pf-item__texto .badge { margin-bottom: 12px; }
.pf-item__bandera { width: 30px; height: 24px; object-fit: cover; border-radius: var(--radio-xs); margin-bottom: 10px; }
.pf-item__texto h3 { font-size: var(--fs-xl); font-weight: 400; line-height: 1.35; color: var(--site-color-primary); margin: 0; }
.pf-item__texto h3 strong { font-weight: 500; }
.pf-item__links { display: flex; flex-wrap: wrap; gap: var(--esp-2) var(--esp-5); margin-top: 16px; }
.pf-item__link {
	display: inline-flex;
	align-items: center;
	gap: var(--esp-2);
	color: var(--marca);
	text-decoration: underline;
}
.pf-item__link { font-size: var(--fs-md); }
.pf-item__link svg { width: 16px; height: 16px; }

/* ---- Modo oscuro de la landing (el tema aplica data-theme en todas las paginas) ---- */
[data-theme="dark"] .pf-item::before {
	background: var(--site-color-tarjeta);       /* mismo fondo que .card-standar en oscuro */
	border-color: var(--site-color-borde);
}
[data-theme="dark"] .pf-barra { background: var(--site-color-gris-claro); }
[data-theme="dark"] .pf-grupo__head { border-bottom-color: var(--site-color-primary); }

@media (max-width: 1024px) {
	.pf-item::before { top: 0; height: 100%; border-radius: var(--radio-sm); }
	.pf-item__phone { border-radius: var(--radio-md); }
	.pf-item__phone-img { border-radius: var(--radio-sm); } /* 12 del marco - 4 de padding, para que no asome */
}
@media (max-width: 768px) {
	.pf-grid { margin-top: 32px; }
	.pf-item__texto h3 { font-size: var(--fs-lg); line-height: 1.1; }
	.pf-grupo { padding-top: 40px; }
	.pf-scroller__fila { gap: var(--esp-8); }
	/* en movil: scroll nativo de borde a borde, sin barra propia ni cards veladas */
	/* sin vw: en iOS el viewport de layout infla 50vw y dejaba un hueco enorme al final.
	   El inner mide 30px de padding, asi que -30/30 lo lleva al borde igual. */
	.pf-scroller { margin: 0 -30px; padding: 16px 30px 22px; scrollbar-width: auto; }
	.pf-scroller::-webkit-scrollbar { display: block; height: 6px; }
	.pf-scroller::-webkit-scrollbar-thumb { background: var(--site-color-gris-claro); border-radius: 3px; }
	.pf-barra { display: none; }
	.pf-item { opacity: 1; }
	.pf-item { width: 300px; max-width: 300px; gap: var(--esp-3); }
	.pf-item__phone { width: 40%; }
	.pf-item { padding: 14px; }
}

/* ================================================
   MODO OSCURO — mockups siempre en claro
   Lo que va dentro de celulares, tablets e ilustraciones de pantallas
   conserva los colores del modo claro aunque la página esté en oscuro.
   ================================================ */
[data-theme="dark"] :is(.cv-movil, .cv-qr, .tib-movil, .tib-tablet, .pf-item__phone, .dw-mock, .fp-sil, .fp-ilus, .tha__noti, .ex-movil) {
	color-scheme: light;
	--site-color-primary:   #051C3C;
	--site-color-text:      #676F8F;
	--site-color-tarjeta:   #FFFFFF;
	--site-color-fondo:   #F9F9FF;
	--site-color-gris-claro:   #EBEEF7;
	--site-color-borde:     #D5DCE5;
}

/* las notificaciones del hero de la tienda toman sus colores del contenedor del hero */
[data-theme="dark"] .tha__noti {
	--tha-texto: #051C3C;
	--tha-borde: #EAE7F2;
	color: #051C3C;
}

/* campos de formulario en oscuro (dentro de los mockups vuelven a claro por las variables) */
[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea) {
	background-color: var(--site-color-tarjeta);
	color: var(--site-color-primary);
	border-color: var(--site-color-borde);
}
