/*
Theme Name: A10 Railing
Theme URI: https://close.marketing
Description: Tema de bloques para A10 Railing. FSE block theme con sistema de diseño personalizable.
Author: closemarketing
Author URI: https://close.marketing
Version: 1.0.1
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: close-a10railing
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
*/

/* ─── EUROASIÁTICA ──────────────────────────────────────────────────────────── */

.a10-euro-section {
	background-color: #1C1C1C;
	padding-top: 80px;
	padding-bottom: 80px;
}

.a10-euro-cols {
	align-items: center;
	gap: 48px;
}

.a10-euro-left {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.a10-euro-title {
	color: #fff;
	margin: 0;
}

.a10-euro-desc {
	color: rgba(255, 255, 255, 0.7);
	max-width: 90%;
	margin: 0;
}

.a10-euro-sedes {
	gap: 16px;
	margin-top: 16px;
}

.a10-sede-card {
	background: #262626;
	border: 1px solid #333;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.a10-sede-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #666;
	margin: 0;
}

.a10-sede-city {
	color: #fff;
	margin: 0;
}

.a10-sede-info {
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.a10-euro-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.a10-euro-map {
	margin: 0;
	width: 100%;
}

.a10-euro-map img {
	width: 100%;
	height: auto;
	display: block;
}

/* ─── MÚLTIPLES SOLUCIONES ──────────────────────────────────────────────────── */

.a10-soluciones-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.a10-soluciones-header {
	gap: 8px;
	margin-bottom: 32px;
}

.a10-soluciones-title {
	margin: 0;
}

.a10-highlight {
	color: #CC0000;
}

.a10-soluciones-grid {
	border: 1px solid #D8D8D8;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 32px;
	background: #fff;
	gap: 0;
}

.a10-soluciones-card {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: 1fr auto;
	grid-template-areas:
		"num img"
		"label img";
	padding: 16px 20px 24px;
	border-right: 1px solid #D8D8D8;
	border-bottom: 1px solid #D8D8D8;
	min-height: 220px;
	gap: 0 16px;
	background: #fff;
}

.a10-soluciones-card:nth-child(3n) {
	border-right: none;
}

.a10-soluciones-card:nth-child(n+7) {
	border-bottom: none;
}

.a10-soluciones-num {
	grid-area: num;
	align-self: start;
	font-size: 11px;
	color: #AAAAAA;
	font-weight: 400;
	margin: 0;
}

.a10-soluciones-card .wp-block-image {
	grid-area: img;
	align-self: center;
	margin: 0;
}

.a10-soluciones-card .wp-block-image img {
	width: auto;
	height: 80px;
	object-fit: contain;
	display: block;
}

.a10-soluciones-label {
	grid-area: label;
	align-self: end;
	color: #222;
	margin: 0;
}

/* ─── LOGGED-IN HEADER ──────────────────────────────────────────────────────── */

.site-header {
	display: flex;
	background: #1C1C1C;
	height: 60px;
	align-items: center;
	padding: 0;
	width: 100%;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr minmax(300px, 600px) 1fr;
	gap: 20px;
	align-items: center;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0 24px;
}

.site-header__logo img {
	height: 36px;
	width: auto;
	display: block;
}

.site-header__search-wrap {
	position: relative;
}

.site-header__search {
	display: flex;
	align-items: center;
	background: #2a2a2a;
	border-radius: 6px;
	padding: 0 14px;
	gap: 10px;
}

.site-header__search-input {
	background: transparent;
	border: none;
	color: #fff;
	height: 40px;
	flex: 1;
	font-size: 13px;
	outline: none;
	min-width: 0;
}

.site-header__search-input::placeholder {
	color: #666;
}

.a10-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	z-index: 9999;
	max-height: 480px;
	overflow-y: auto;
	padding: 16px;
}

.a10-search-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.a10-search-card {
	display: flex;
	gap: 10px;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid #eee;
}

.a10-search-card:hover {
	background: #f5f5f5;
}

.a10-search-card__img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	flex-shrink: 0;
}

.a10-search-card__img--placeholder {
	background: #e5e5e5;
	border-radius: 4px;
}

.a10-search-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.a10-search-card__sku {
	color: #CC0000;
	font-weight: 700;
	font-size: 13px;
}

.a10-search-card__title {
	font-size: 12px;
	color: #444;
}

.a10-search-card__badges {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.a10-search-badge {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	font-weight: 600;
}

.a10-search-badge--blue {
	background: #1a6bbf;
}

.a10-search-badge--gold {
	background: #C9962A;
}

.a10-search-loading {
	text-align: center;
	padding: 20px;
	color: #999;
	font-size: 13px;
}

.a10-search-empty {
	text-align: center;
	padding: 20px;
	color: #999;
	font-size: 13px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	justify-self: end;
}

.site-header__user {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
}

.site-header__user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #333;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.site-header__user-info {
	display: flex;
	flex-direction: column;
}

.site-header__user-name {
	font-size: 13px;
	color: #fff;
	line-height: 1.2;
}

.site-header__user-role {
	font-size: 11px;
	color: #888;
}

.site-header__cart {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #2a2a2a;
	color: #fff;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
}

.site-header__cart-count {
	background: #CC0000;
	color: #fff;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

.site-header__vc {
	background: #2d8a4e;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* ─── AMPLIO SERVICIO ───────────────────────────────────────────────────────── */

.a10-servicio-section {
	background-color: #1C1C1C;
	padding-top: 80px;
	padding-bottom: 80px;
}

.a10-servicio-header {
	gap: 8px;
	margin-bottom: 40px;
}

.a10-servicio-title {
	margin: 0;
	color: #fff;
}

.a10-servicio-desc {
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.a10-servicio-grid {
	gap: 20px;
}

.a10-servicio-card {
	background: #262626;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.a10-servicio-card-top {
	margin: 0;
	margin-bottom: 4px;
}

.a10-servicio-num {
	font-size: 11px;
	color: #666;
	margin: 0;
}

.a10-servicio-icon {
	margin: 0;
}

.a10-servicio-icon img {
	width: auto;
	height: 32px;
	display: block;
}

.a10-servicio-kpi-wrap {
	gap: 8px;
	align-items: baseline;
	margin: 4px 0 0;
}

.a10-servicio-kpi-sublabel {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
	margin: 0;
}

.a10-servicio-kpi-sublabel--hidden {
	visibility: hidden;
}

.a10-servicio-kpi-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 4px 0 0;
}

.a10-servicio-kpi {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: #CC0000;
	margin: 0;
}

.a10-servicio-kpi--alone {
	margin-top: 4px;
}

.a10-servicio-kpi-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
	margin: 0;
	align-self: flex-end;
	padding-bottom: 4px;
}

.a10-servicio-card-title {
	color: #fff;
	margin: 0;
	border-top: 1px solid #3a3a3a;
	padding-top: 12px;
}

.a10-servicio-card-desc {
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* ─── HERO LOGOUT ───────────────────────────────────────────────────────────── */

.a10-hero-logout {
	position: relative;
	background-color: #0a0a0a;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.a10-hero-logout::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('assets/hero-home-logout.webp');
	background-size: cover;
	background-position: center right;
	opacity: 0.15;
	z-index: 0;
}

.a10-hero-logout > * {
	position: relative;
	z-index: 1;
}

/* Header transparente flotando sobre el hero */
.wp-site-blocks:has(.a10-hero-logout) > header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: transparent	;
}

.wp-site-blocks:has(.a10-hero-logout) > main {
	padding: 0;
	margin: 0;
}

.a10-hero-main {
	flex: 1;
	gap: 60px;
	align-items: center;
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.a10-hero-left {
	flex: 1;
	max-width: 540px;
	gap: 20px;
}

.a10-hero-heading {
	color: #fff;
	font-size: clamp(36px, 4vw, 58px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.a10-hero-desc {
	color: rgba(255, 255, 255, 0.55);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	max-width: 420px;
}

.a10-hero-right {
	width: 50%;
	flex-shrink: 0;
	gap: 10px;
}

.a10-hero-right .wp-block-shortcode {
	width: 100%;
}

.a10-hero-form-eyebrow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
}

/* ─ Login card ─────────────────────────────────────────────────────────────── */

.a10-login-card {
	background: #fff;
	border-radius: 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.a10-login-card__eyebrow {
	font-size: 14px;
	font-weight: 400;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	text-transform: uppercase;
	line-height: 1.14;
	letter-spacing: 0.88px;
	color: #000;
	margin: 0;
	padding: 20px 24px;
	border-bottom: 1px solid #e4e4e7;
}

.a10-login-card__title {
	font-size: 23.6px;
	font-weight: 700;
	color: #111;
	margin: 0;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	line-height: 1.017;
	padding: 28px 24px 0;
}

.a10-login-card #loginform {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 24px 24px;
	background: none;
	border: none;
	box-shadow: none;
}

.a10-login-card #loginform p {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.a10-login-card #loginform label {
	font-size: 12px;
	font-weight: 500;
	color: #555;
}

.a10-login-card #loginform input[type="text"],
.a10-login-card #loginform input[type="password"] {
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	color: #111;
	width: 100%;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s;
	font-family: var(--wp--preset--font-family--space-grotesk);
}

.a10-login-card #loginform input[type="text"]:focus,
.a10-login-card #loginform input[type="password"]:focus {
	border-color: #CC0000;
}

.a10-login-card #loginform .login-submit {
	margin: 4px 0 0;
	display: flex;
}

.a10-login-card #loginform input[type="submit"] {
	background: #fff;
	color: #CC0000;
	border: 1px solid #CC0000;
	border-radius: 6px;
	padding: 10px 32px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	font-family: var(--wp--preset--font-family--space-grotesk);
	width: fit-content;
	min-width: 0;
	display: inline-block;
}

.a10-login-card #loginform input[type="submit"]:hover {
	background: #CC0000;
	color: #fff;
}

.a10-login-forgot {
	font-size: 12px;
	margin: 0;
	text-align: left;
}

.a10-login-forgot a {
	color: #CC0000;
	text-decoration: none;
}

.a10-login-forgot a:hover {
	text-decoration: underline;
}

/* ─ Stats bar ──────────────────────────────────────────────────────────────── */

.a10-hero-stats {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 24px 48px;
	gap: 0;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.a10-hero-stat {
	flex: 1;
	gap: 4px;
	align-items: center;
	text-align: center;
	position: relative;
}

.a10-hero-stat + .a10-hero-stat::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10%;
	height: 80%;
	width: 1px;
	background: rgba(255, 255, 255, 0.15);
}

.a10-hero-stat-num {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1;
}

.a10-hero-stat-num--red {
	color: #CC0000;
}

.a10-hero-stat-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
}

/* ─── DISPONIBILIDAD INMEDIATA ──────────────────────────────────────────────── */

.a10-disponibilidad-section {
	padding-top: 80px;
	padding-bottom: 80px;
	background-color: #F1F2F1;
}

.a10-disponibilidad-header {
	gap: 8px;
	margin-bottom: 32px;
}

.a10-disponibilidad-title {
	margin: 0;
}

.a10-disponibilidad-desc {
	color: #666;
	margin: 0;
}

.a10-disponibilidad-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.a10-disponibilidad-card {
	display: flex;
	align-items: center;
	gap: 40px;
	background: #e8e8e8;
	border-radius: 10px;
	padding: 20px 24px;
}

.a10-disponibilidad-card__img-wrap {
	width: 220px;
	height: 160px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 8px;
	padding: 14px;
	box-sizing: border-box;
}

.a10-disponibilidad-card__img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.a10-disponibilidad-card__img-placeholder {
	width: 100%;
	height: 100%;
	background: #ccc;
	border-radius: 6px;
}

.a10-disponibilidad-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.a10-disponibilidad-card__name {
	font-size: 50px;
	font-weight: 700;
	color: #6B6F76;
	font-family: var(--wp--preset--font-family--space-grotesk);
	line-height: 40px;
	word-wrap: break-word;
}

.a10-disponibilidad-card__count {
	font-size: 23.6px;
	font-weight: 700;
	color: #6B6F76;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	line-height: 24px;
	word-wrap: break-word;
}

/* ─ WooCommerce product-categories block (mismo estilo) ─────────────────────── */

.a10-disponibilidad-section .wc-block-product-categories-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.a10-disponibilidad-section .wc-block-product-categories-list-item {
	display: flex;
	align-items: center;
	gap: 40px;
	background: #e8e8e8;
	border-radius: 10px;
	padding: 20px 24px;
}

.a10-disponibilidad-section .wc-block-product-categories-list-item > a {
	display: contents;
	text-decoration: none;
	color: inherit;
}

.a10-disponibilidad-section .wc-block-product-categories-list-item__image {
	width: 220px;
	height: 160px;
	flex-shrink: 0;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	padding: 14px;
	box-sizing: border-box;
}

.a10-disponibilidad-section .wc-block-product-categories-list-item__name {
	flex: 1;
	font-size: 50px;
	font-weight: 700;
	color: #6B6F76;
	font-family: var(--wp--preset--font-family--space-grotesk);
	line-height: 40px;
	word-wrap: break-word;
}

.a10-disponibilidad-section .wc-block-product-categories-list-item__count {
	font-size: 23.6px;
	font-weight: 700;
	color: #6B6F76;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	line-height: 24px;
}

/* ─── PIEZAS EN ACCIÓN: CARRUSEL ─────────────────────────────────────────── */

.a10-piezas-section {
	padding: 80px 0;
}

.a10-piezas-header {
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
	box-sizing: border-box;
}

.a10-piezas-header h2 {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 12px;
}

.a10-piezas-header p {
	color: #6B6F76;
	font-size: 15px;
	margin: 0;
}

.a10-piezas-slide {
	gap: 12px;
	max-width: 100%;
	overflow: hidden;
}

.a10-piezas-img {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
}

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

.a10-piezas-section > .frontblocks.glide {
	max-width: var(--wp--style--global--wide-size);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	--frbl-bullet-color: #E31B1B;
	--frbl-bullet-bg: #D1D5DB;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */

footer.wp-block-template-part {
	margin-block-start: 0;
}
