/* ==========================================================================
   Perform — estilos del tema hijo
   ========================================================================== */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
	--pf-navy: #17144b;
	--pf-navy-2: #221c63;
	--pf-purple: #5b2ddb;
	--pf-purple-2: #7a35d4;
	--pf-green: #34b27b;      /* decorativo y títulos grandes */
	--pf-green-ink: #1b7a52;  /* texto pequeño sobre blanco */
	--pf-ink: #1d1b3a;
	--pf-muted: #5b5f77;
	--pf-soft: #f4f5fb;
	--pf-border: #e3e5f0;
	--pf-white: #fff;

	--pf-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pf-font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

	--pf-radius: 12px;
	--pf-shadow: 0 10px 30px rgba(23, 20, 75, .08);
	--pf-container: 1400px;
	--pf-gutter: clamp(16px, 4vw, 32px);
	--pf-header-h: 84px;

	/* Colores de Blocksy alineados con la marca (botones de WooCommerce, enlaces, etc.) */
	--theme-palette-color-1: var(--pf-purple);
	--theme-palette-color-2: var(--pf-purple-2);
	--theme-palette-color-3: var(--pf-muted);
	--theme-palette-color-4: var(--pf-ink);
	--theme-font-family: var(--pf-font);
}

body {
	font-family: var(--pf-font);
	color: var(--pf-ink);
	background: var(--pf-white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--pf-font-display); color: var(--pf-navy); }

.pf-container {
	width: 100%;
	max-width: var(--pf-container);
	margin-inline: auto;
	padding-inline: var(--pf-gutter);
	box-sizing: border-box;
}

.pf-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--pf-navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.pf-skip:focus { left: 8px; }

.pf-icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* --------------------------------------------------------------------------
   Botones (enlaces .pf-btn y bloque Botón con estilos "Perform")
   -------------------------------------------------------------------------- */

.pf-btn,
.wp-block-button.is-style-pf-primary .wp-block-button__link,
.wp-block-button.is-style-pf-outline .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	box-sizing: border-box; min-height: 48px; padding: 12px 26px; border-radius: 8px;
	font-family: var(--pf-font); font-size: 14px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; text-decoration: none; line-height: 1.2;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.pf-btn--primary,
.wp-block-button.is-style-pf-primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--pf-purple) 0%, var(--pf-purple-2) 100%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(91, 45, 219, .28);
}
.pf-btn--primary:hover,
.wp-block-button.is-style-pf-primary .wp-block-button__link:hover {
	color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(91, 45, 219, .36);
}

.wp-block-button.is-style-pf-outline .wp-block-button__link {
	background: #fff; color: var(--pf-navy); border-color: var(--pf-navy);
}
.wp-block-button.is-style-pf-outline .wp-block-button__link::after {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	transition: transform .15s ease;
}
.wp-block-button.is-style-pf-outline .wp-block-button__link:hover { background: var(--pf-navy); color: #fff; }
.wp-block-button.is-style-pf-outline .wp-block-button__link:hover::after { transform: translateX(3px); }

.pf-btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.pf-btn--ghost-light:hover { color: var(--pf-navy); background: #fff; border-color: #fff; }

.pf-btn:focus-visible,
.wp-block-button__link:focus-visible,
.pf-tool:focus-visible,
.pf-menu a:focus-visible { outline: 3px solid var(--pf-green); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.pf-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--pf-border);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .pf-header { top: var(--admin-bar, 32px); }

.pf-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: var(--pf-header-h);
}

.pf-header__brand { display: flex; align-items: center; flex: none; }
.pf-logo { display: block; width: auto; height: 46px; max-width: 240px; object-fit: contain; }
.pf-logo--text { font-family: var(--pf-font-display); font-size: 28px; font-weight: 700; color: var(--pf-navy); }

.pf-nav { flex: 1; display: flex; align-items: center; justify-content: center; }

.pf-menu { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin: 0; padding: 0; list-style: none; }
.pf-menu li { position: relative; margin: 0; }
.pf-menu a {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 0; font-size: 13px; font-weight: 500; letter-spacing: .03em; white-space: nowrap;
	text-transform: uppercase; color: var(--pf-navy); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.pf-menu a:hover { color: var(--pf-purple); }
.pf-menu .current-menu-item > a,
.pf-menu .current-menu-ancestor > a,
.pf-menu .current_page_item > a { color: var(--pf-purple); border-bottom-color: var(--pf-purple); }

.pf-menu .menu-item-has-children > a::after {
	content: ""; width: 14px; height: 14px; background: currentColor;
	-webkit-mask: url(../icons/chevron-down.svg) center / contain no-repeat;
	mask: url(../icons/chevron-down.svg) center / contain no-repeat;
}

.pf-menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 230px;
	margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--pf-border); border-radius: 10px; box-shadow: var(--pf-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pf-menu li:hover > .sub-menu,
.pf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pf-menu .sub-menu a { display: block; padding: 10px 12px; border: 0; border-radius: 6px; text-transform: none; font-size: 15px; letter-spacing: 0; }
.pf-menu .sub-menu a:hover { background: var(--pf-soft); }

.pf-nav__cta { display: none; }

.pf-header__tools { display: flex; align-items: center; gap: 6px; flex: none; }

.pf-tool {
	position: relative; display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	color: var(--pf-navy); background: transparent; border: 0; cursor: pointer; list-style: none;
}
.pf-tool::-webkit-details-marker { display: none; }
.pf-tool:hover { background: var(--pf-soft); color: var(--pf-purple); }

.pf-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--pf-green); color: #fff;
	font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.pf-cart-count[hidden] { display: none; }

.pf-header__cta { margin-left: 10px; padding-inline: 20px; }
.pf-header__cta .pf-icon { width: 20px; height: 20px; }

/* En pantallas de laptop el botón queda solo con el ícono para que el menú entre en una línea */
@media (max-width: 1499px) {
	.pf-header__cta { width: 48px; padding: 0; margin-left: 6px; }
	.pf-header__cta span {
		position: absolute; width: 1px; height: 1px; overflow: hidden;
		clip: rect(0 0 0 0); white-space: nowrap;
	}
}

.pf-search { position: relative; }
.pf-search__form {
	position: absolute; right: 0; top: calc(100% + 12px); z-index: 10;
	display: flex; gap: 8px; width: min(420px, 90vw); padding: 12px;
	background: #fff; border: 1px solid var(--pf-border); border-radius: 12px; box-shadow: var(--pf-shadow);
}
.pf-search__form input[type="search"] {
	flex: 1; min-width: 0; height: 46px; padding: 0 14px;
	border: 1px solid var(--pf-border); border-radius: 8px; font: inherit;
}
.pf-search__form .pf-btn { min-height: 46px; padding-inline: 18px; }

.pf-burger { display: none; }
.pf-burger .pf-icon { width: 26px; height: 26px; }
.pf-burger__close { display: none; }
.pf-burger[aria-expanded="true"] .pf-burger__open { display: none; }
.pf-burger[aria-expanded="true"] .pf-burger__close { display: block; }

/* Menú en pantallas medianas y celular */
@media (max-width: 1199px) {
	.pf-burger { display: inline-grid; }

	.pf-nav {
		position: fixed; inset: calc(var(--pf-header-h) + var(--pf-adminbar, 0px)) 0 auto 0;
		max-height: calc(100dvh - var(--pf-header-h) - var(--pf-adminbar, 0px));
		overflow-y: auto; flex-direction: column; align-items: stretch; gap: 20px;
		padding: 16px var(--pf-gutter) 28px; background: #fff;
		border-top: 1px solid var(--pf-border); box-shadow: 0 20px 40px rgba(23, 20, 75, .12);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.pf-nav.is-open { opacity: 1; visibility: visible; transform: none; }

	.pf-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.pf-menu > li { border-bottom: 1px solid var(--pf-border); }
	.pf-menu a { display: flex; justify-content: space-between; padding: 15px 0; font-size: 15px; border-bottom: 0; }
	.pf-menu .current-menu-item > a, .pf-menu .current_page_item > a { border-bottom: 0; }

	.pf-menu .sub-menu {
		position: static; display: none; min-width: 0; padding: 0 0 10px 12px;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
	}
	.pf-menu li.is-open > .sub-menu { display: block; }
	.pf-menu li.is-open > a::after { transform: rotate(180deg); }

	.pf-nav__cta { display: inline-flex; }
	.admin-bar { --pf-adminbar: 32px; }
}

@media (max-width: 782px) { .admin-bar { --pf-adminbar: 46px; } }

@media (max-width: 640px) {
	:root { --pf-header-h: 68px; }
	.pf-logo { height: 36px; max-width: 170px; }
	.pf-header__inner { gap: 8px; }
	.pf-header__tools { margin-left: auto; gap: 0; }
	.pf-header__cta { display: none; }
	.pf-tool { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   Páginas "Landing" (plantilla Perform — Landing)
   -------------------------------------------------------------------------- */

.pf-landing > * { margin-block: 0; }
/* Los espacios entre elementos los define cada componente, no el espaciado automático de bloques */
.pf-landing .is-layout-flow > * { margin-block-start: 0; }
.pf-landing p { line-height: 1.6; }

.pf-section { padding-block: clamp(80px, 10vw, 140px); }
/* Dos secciones blancas seguidas no duplican el espacio entre ellas */
.pf-section:not(.pf-section--soft):not(.pf-section--dark) + .pf-section:not(.pf-section--soft):not(.pf-section--dark) { padding-top: 0; }
.pf-section--soft { background: var(--pf-soft); }
.pf-section--dark { background: var(--pf-navy); color: #fff; }
.pf-section--dark h2, .pf-section--dark h3 { color: #fff; }

.pf-eyebrow {
	margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em;
	text-transform: uppercase; color: var(--pf-green-ink);
}

.pf-section-title {
	margin: 0 0 clamp(44px, 5vw, 64px); text-align: center;
	font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.pf-section-title::after {
	content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0;
	background: var(--pf-green); border-radius: 2px;
}
.pf-section-title.has-text-align-left::after { margin-left: 0; }

.pf-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--pf-muted); }

/* Hero ----------------------------------------------------------------- */

.pf-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(460px, 38vw, 620px);
	display: flex; align-items: center;
	background: #eef1f6;
}
/* La imagen es un bloque Imagen normal (carga prioritaria), estirada como fondo */
.pf-hero .pf-hero__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.pf-hero .pf-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* Velo claro a la izquierda para que el texto se lea sobre la foto */
.pf-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(240, 243, 248, .96) 0%, rgba(240, 243, 248, .88) 38%, rgba(240, 243, 248, 0) 62%);
}
.pf-hero > .pf-container { padding-block: clamp(48px, 6vw, 88px); }
.pf-hero__content { max-width: 780px; }

.pf-hero__title {
	margin: 0; font-size: clamp(40px, 4.4vw, 66px); font-weight: 700; line-height: 1.02;
	letter-spacing: .01em; text-transform: uppercase; color: var(--pf-navy);
}
.pf-hero__title .pf-accent { color: var(--pf-green); }
.pf-hero__title::after {
	content: ""; display: block; width: 72px; height: 3px; margin-top: 22px;
	background: var(--pf-green); border-radius: 2px;
}

.pf-hero .pf-lead { margin: 20px 0 0; max-width: 460px; color: #3f4360; }
.pf-hero .wp-block-buttons { margin-top: 30px; gap: 14px; }

@media (max-width: 860px) {
	.pf-hero { display: flex; flex-direction: column; min-height: 0; background: #fff; }
	.pf-hero::before { display: none; }
	.pf-hero__title br { display: none; }
	.pf-hero > .pf-container { padding-block: 36px 24px; }
	.pf-hero .pf-hero__bg { position: static; order: 2; aspect-ratio: 4 / 3; }
	.pf-hero .pf-hero__bg img { object-position: 82% center; }
	.pf-hero .wp-block-buttons .wp-block-button { flex: 1 1 100%; }
	.pf-hero .wp-block-buttons .wp-block-button__link { width: 100%; }
}

/* Barra de beneficios ------------------------------------------------------- */

.pf-trust { background: var(--pf-navy); color: #fff; }
.pf-trust__grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	padding-block: 44px;
}
.pf-trust__item {
	display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start;
	padding: 6px 24px;
}
.pf-trust__item + .pf-trust__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.pf-trust__item::before {
	content: ""; grid-row: span 2; width: 40px; height: 40px; background: var(--pf-green);
	-webkit-mask: var(--pf-ico) center / contain no-repeat; mask: var(--pf-ico) center / contain no-repeat;
}
.pf-trust__title { margin: 0; font-family: var(--pf-font); font-size: 16px; font-weight: 600; color: #fff; }
.pf-trust__item .pf-trust__text { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .75); }

@media (max-width: 980px) {
	.pf-trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
	.pf-trust__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
	.pf-trust__grid { grid-template-columns: 1fr; }
	.pf-trust__item { padding-inline: 0; }
	.pf-trust__item + .pf-trust__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
}

/* Tarjetas de soluciones ---------------------------------------------------- */

.pf-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 2.5vw, 36px); }

.pf-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
	box-shadow: var(--pf-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 20, 75, .14); }

.pf-card .wp-block-image,
.pf-card__img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pf-soft); }
.pf-card .wp-block-image img,
.pf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pf-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 44px 26px 28px; }
.pf-card__body::before {
	content: ""; position: absolute; top: -26px; left: 22px;
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--pf-badge, var(--pf-purple)); box-shadow: 0 0 0 4px #fff;
}
.pf-card__body::after {
	content: ""; position: absolute; top: -12px; left: 36px; width: 24px; height: 24px; background: #fff;
	-webkit-mask: var(--pf-ico) center / contain no-repeat; mask: var(--pf-ico) center / contain no-repeat;
}
.pf-card.is-green { --pf-badge: var(--pf-green); }
.pf-card.is-navy { --pf-badge: var(--pf-navy); }

.pf-card__body .pf-card__title { margin: 0 0 8px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.pf-card__body p { margin: 0; font-size: 15px; color: var(--pf-muted); }
.pf-card__body .pf-card__more { margin-top: auto; padding-top: 16px; }
.pf-card__more a {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; font-size: 15px; color: var(--pf-purple); text-decoration: none;
}
.pf-card__more a::after {
	content: ""; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	transition: transform .15s ease;
}
.pf-card__more a:hover::after { transform: translateX(3px); }

@media (max-width: 1080px) { .pf-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pf-cards { grid-template-columns: 1fr; } }

/* Íconos por clase (se usan en barra de beneficios y tarjetas) ------------- */

.pf-ico-shield-check  { --pf-ico: url(../icons/shield-check.svg); }
.pf-ico-truck         { --pf-ico: url(../icons/truck.svg); }
.pf-ico-headset       { --pf-ico: url(../icons/headset.svg); }
.pf-ico-wrench        { --pf-ico: url(../icons/wrench.svg); }
.pf-ico-settings      { --pf-ico: url(../icons/settings.svg); }
.pf-ico-activity      { --pf-ico: url(../icons/activity.svg); }
.pf-ico-shopping-cart { --pf-ico: url(../icons/shopping-cart.svg); }
.pf-ico-flask-conical { --pf-ico: url(../icons/flask-conical.svg); }
.pf-ico-clock         { --pf-ico: url(../icons/clock.svg); }
.pf-ico-badge-check   { --pf-ico: url(../icons/badge-check.svg); }
.pf-ico-phone         { --pf-ico: url(../icons/phone.svg); }
.pf-ico-mail          { --pf-ico: url(../icons/mail.svg); }
.pf-ico-map-pin       { --pf-ico: url(../icons/map-pin.svg); }
.pf-ico-whatsapp      { --pf-ico: url(../icons/whatsapp.svg); }

/* --------------------------------------------------------------------------
   Páginas internas
   -------------------------------------------------------------------------- */

/* Cabecera de página: franja oscura con antetítulo, título y bajada */
.pf-page-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, var(--pf-navy) 0%, var(--pf-navy-2) 60%, #2d1f7a 100%);
	color: #fff;
}
.pf-page-hero > .pf-container { padding-block: clamp(80px, 10vw, 140px); }
.pf-page-hero .pf-eyebrow { color: var(--pf-green); }
.pf-page-hero__title {
	margin: 0; max-width: 820px; color: #fff;
	font-size: clamp(36px, 4.2vw, 58px); font-weight: 700; line-height: 1.04;
	text-transform: uppercase; letter-spacing: .01em;
}
.pf-page-hero__title::after {
	content: ""; display: block; width: 72px; height: 3px; margin-top: 20px;
	background: var(--pf-green); border-radius: 2px;
}
.pf-page-hero .pf-lead { margin: 28px 0 0; max-width: 680px; color: rgba(255, 255, 255, .82); }
.pf-page-hero .wp-block-buttons { margin-top: 40px; gap: 16px; }

/* Texto + imagen en dos columnas (bloque Columnas) */
.pf-split.wp-block-columns { gap: clamp(40px, 7vw, 104px); align-items: center; margin: 0; }
.pf-split h2 { margin: 0 0 28px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.pf-split p { margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: var(--pf-muted); }
.pf-split .pf-eyebrow { margin-bottom: 16px; font-size: 13px; color: var(--pf-green-ink); }
.pf-split .wp-block-buttons { margin-top: 36px; gap: 16px; }
.pf-split .wp-block-image { margin: 0; }
.pf-split .wp-block-image img {
	display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover;
	border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
}

/* Lista con checks verdes */
.pf-checklist { margin: 28px 0 0; padding: 0; list-style: none; }
.pf-checklist li {
	position: relative; margin: 0 0 16px; padding-left: 36px; font-size: 17px; line-height: 1.5; color: var(--pf-ink);
}
.pf-checklist li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: var(--pf-green);
	-webkit-mask: url(../icons/badge-check.svg) center / contain no-repeat;
	mask: url(../icons/badge-check.svg) center / contain no-repeat;
}
.pf-section--dark .pf-checklist li { color: #fff; }

/* Características: tarjetas claras con ícono (clase pf-ico-… en cada ítem) */
.pf-features { display: grid; grid-template-columns: repeat(var(--pf-cols, 3), 1fr); gap: clamp(24px, 2.5vw, 36px); }
.pf-features.is-4 { --pf-cols: 4; }
.pf-feature {
	position: relative; padding: 40px 32px; background: #fff; border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
}
/* Círculo de color + ícono blanco encima */
.pf-feature::before {
	content: ""; display: block; width: 56px; height: 56px; margin-bottom: 26px;
	border-radius: 50%; background: var(--pf-purple);
}
.pf-feature::after {
	content: ""; position: absolute; top: 56px; left: 48px; width: 24px; height: 24px; background: #fff;
	-webkit-mask: var(--pf-ico) center / contain no-repeat; mask: var(--pf-ico) center / contain no-repeat;
}
.pf-feature.is-green::before { background: var(--pf-green); }
.pf-feature.is-navy::before { background: var(--pf-navy); }
.pf-feature h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.pf-feature p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--pf-muted); }

/* Preguntas frecuentes (bloque Detalles) */
.pf-faq { max-width: 860px; margin-inline: auto; }
.pf-faq__item {
	margin: 0 0 16px; padding: 0; background: #fff; border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
}
.pf-faq__item summary {
	position: relative; padding: 24px 64px 24px 28px; cursor: pointer; list-style: none;
	font-family: var(--pf-font); font-size: 18px; font-weight: 600; color: var(--pf-navy);
}
.pf-faq__item summary::-webkit-details-marker { display: none; }
.pf-faq__item summary::after {
	content: ""; position: absolute; right: 28px; top: 50%; width: 20px; height: 20px; translate: 0 -50%;
	background: var(--pf-purple); transition: rotate .2s ease;
	-webkit-mask: url(../icons/chevron-down.svg) center / contain no-repeat;
	mask: url(../icons/chevron-down.svg) center / contain no-repeat;
}
.pf-faq__item[open] summary::after { rotate: 180deg; }
.pf-faq__item p { margin: 0; padding: 0 28px 26px; font-size: 16px; line-height: 1.7; color: var(--pf-muted); }

@media (max-width: 980px) { .pf-features, .pf-features.is-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-features, .pf-features.is-4 { grid-template-columns: 1fr; } }

/* Franja de llamada a la acción */
.pf-cta {
	background: linear-gradient(135deg, var(--pf-purple) 0%, var(--pf-purple-2) 100%);
	color: #fff; text-align: center;
}
.pf-cta > .pf-container { padding-block: clamp(80px, 9vw, 120px); }
.pf-cta h2 { margin: 0; color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; text-transform: uppercase; }
.pf-cta p { margin: 20px auto 0; max-width: 680px; color: rgba(255, 255, 255, .88); font-size: 18px; line-height: 1.6; }
.pf-cta .wp-block-buttons { justify-content: center; margin-top: 40px; gap: 16px; }
.pf-cta .wp-block-button.is-style-pf-primary .wp-block-button__link { background: #fff; color: var(--pf-purple); box-shadow: 0 8px 20px rgba(23, 20, 75, .25); }
.pf-cta .wp-block-button.is-style-pf-primary .wp-block-button__link:hover { color: var(--pf-navy); }
.pf-cta .wp-block-button.is-style-pf-outline .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.pf-cta .wp-block-button.is-style-pf-outline .wp-block-button__link:hover { background: #fff; color: var(--pf-purple); }

/* Contacto: datos con íconos y caja del formulario */
.pf-contact-list { margin: 36px 0 0; padding: 0; list-style: none; }
.pf-contact-list li {
	position: relative; margin: 0 0 24px; padding-left: 60px; min-height: 44px;
	display: flex; flex-direction: column; justify-content: center; line-height: 1.4;
}
.pf-contact-list li::before {
	content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
	width: 44px; height: 44px; border-radius: 50%; background: var(--pf-soft);
}
.pf-contact-list li::after {
	content: ""; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px;
	background: var(--pf-purple);
	-webkit-mask: var(--pf-ico) center / contain no-repeat; mask: var(--pf-ico) center / contain no-repeat;
}
.pf-contact-list strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-muted); font-weight: 600; }
.pf-contact-list a { color: var(--pf-navy); font-weight: 600; text-decoration: none; }
.pf-contact-list a:hover { color: var(--pf-purple); }

.pf-form-box {
	padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
}
.pf-form-box h2 { margin: 0 0 6px; font-size: 26px; text-transform: uppercase; }
.pf-form-box .wpforms-container { margin: 16px 0 0 !important; }
.pf-form-box .wpforms-submit {
	background: linear-gradient(135deg, var(--pf-purple) 0%, var(--pf-purple-2) 100%) !important;
	border: 0 !important; border-radius: 8px !important; padding: 12px 26px !important; height: auto !important;
	font-weight: 600 !important; text-transform: uppercase; letter-spacing: .04em;
}

/* En pantallas chicas las columnas se apilan con la imagen primero */
@media (max-width: 781px) {
	.pf-split.is-image-right > .wp-block-column:last-child { order: -1; }
}

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */

.pf-footer { background: var(--pf-navy); color: rgba(255, 255, 255, .8); font-size: 15px; }
.pf-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.pf-footer a:hover { color: #fff; }

.pf-footer__grid {
	display: grid; grid-template-columns: 1.3fr 1.3fr 1.2fr 1fr; gap: 40px;
	padding-block: 56px 44px;
}

.pf-logo--light { height: 52px; filter: brightness(0) invert(1); }

.pf-footer__title {
	margin: 0 0 16px; font-family: var(--pf-font); font-size: 14px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; color: #fff;
}

.pf-footer__links { columns: 2; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.pf-footer__links li { margin: 0 0 10px; break-inside: avoid; }

.pf-footer__contact { margin: 0; padding: 0; list-style: none; }
.pf-footer__contact li { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.pf-footer__contact .pf-icon { width: 18px; height: 18px; color: var(--pf-green); }

.pf-footer__social { display: flex; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pf-footer__social a {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
}
.pf-footer__social a:hover { background: #fff; color: var(--pf-navy); }
.pf-footer__social .pf-icon { width: 18px; height: 18px; }

.pf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.pf-footer__bottom p { margin: 0; padding-block: 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }

.pf-footer__claims {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
	padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px;
	font-size: 14px; font-weight: 600;
}
.pf-footer__claims .pf-icon { width: 20px; height: 20px; color: var(--pf-green); }
.pf-footer__claims:hover { background: #fff; color: var(--pf-navy) !important; }
.pf-footer__legal { display: inline-block; margin-left: 8px; }

@media (max-width: 980px) { .pf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pf-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   WooCommerce: botones con los colores de la marca
   -------------------------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.alt,
.wc-block-components-button:not(.is-link) {
	background: linear-gradient(135deg, var(--pf-purple) 0%, var(--pf-purple-2) 100%);
	color: #fff; border-radius: 8px; font-weight: 600;
}

.pf-price-quote { font-size: .9em; font-weight: 600; color: var(--pf-purple); }

/* Grillas de productos dentro de las landings */
.pf-products .woocommerce { margin: 0; }
.pf-products .pf-products__lead { max-width: 680px; margin: -16px auto clamp(40px, 5vw, 56px); text-align: center; }
.pf-products .wp-block-buttons { justify-content: center; margin-top: 48px; }

/* Stock: verde si hay, rojo si no */
.woocommerce .stock { font-size: 14px; font-weight: 600; }
.woocommerce .stock.in-stock { color: var(--pf-green-ink); }
.woocommerce .stock.out-of-stock { color: #c62828; }
.woocommerce ul.products li.product .stock { margin: 6px 0 0; }

/* Equipos de alquiler: etiqueta de disponibilidad y tarjetas "no disponible" atenuadas */
.product_cat-alquiler .stock {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
	font-size: 13px; letter-spacing: .02em;
}
.product_cat-alquiler .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product_cat-alquiler .stock.in-stock { background: #e6f6ee; }
.product_cat-alquiler .stock.out-of-stock { background: #f1f1f4; color: var(--pf-muted); }
.product_cat-alquiler .out-of-stock-badge { display: none; }
ul.products li.product.product_cat-alquiler.outofstock img { filter: grayscale(.7); opacity: .75; }
.pf-rental-empty { margin: 0 auto; max-width: 640px; text-align: center; font-size: 17px; color: var(--pf-muted); }

/* Ficha de equipo en alquiler */
.pf-rental-box {
	margin: 24px 0; padding: 24px; background: var(--pf-soft);
	border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
}
.pf-rental-box p { margin: 0 0 18px; color: var(--pf-muted); }
.pf-rental-box .pf-btn { width: 100%; }

/* Pagos manuales: QR, datos y N° de operación */
.pf-pay-qr {
	display: block; width: 220px; height: auto; margin: 12px 0 16px; padding: 10px;
	background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
}
.pf-pay-details { margin: 0 0 12px; padding: 14px 18px; background: #fff; border-left: 3px solid var(--pf-purple); border-radius: 6px; }
.pf-pay-details p { margin: 0; line-height: 1.7; }
.pf-pay-operation { margin-top: 12px !important; }

/* Página de gracias: último paso por WhatsApp */
.pf-thankyou {
	margin: 32px 0; padding: clamp(24px, 4vw, 40px); background: var(--pf-soft);
	border: 1px solid var(--pf-border); border-radius: var(--pf-radius);
}
.pf-thankyou h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; }
.pf-thankyou > p { margin: 0 0 20px; color: var(--pf-muted); line-height: 1.6; }
.pf-thankyou__wa { margin-top: 12px; background: #25d366 !important; box-shadow: 0 8px 20px rgba(37, 211, 102, .3) !important; }
.pf-thankyou__wa .pf-icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Libro de Reclamaciones
   -------------------------------------------------------------------------- */

.pf-claim {
	max-width: 900px; margin-inline: auto; padding: clamp(24px, 4vw, 48px);
	background: #fff; border: 1px solid var(--pf-border); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow);
}
.pf-claim fieldset { margin: 0 0 32px; padding: 0; border: 0; }
.pf-claim legend {
	width: 100%; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--pf-green);
	font-family: var(--pf-font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--pf-navy);
}
.pf-claim__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.pf-claim__grid .is-wide { grid-column: 1 / -1; }
.pf-claim p { margin: 0 0 16px; }
.pf-claim label { display: block; font-size: 15px; font-weight: 600; color: var(--pf-ink); }
.pf-claim input[type="text"], .pf-claim input[type="email"], .pf-claim input[type="tel"],
.pf-claim input[type="number"], .pf-claim select, .pf-claim textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; box-sizing: border-box;
	font: inherit; font-weight: 400; border: 1px solid var(--pf-border); border-radius: 8px; background: #fff;
}
.pf-claim input:focus, .pf-claim select:focus, .pf-claim textarea:focus { outline: 2px solid var(--pf-purple); outline-offset: 1px; }
.pf-claim__check label, .pf-claim__types label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.pf-claim__check input, .pf-claim__types input { margin-top: 4px; flex: none; }
.pf-claim__types { display: grid; gap: 12px; margin-bottom: 20px; }
.pf-claim__types label { padding: 14px 16px; border: 1px solid var(--pf-border); border-radius: 8px; }
.pf-claim__provider { margin-bottom: 32px; padding: 18px 20px; background: var(--pf-soft); border-radius: 8px; }
.pf-claim__provider p { margin: 0 0 4px; }
.pf-claim__notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--pf-border); font-size: 14px; color: var(--pf-muted); }
.pf-claim__errors { margin-bottom: 24px; padding: 14px 18px; background: #fdecea; color: #8e1c1c; border-radius: 8px; }
.pf-claim__hp { position: absolute; left: -9999px; }
.pf-claim__table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 15px; }
.pf-claim__table th, .pf-claim__table td { padding: 10px 12px; border-bottom: 1px solid var(--pf-border); text-align: left; vertical-align: top; }
.pf-claim__table th { width: 38%; color: var(--pf-muted); font-weight: 600; }
@media (max-width: 640px) { .pf-claim__grid { grid-template-columns: 1fr; } }
@media print {
	.pf-header, .pf-footer, .pf-page-hero, .pf-claim--done .pf-btn { display: none !important; }
	.pf-claim { box-shadow: none; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
