/*
Theme Name: LaborPro Claro
Theme URI: https://laborpro.es
Description: Tema hijo de Twenty Twenty-Five para LABORPRO INDEX en versión clara. Todo se edita con bloques nativos: los estilos de LaborPro se eligen en el panel «Estilos» de cada bloque.
Author: GEAE
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laborpro-claro
*/

:root {
	--lp-azul: var(--wp--preset--color--azul);
	--lp-tinta: var(--wp--preset--color--contrast);
	--lp-linea: var(--wp--preset--color--linea);
	--lp-tinte: var(--wp--preset--color--azul-tinte);
	--lp-tinte-2: var(--wp--preset--color--azul-tinte-2);
	--lp-grad: var(--wp--preset--gradient--marca);
	--lp-sombra: 0 18px 40px -22px rgba(15, 35, 95, .35);
	--lp-sombra-hover: 0 28px 50px -24px rgba(37, 99, 235, .45);
	--lp-curva: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Texto resaltado con el color «Degradado» ---------- */
mark.has-degradado-color {
	background: var(--lp-grad) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	color: transparent !important;
}
h1 mark.has-degradado-color { display: inline; }

/* ---------- Iconos (Material Symbols escritos como palabra) ---------- */
.is-style-lp-icono,
.is-style-lp-icono-azul {
	font-family: 'Material Symbols Outlined' !important;
	font-weight: normal !important;
	font-size: 1.5rem !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	white-space: nowrap;
	word-wrap: normal;
	-webkit-font-feature-settings: 'liga';
	font-feature-settings: 'liga';
	width: 52px; height: 52px; flex: none;
	display: inline-grid !important; place-items: center;
	border-radius: 15px;
	background: var(--lp-tinte); color: var(--lp-azul);
	margin: 0 !important;
	overflow: hidden;
}
.is-style-lp-icono-azul { background: var(--lp-grad); color: #fff; }
.has-text-align-center.is-style-lp-icono,
.has-text-align-center.is-style-lp-icono-azul { margin-inline: auto !important; }

/* ---------- Antetítulo, chips y etiquetas ---------- */
.is-style-lp-eyebrow {
	display: inline-flex !important; align-items: center; gap: 8px; width: fit-content;
	padding: 6px 14px; border-radius: 999px;
	background: var(--lp-tinte); color: var(--wp--preset--color--azul-oscuro);
	font-size: .74rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.is-style-lp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-azul); box-shadow: 0 0 0 4px rgba(37,99,235,.18); flex: none; }
.has-text-align-center.is-style-lp-eyebrow { margin-inline: auto !important; }
.is-style-lp-chip {
	display: inline-block !important; width: fit-content; padding: 4px 10px; border-radius: 999px;
	font-size: .72rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
	background: var(--lp-tinte); color: var(--wp--preset--color--azul-oscuro);
}
.is-style-lp-chip.has-background { color: inherit; }
.is-style-lp-etiqueta {
	display: inline-block !important; width: fit-content; padding: 5px 11px; border-radius: 8px;
	font-size: .78rem !important; font-weight: 500; background: #F1F5F9; color: var(--wp--preset--color--texto); line-height: 1.4;
}
.is-style-lp-cifra {
	font-family: var(--wp--preset--font-family--sora); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
	font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important; margin: 4px 0 2px !important;
}
.is-style-lp-numero {
	width: 68px; height: 68px; margin-inline: auto !important; border-radius: 50%; display: grid !important; place-items: center;
	background: #fff; border: 2px solid #C7D7FE; font-family: var(--wp--preset--font-family--sora); font-weight: 800;
	font-size: 1.3rem !important; color: var(--lp-azul); transition: background .3s, color .3s, border-color .3s;
}
.wp-block-column:hover > .is-style-lp-numero { background: var(--lp-azul); color: #fff; border-color: var(--lp-azul); }

/* ---------- Tarjetas y cajas ---------- */
.is-style-lp-tarjeta {
	background: #fff; border: 1px solid var(--lp-linea); border-radius: 20px;
	transition: transform .35s var(--lp-curva), box-shadow .35s, border-color .35s;
	overflow: hidden;
}
.is-style-lp-tarjeta:hover { transform: translateY(-5px); box-shadow: var(--lp-sombra-hover); border-color: #C7D7FE; }
.is-style-lp-tarjeta-azul {
	background: var(--lp-grad); color: #fff; border-radius: 26px; position: relative; overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(37,99,235,.8);
}
.is-style-lp-tarjeta-azul::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 85% 0%, rgba(255,255,255,.28), transparent 45%), radial-gradient(circle at 0% 100%, rgba(255,255,255,.16), transparent 40%);
}
.is-style-lp-tarjeta-azul > * { position: relative; z-index: 1; }
.is-style-lp-tarjeta-azul :where(h1, h2, h3, h4, p, li, a:not(.wp-element-button)) { color: #fff; }
.is-style-lp-tarjeta-azul .is-style-lp-icono { background: rgba(255,255,255,.18); color: #fff; }
.is-style-lp-tarjeta-azul .is-style-lp-eyebrow, .is-style-lp-tarjeta-azul .is-style-lp-chip { background: rgba(255,255,255,.18); color: #fff; }
.is-style-lp-tarjeta-azul .is-style-lp-eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.is-style-lp-tarjeta-azul mark.has-degradado-color { background: none !important; color: #fff !important; -webkit-background-clip: border-box !important; }
.is-style-lp-caja { background: var(--lp-tinte); border-radius: 32px; position: relative; overflow: hidden; }
.is-style-lp-flotante {
	background: #fff; border-radius: 16px; box-shadow: var(--lp-sombra); padding: 12px 16px !important;
	width: fit-content; max-width: 280px; animation: lp-flotar 6s ease-in-out infinite;
}
.is-style-lp-flotante p { margin: 0 !important; font-size: .82rem; line-height: 1.35; color: var(--wp--preset--color--suave); }
.is-style-lp-flotante strong { color: var(--lp-tinta); font-size: .9rem; }
.is-style-lp-flotante .is-style-lp-icono { width: 40px; height: 40px; font-size: 1.25rem !important; border-radius: 11px; }
@keyframes lp-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Foto con etiquetas flotantes: la 1.ª etiqueta arriba a la izquierda, la 2.ª abajo a la derecha */
.is-style-lp-foto-flotante { position: relative; }
.is-style-lp-foto-flotante > .is-style-lp-flotante { position: absolute; z-index: 2; margin: 0 !important; }
.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(1) { left: -32px; top: 16%; }
.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(2) { right: -24px; bottom: 12%; animation-delay: -3s; }
.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(2) .is-style-lp-icono { background: var(--wp--preset--color--oro-claro); color: #8A6119; }
.is-style-lp-foto-flotante > .wp-block-image { margin: 0; }
.is-style-lp-foto-flotante::before {
	content: ""; position: absolute; inset: -14px -14px auto auto; width: 70%; height: 70%; border-radius: 36px; background: var(--lp-grad); z-index: 0; opacity: .9;
}
.is-style-lp-foto-flotante > * { position: relative; z-index: 1; }

/* ---------- Imágenes ---------- */
.is-style-lp-marco { border-radius: 28px; overflow: hidden; background: var(--wp--preset--color--gris-foto); box-shadow: 0 40px 80px -40px rgba(15,35,95,.5); }
.is-style-lp-marco img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 1s var(--lp-curva); display: block; }
.is-style-lp-marco:hover img { transform: scale(1.04); }
.is-style-lp-producto { background: var(--wp--preset--color--gris-foto); overflow: hidden; margin: 0 !important; }
.is-style-lp-producto img { width: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--lp-curva); display: block; }
.is-style-lp-tarjeta:hover .is-style-lp-producto img { transform: scale(1.06); }

/* ---------- Listas, FAQ, opiniones ---------- */
.is-style-lp-checks { list-style: none; padding-left: 0 !important; display: grid; gap: 12px; }
.is-style-lp-checks li { position: relative; padding-left: 30px; color: var(--lp-tinta); }
.is-style-lp-checks li::before {
	content: "check_circle"; font-family: 'Material Symbols Outlined'; font-size: 1.25rem; line-height: 1;
	position: absolute; left: 0; top: .15em; color: var(--lp-azul);
}
.is-style-lp-tarjeta-azul .is-style-lp-checks li::before { color: #fff; }
.is-style-lp-faq {
	border: 1px solid var(--lp-linea); border-radius: 16px; background: #fff; padding: 0 !important;
	transition: border-color .3s, box-shadow .3s;
}
.is-style-lp-faq[open] { border-color: #C7D7FE; box-shadow: var(--lp-sombra); }
.is-style-lp-faq summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
	font-family: var(--wp--preset--font-family--sora); font-weight: 600; color: var(--lp-tinta);
}
.is-style-lp-faq summary::-webkit-details-marker { display: none; }
.is-style-lp-faq summary::after {
	content: "expand_more"; font-family: 'Material Symbols Outlined'; font-size: 1.5rem; color: var(--lp-azul);
	position: absolute; right: 20px; top: 50%; transform: translateY(-50%); transition: transform .3s;
}
.is-style-lp-faq[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.is-style-lp-faq > :not(summary) { padding: 0 22px 20px; margin: 0; }
.wp-block-quote.is-style-lp-opinion {
	margin: 0; padding: 28px !important; border: 1px solid #E3EBFF !important; border-radius: 20px; background: var(--lp-tinte-2);
	position: relative; display: flex; flex-direction: column; gap: 12px; font-size: 1rem;
}
.wp-block-quote.is-style-lp-opinion::before {
	content: "\201C"; position: absolute; right: 22px; top: 4px; font-family: var(--wp--preset--font-family--sora); font-size: 5rem; line-height: 1; color: #C7D7FE;
}
.wp-block-quote.is-style-lp-opinion p { margin: 0; color: var(--lp-tinta); }
.wp-block-quote.is-style-lp-opinion cite {
	display: block; margin-top: auto; padding-top: 14px; border-top: 1px solid #E3EBFF; font-style: normal; font-size: .9rem; color: var(--wp--preset--color--suave);
}
.wp-block-quote.is-style-lp-opinion cite strong { color: var(--lp-tinta); display: block; }

/* ---------- Carrusel ---------- */
.is-style-lp-carrusel {
	display: grid !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px !important;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: thin;
}
.is-style-lp-carrusel > * { scroll-snap-align: start; margin: 0 !important; }
.lp-flechas { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 14px; }
.lp-flecha {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--lp-linea); background: #fff; color: var(--lp-tinta); cursor: pointer;
	font-family: 'Material Symbols Outlined'; font-size: 1.4rem; transition: background .25s, color .25s, border-color .25s;
}
.lp-flecha:hover { background: var(--lp-azul); color: #fff; border-color: var(--lp-azul); }
.editor-styles-wrapper .is-style-lp-carrusel { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }

/* ---------- Botones ---------- */
.wp-block-button .wp-block-button__link { transition: transform .25s var(--lp-curva), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.wp-block-button:not(.is-style-outline):not(.is-style-lp-blanco):not(.is-style-lp-suave) .wp-block-button__link { box-shadow: 0 14px 30px -14px rgba(37,99,235,.8); }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--lp-azul); color: var(--lp-azul); background: #fff; }
.wp-block-button.is-style-lp-blanco .wp-block-button__link { background: #fff; color: var(--wp--preset--color--azul-oscuro); border-color: #fff; }
.wp-block-button.is-style-lp-blanco .wp-block-button__link:hover { box-shadow: 0 18px 30px -16px rgba(0,0,0,.4); }
.wp-block-button.is-style-lp-suave .wp-block-button__link { background: var(--lp-tinte); color: var(--wp--preset--color--azul-oscuro); border-color: var(--lp-tinte); box-shadow: none; }
.wp-block-button.is-style-lp-suave .wp-block-button__link:hover { background: var(--lp-azul); color: #fff; border-color: var(--lp-azul); }

/* ---------- Columnas con separador (cifras) ---------- */
.is-style-lp-separadas > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.28); }

/* ---------- Franja superior y cabecera ---------- */
.is-style-lp-barra p { margin: 0; font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.lp-cabecera { position: sticky; top: 0; z-index: 50; }
.admin-bar .lp-cabecera { top: 32px; }
.lp-cabecera > .wp-block-group:last-child { background: rgba(255,255,255,.9) !important; backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.lp-cabecera.con-sombra > .wp-block-group:last-child { border-color: var(--lp-linea); box-shadow: 0 10px 30px -25px rgba(15,35,95,.5); }
.lp-cabecera .wp-block-navigation-item__content { padding: 8px 12px !important; border-radius: 10px; font-weight: 500; transition: color .2s, background .2s; }
.lp-cabecera .wp-block-navigation-item__content:hover { background: var(--lp-tinte); color: var(--lp-azul) !important; }
.lp-cabecera .current-menu-item > .wp-block-navigation-item__content { color: var(--lp-azul) !important; box-shadow: inset 0 -2px 0 var(--lp-azul); border-radius: 0; }
.lp-cabecera .wp-block-navigation-item__content { white-space: nowrap; }
.lp-cabecera .wp-block-site-logo { flex: none; }
.lp-cabecera .wp-block-site-logo img { width: 52px; height: auto; }
/* El menú se pliega en hamburguesa hasta 1100 px (WordPress lo hace solo hasta 600 px) */
@media (min-width: 600px) and (max-width: 1100px) {
	.lp-cabecera .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.lp-cabecera .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- Pie ---------- */
.lp-pie .wp-block-list { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.lp-pie .wp-block-list a { color: var(--wp--preset--color--texto); }
.lp-pie .wp-block-list a:hover { color: var(--lp-azul); }
.lp-estado::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); margin-right: 8px; vertical-align: middle; }

/* ---------- Tienda (WooCommerce) ---------- */
.lp-filtros { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 12px; }
.lp-filtros .wp-block-button { flex: none; }
.lp-filtros .wp-block-button__link { border-radius: 999px !important; padding: 9px 16px !important; font-size: .9rem !important; font-weight: 500 !important; box-shadow: none !important; }
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: #fff; border: 1px solid var(--lp-linea); border-radius: 18px; overflow: hidden; padding: 0 0 16px !important;
	transition: transform .3s var(--lp-curva), box-shadow .3s, border-color .3s; display: flex; flex-direction: column;
}
.wc-block-product-template .wc-block-product:hover,
.wp-block-woocommerce-product-template > li:hover { transform: translateY(-5px); box-shadow: var(--lp-sombra-hover); border-color: #C7D7FE; }
.wc-block-product .wc-block-components-product-image { background: #F8FAFC; margin: 0 0 12px !important; }
.wc-block-product .wc-block-components-product-image img { aspect-ratio: 1 / 1.1 !important; object-fit: contain !important; padding: 16px; box-sizing: border-box; width: 100% !important; transition: transform .6s var(--lp-curva); }
.wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.06); }
.wc-block-product .wp-block-post-title { padding: 0 16px; font-size: 1rem !important; font-family: var(--wp--preset--font-family--sora); text-align: left !important; }
.wc-block-product .wp-block-post-title a { color: var(--lp-tinta); }
.wc-block-product .wc-block-components-product-price { padding: 0 16px; color: var(--lp-azul); font-family: var(--wp--preset--font-family--sora); font-weight: 700; text-align: left !important; }
.wc-block-product .wp-block-button, .wc-block-product .wc-block-components-product-button { padding: 0 16px; margin-top: auto !important; }
.wc-block-product .wp-block-button__link, .wc-block-product .wc-block-components-product-button__button { width: 100%; border-radius: 12px !important; font-size: .88rem !important; }
.lp-desde { font-family: var(--wp--preset--font-family--inter); font-weight: 500; font-size: .8em; color: var(--wp--preset--color--suave); }
.wc-block-catalog-sorting select, .woocommerce-ordering select {
	padding: 10px 14px; border-radius: 12px; border: 1px solid var(--lp-linea); background: #fff; font: inherit; font-size: .92rem; color: var(--lp-tinta);
}
.wc-block-product-results-count, .woocommerce-result-count { color: var(--wp--preset--color--suave); font-size: .92rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--lp-linea); background: #fff; font-weight: 600; color: var(--lp-tinta);
}
.wp-block-query-pagination .page-numbers.current { background: var(--lp-azul); border-color: var(--lp-azul); color: #fff; }
.wp-block-query-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Formulario de contacto ---------- */
.lp-form__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-campo { display: grid; gap: 6px; margin: 0; }
.lp-campo--ancho, .lp-consentimiento, .lp-info-rgpd { grid-column: 1 / -1; }
.lp-campo label { font-size: .88rem; font-weight: 600; color: var(--lp-tinta); }
.lp-campo input, .lp-campo select, .lp-campo textarea {
	font: inherit; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--lp-linea); background: var(--lp-tinte-2); color: var(--lp-tinta); width: 100%;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.lp-campo textarea { min-height: 140px; resize: vertical; }
.lp-campo :is(input, select, textarea):focus { outline: none; border-color: var(--lp-azul); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.lp-oculto { position: absolute; left: -9999px; }
.lp-consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; }
.lp-consentimiento input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lp-azul); flex: none; }
.lp-consentimiento a { text-decoration: underline; }
.lp-info-rgpd { font-size: .78rem; color: var(--wp--preset--color--suave); background: #F8FAFC; border-radius: 12px; padding: 12px 14px; margin: 0; }
.lp-form .wp-block-button { margin-top: 18px; }
.lp-form__estado { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.lp-form__estado.ok { background: #E8F8EE; color: #166534; }
.lp-form__estado.error { background: #FDECEC; color: #B42318; }

/* ---------- Animación de aparición (solo en la web, no en el editor) ---------- */
.lp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--lp-curva), transform .8s var(--lp-curva); }
.lp-reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.is-style-lp-carrusel { grid-auto-columns: calc((100% - 24px) / 2); }
	.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(1) { left: -10px; }
	.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(2) { right: -6px; }
}
@media (max-width: 781px) {
	.is-style-lp-separadas > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); padding-top: 20px; }
	.lp-form__campos { grid-template-columns: 1fr; }
	.is-style-lp-foto-flotante { max-width: 460px; margin-inline: auto; }
	.is-style-lp-producto img { max-height: 420px; }
	.is-style-lp-cifra { white-space: nowrap; }
}
@media (max-width: 640px) {
	.is-style-lp-carrusel { grid-auto-columns: 86%; }
	.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(1) { left: 8px; top: 6%; }
	.is-style-lp-foto-flotante > .is-style-lp-flotante:nth-of-type(2) { right: 8px; }
	.is-style-lp-foto-flotante::before { inset: -8px -8px auto auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.lp-reveal { opacity: 1; transform: none; }
}
