/* =============================================================
   Arem Pro — Custom CSS
   Plantilla Corporativa · Energía · Ingeniería · Industria
   Colores: Azul marino AREM · Rojo AREM · Dorado AREM
   Bootstrap 5 · Header · Mega Menu · Footer · Utilities
   ============================================================= */

/* ── Variables corporativas ── */
:root {
	/* Paleta AREM */
	--arem-red:          #c41515;
	--arem-red-hover:    #a31010;
	--arem-red-light:    #fff0f0;
	--arem-gold:         #c8901a;
	--arem-gold-light:   #e8a820;
	--arem-navy-deep:    #060f1c;
	--arem-navy:         #0b1e35;
	--arem-navy-mid:     #122845;
	--arem-navy-light:   #1e3a5f;

	/* Aliases */
	--arem-primary:         var(--arem-red);
	--arem-primary-hover:   var(--arem-red-hover);
	--arem-accent:          var(--arem-gold);
	--arem-dark:            var(--arem-navy);
	--arem-topbar-bg:       var(--arem-navy-deep);
	--arem-navbar-bg:       #ffffff;          /* Navbar blanco — logo resalta con sus colores propios */
	--arem-navbar-height:   140px;
	--arem-navbar-link:     var(--arem-navy); /* links navy sobre blanco */
	--arem-footer-bg:       #0d1f38;
	--arem-footer-bottom:   var(--arem-navy-deep);
	--arem-text-muted:      #8fa3be;
	--arem-border:          rgba(255, 255, 255, 0.09);
	--arem-border-dark:     rgba(11, 30, 53, 0.1);
	--arem-radius:          0.375rem;
	--arem-transition:      0.22s ease;
}

/* ══════════════════════════════════════════
   TOP BAR CORPORATIVO — navy sobre blanco
══════════════════════════════════════════ */
.arem-topbar {
	background: var(--arem-navy);
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(200, 144, 26, 0.2);
	font-size: 0.78rem;
}
.topbar-link {
	color: var(--arem-text-muted);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: color var(--arem-transition);
}
.topbar-link i {
	color: var(--arem-gold);
	font-size: 0.72rem;
}
.topbar-link:hover { color: var(--arem-gold-light); }

.topbar-social-icon {
	color: var(--arem-text-muted);
	font-size: 0.78rem;
	text-decoration: none;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color var(--arem-transition), background var(--arem-transition);
}
.topbar-social-icon:hover {
	color: var(--arem-gold-light);
	background: rgba(200, 144, 26, 0.15);
}

/* ══════════════════════════════════════════
   HEADER & NAVBAR — Fondo blanco corporativo
   Logo AREM resalta con sus colores propios
   (navy · rojo · dorado sobre blanco)
══════════════════════════════════════════ */
.arem-header {
	position: sticky;
	top: 0;
	z-index: 1040;
	/* Sombra suave para flotar sobre el contenido */
	box-shadow: 0 2px 16px rgba(11, 30, 53, 0.12);
}

.arem-navbar {
	background-color: #ffffff;
	min-height: var(--arem-navbar-height);
	padding-block: 0;
	/* Franja roja en la parte inferior = firma visual AREM */
	border-bottom: 4px solid var(--arem-red);
	transition: box-shadow var(--arem-transition);
	position: relative;
}
.arem-navbar > .container,
.arem-navbar > .container-fluid {
	min-height: var(--arem-navbar-height);
	align-items: center;
	max-width: 100% !important;
	padding-left: 2rem !important;
	padding-right: 2rem !important;
}

/* Línea dorada decorativa sobre la roja */
.arem-navbar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--arem-red) 0%, var(--arem-gold) 40%, transparent 100%);
}

/* Sombra más profunda al hacer scroll */
.arem-header.scrolled .arem-navbar {
	box-shadow: 0 4px 24px rgba(11, 30, 53, 0.18);
}

/* ── Brand / Logo ── */
.arem-brand,
.arem-brand .custom-logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
}
.arem-brand {
	/* Separador visual derecho entre logo y menú */
	padding: 0.5rem 1.5rem 0.5rem 0;
	margin-right: 1rem;
	border-right: 1px solid var(--arem-border-dark);
	position: relative;
}
/* Micro-acento dorado bajo el logo — conecta badge y barra inferior */
.arem-brand::after {
	content: '';
	position: absolute;
	bottom: -4px;           /* se alinea con el border-bottom del navbar */
	left: 0;
	width: 60%;
	height: 4px;
	background: var(--arem-gold);
	border-radius: 0;
}
/* Selector amplio: cubre custom-logo, SVG, PNG y fallback */
.arem-brand img,
.arem-brand svg,
.arem-brand .custom-logo,
img.custom-logo {
	display: block;
	height: calc(var(--arem-navbar-height) - 16px) !important;
	max-height: none !important;
	max-width: 440px !important;
	width: auto !important;
	object-fit: contain;
	object-fit: contain;
	/* Sombra suave para dar profundidad al logo sobre fondo blanco */
	filter: drop-shadow(0 1px 4px rgba(11, 30, 53, 0.15));
}
.arem-site-name {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--arem-navy);
	letter-spacing: -0.02em;
}

/* ── Nav links — navy sobre blanco ── */
.arem-navbar .navbar-nav .nav-link {
	color: var(--arem-navy);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.55rem 0.85rem;
	border-radius: var(--arem-radius);
	transition: color var(--arem-transition), background var(--arem-transition);
	position: relative;
}
.arem-navbar .navbar-nav .nav-link:hover {
	color: var(--arem-red);
	background: var(--arem-red-light);
}
.arem-navbar .navbar-nav .nav-link.active {
	color: #fff;
	background: var(--arem-red);
}
/* Underline animado en hover (alternativa al fondo) */
.arem-navbar .navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 50%;
	right: 50%;
	height: 2px;
	background: var(--arem-gold);
	transition: left var(--arem-transition), right var(--arem-transition);
	border-radius: 2px;
}
.arem-navbar .navbar-nav .nav-link:hover::after {
	left: 0.85rem;
	right: 0.85rem;
}
.arem-navbar .navbar-nav .nav-link.active::after { display: none; }

/* Caret dropdown — navy */
.arem-navbar .nav-link.dropdown-toggle::after {
	border: none;
	content: '\F282';
	font-family: 'bootstrap-icons';
	font-size: 0.6rem;
	vertical-align: 0.15em;
	margin-left: 0.3rem;
	color: var(--arem-red);
}

/* ── Botón CTA ── */
.arem-btn-cta {
	background: var(--arem-red);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.6rem 1.4rem;
	border-radius: var(--arem-radius);
	border: 2px solid var(--arem-red);
	transition: background var(--arem-transition), border-color var(--arem-transition),
	            transform var(--arem-transition), box-shadow var(--arem-transition);
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(196, 21, 21, 0.3);
}
.arem-btn-cta:hover {
	background: var(--arem-navy);
	border-color: var(--arem-navy);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 18px rgba(11, 30, 53, 0.3);
}

/* ── Hamburger toggler — navy sobre blanco ── */
.arem-toggler {
	border: 1px solid var(--arem-border-dark);
	border-radius: var(--arem-radius);
	padding: 0.5rem 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: transparent;
}
.arem-toggler .tog-line {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--arem-navy);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.arem-toggler[aria-expanded="true"] .tog-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.arem-toggler[aria-expanded="true"] .tog-line:nth-child(2) { opacity: 0; }
.arem-toggler[aria-expanded="true"] .tog-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   DROPDOWN ESTÁNDAR
══════════════════════════════════════════ */
.arem-dropdown {
	border: none;
	border-radius: 0 0 var(--arem-radius) var(--arem-radius);
	border-top: 3px solid var(--arem-red);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
	padding: 0.5rem;
	min-width: 230px;
	animation: dropFade 0.18s ease;
}
.arem-dropdown .dropdown-item {
	border-radius: calc(var(--arem-radius) - 2px);
	font-size: 0.855rem;
	font-weight: 500;
	color: var(--arem-navy);
	padding: 0.5rem 0.85rem 0.5rem 0.65rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: background var(--arem-transition), color var(--arem-transition),
	            padding-left var(--arem-transition);
}
.arem-dropdown .dropdown-item::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--arem-red);
	flex-shrink: 0;
	opacity: 0;
	transition: opacity var(--arem-transition);
}
.arem-dropdown .dropdown-item:hover,
.arem-dropdown .dropdown-item.active {
	background: var(--arem-red-light);
	color: var(--arem-red);
	padding-left: 1rem;
}
.arem-dropdown .dropdown-item:hover::before,
.arem-dropdown .dropdown-item.active::before { opacity: 1; }

@keyframes dropFade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   MEGA MENU
══════════════════════════════════════════ */

/* Contenedor del mega menú — Bootstrap gestiona display:none / .show */
.arem-mega-menu {
	position: absolute !important;
	inset-inline: 0 !important;       /* left:0 right:0 relativo al .navbar */
	width: 100% !important;
	min-width: unset;
	border-radius: 0 0 var(--arem-radius) var(--arem-radius);
	border: none !important;
	border-top: 3px solid var(--arem-red) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
	padding: 0 !important;
	top: 100% !important;
	transform: none !important;
	/* SIN display:flex aquí — era el bug que lo hacía siempre visible */
}

/* Solo cuando Bootstrap activa .show */
.arem-mega-menu.show {
	display: block !important;
	animation: dropFade 0.18s ease;
}

/* Fila interna de columnas — sin wrap para que orphans queden siempre a la derecha */
.arem-mega-row {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	padding: 1.25rem 0 1rem;
	margin: 0;
	gap: 0;
	align-items: flex-start;
}

/* Columna = ítem depth-1 */
.arem-mega-col {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 1.5rem;
	border-right: 1px solid #eef0f3;
	list-style: none;
}
.arem-mega-col:last-child { border-right: none; }

/* Panel derecho de orphans — mismo ancho que las demás columnas */
.arem-mega-col--orphans {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0 1.25rem !important;
	border-left: 2px solid var(--arem-gold) !important;
	border-right: none !important;
	background: #fafbfc;
}

/* Lista de orphans — columna única, limpia */
.arem-orphan-links {
	display: flex !important;
	flex-direction: column !important;
	gap: 0;
}

/* Título de columna */
.arem-mega-col-title {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--arem-navy);
	margin-bottom: 1rem;
	text-decoration: none;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid var(--arem-gold);
}
.arem-mega-col-title:hover { color: var(--arem-red); }

/* Título del panel orphan — acento dorado a la izquierda */
.arem-mega-orphan-title {
	color: var(--arem-navy);
	border-bottom-color: var(--arem-gold);
	margin-bottom: 0.75rem;
	padding-bottom: 0.4rem;
}

/* Lista de enlaces de columna */
.arem-mega-col-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
}

/* Enlace individual */
.arem-mega-link {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.875rem;
	color: #3d4f63;
	padding: 0.4rem 0.6rem;
	border-radius: calc(var(--arem-radius) - 2px);
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition),
	            padding-left var(--arem-transition);
}
.arem-mega-link::before {
	content: '\F285';
	font-family: 'bootstrap-icons';
	font-size: 0.6rem;
	color: var(--arem-red);
	opacity: 0;
	flex-shrink: 0;
	transition: opacity var(--arem-transition);
}
.arem-mega-link:hover,
.arem-mega-link.active {
	background: var(--arem-red-light);
	color: var(--arem-red);
	padding-left: 0.9rem;
}
.arem-mega-link:hover::before,
.arem-mega-link.active::before { opacity: 1; }

/* ══════════════════════════════════════════
   IMAGEN AL FINAL DEL MENÚ — tamaño fijo
   Aplica en TODAS las páginas del sitio.
   Los !important neutralizan cualquier override
   de WooCommerce, Elementor u otros plugins.
══════════════════════════════════════════ */
#arem-header .arem-nav-image-wrap,
#arem-header .arem-nav-image-wrap * {
	box-sizing: border-box;
}
#arem-header .arem-nav-image-wrap {
	display:       flex !important;
	align-items:   center !important;
	align-self:    center !important;
	flex-shrink:   0 !important;
	margin-left:   10px !important;
	padding:       4px 10px !important;
	border:        1px solid rgba(11,30,53,.12) !important;
	border-radius: 6px !important;
	background:    #f8f9fa !important;
	overflow:      hidden;
}
#arem-header .arem-nav-image-wrap .arem-nav-image-img {
	display:    block !important;
	height:     60px !important;
	width:      auto !important;
	min-width:  unset !important;
	max-width:  220px !important;
	min-height: unset !important;
	max-height: 60px !important;
	object-fit: contain !important;
	flex:       none !important;
}

/* ══════════════════════════════════════════
   NAVBAR MOBILE (< 992px)
══════════════════════════════════════════ */
@media (max-width: 991.98px) {
	/* Altura compacta del navbar en móvil */
	.arem-navbar,
	.arem-navbar > .container,
	.arem-navbar > .container-fluid {
		min-height: 68px;
	}

	/* Colapso del menú — fondo navy para contraste */
	.arem-navbar .navbar-collapse {
		background: var(--arem-navy);
		border-top: 1px solid rgba(255,255,255,0.1);
		padding: 0.75rem 0 1rem;
		margin-top: 0.25rem;
	}
	/* Nav links en mobile → blancos sobre navy */
	.arem-navbar .nav-link {
		color: rgba(255, 255, 255, 0.9) !important;
		padding: 0.65rem 1rem;
		border-radius: 0;
		text-transform: none;
		font-size: 0.9rem;
		letter-spacing: 0;
	}
	.arem-navbar .nav-link::after { display: none; }
	.arem-navbar .nav-link:hover {
		color: #fff !important;
		background: var(--arem-red) !important;
	}
	.arem-btn-cta {
		margin: 0.75rem 1rem;
		display: inline-block;
	}
	/* Logo en mobile: compacto */
	.arem-brand {
		border-right: none;
		padding: 0.35rem 0.5rem 0.35rem 0;
	}
	.arem-brand::after { display: none; }
	.arem-brand img,
	.arem-brand .custom-logo,
	img.custom-logo {
		height: 52px !important;
		max-height: 52px !important;
		max-width: 180px !important;
	}

	/* Mega menu apilado en mobile */
	.arem-mega-menu,
	.arem-mega-menu.show {
		position: static !important;
		width: 100% !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		border: none !important;
		background: rgba(255, 255, 255, 0.04);
		padding: 0 !important;
		animation: none !important;
	}
	.arem-mega-menu .container {
		padding: 0;
		max-width: 100%;
	}
	.arem-mega-row {
		flex-direction: column;
		padding: 0;
	}
	.arem-mega-col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		border-right: none !important;
		border-bottom: 1px solid rgba(255,255,255,0.08);
		padding: 0.75rem 1.25rem;
	}
	.arem-mega-col:last-child { border-bottom: none; }
	.arem-mega-col--orphans {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		min-width: unset;
	}
	.arem-orphan-links {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.arem-mega-col-title {
		color: var(--arem-gold-light);
		border-bottom-color: rgba(200, 144, 26, 0.3);
	}
	.arem-mega-col-title:hover { color: #fff; }
	.arem-mega-link { color: rgba(255, 255, 255, 0.8); }
	.arem-mega-link::before { color: var(--arem-gold); }
	.arem-mega-link:hover { background: rgba(255,255,255,0.07); color: #fff; }

	.arem-dropdown {
		background: transparent;
		box-shadow: none;
		padding: 0;
		border-top: none;
	}
	.arem-dropdown .dropdown-item {
		color: rgba(255, 255, 255, 0.82);
		padding: 0.55rem 1.5rem;
	}
	.arem-dropdown .dropdown-item::before { background: var(--arem-gold); }
	.arem-dropdown .dropdown-item:hover { background: rgba(255,255,255,0.07); color: #fff; }

	/* Imagen de menú en móvil */
	#arem-header .arem-nav-image-wrap {
		margin:           0.75rem 1rem !important;
		align-self:       flex-start !important;
		justify-content:  center !important;
	}
	#arem-header .arem-nav-image-wrap .arem-nav-image-img {
		height:     auto !important;
		max-height: 52px !important;
		width:      auto !important;
		max-width:  180px !important;
	}
}

/* ══════════════════════════════════════════
   ELEMENTOR HEADER — selectores de override
   Cuando Elementor Pro theme builder está
   activo, el header.php del tema no se usa.
   Estos selectores aplican el diseño AREM
   sobre cualquier estructura de Elementor.
══════════════════════════════════════════ */
/* Contenedor principal del header Elementor */
.elementor-location-header {
	border-bottom: 4px solid var(--arem-red);
	box-shadow: 0 2px 16px rgba(11, 30, 53, 0.12);
	position: sticky;
	top: 0;
	z-index: 1040;
	background: #fff;
}
.elementor-location-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--arem-red) 0%, var(--arem-gold) 45%, transparent 100%);
	z-index: 1;
}
/* Imagen de logo dentro de Elementor */
.elementor-location-header img.custom-logo,
.elementor-location-header .elementor-image img,
.elementor-location-header .site-logo img,
.elementor-location-header .navbar-brand img {
	height: calc(var(--arem-navbar-height) - 16px) !important;
	max-height: none !important;
	max-width: 440px !important;
	width: auto !important;
	object-fit: contain;
	filter: drop-shadow(0 1px 4px rgba(11, 30, 53, 0.15));
}
/* Nav links dentro de Elementor */
.elementor-location-header .elementor-nav-menu > li > a,
.elementor-location-header .elementor-nav-menu--main .elementor-item {
	color: var(--arem-navy) !important;
	font-weight: 700 !important;
	font-size: 0.78rem !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	transition: color var(--arem-transition), background var(--arem-transition) !important;
}
.elementor-location-header .elementor-nav-menu > li > a:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active {
	color: var(--arem-red) !important;
}
/* Caret / indicador de submenú */
.elementor-location-header .elementor-nav-menu .sub-arrow {
	color: var(--arem-red) !important;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.arem-footer {
	background: var(--arem-footer-bg);
	color: var(--arem-text-muted);
	font-size: 0.9rem;
}

.footer-main {
	padding: 5rem 0 3.5rem;
	border-bottom: 1px solid var(--arem-border);
}

/* Columna marca */
.footer-brand img {
	max-height: 52px;
	filter: brightness(0) invert(1);
	margin-bottom: 1rem;
}
.footer-site-name {
	display: block;
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 1rem;
}
.footer-description {
	color: var(--arem-text-muted);
	line-height: 1.75;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

/* Redes sociales footer */
.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--arem-radius);
	border: 1px solid var(--arem-border);
	color: var(--arem-text-muted);
	font-size: 0.95rem;
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition),
	            border-color var(--arem-transition);
}
.social-icon:hover {
	background: var(--arem-red);
	border-color: var(--arem-red);
	color: #fff;
}

/* Headings footer */
.footer-heading {
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
	position: relative;
	padding-bottom: 0.75rem;
}
.footer-heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: var(--arem-gold);
	border-radius: 2px;
}

/* Menús footer */
.footer-menu li { margin-bottom: 0.5rem; }
.footer-menu a {
	color: var(--arem-text-muted);
	text-decoration: none;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	transition: color var(--arem-transition), padding-left var(--arem-transition);
}
.footer-menu a::before {
	content: '\F285';
	font-family: 'bootstrap-icons';
	font-size: 0.6rem;
	color: var(--arem-gold);
	opacity: 0.5;
	flex-shrink: 0;
	transition: opacity var(--arem-transition);
}
.footer-menu a:hover {
	color: #fff;
	padding-left: 4px;
}
.footer-menu a:hover::before { opacity: 1; }

/* Contacto footer */
.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
	font-size: 0.875rem;
}
.footer-contact-item i {
	color: var(--arem-gold);
	font-size: 1rem;
	flex-shrink: 0;
	margin-top: 2px;
}
.footer-contact-item a {
	color: var(--arem-text-muted);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.footer-contact-item a:hover { color: #fff; }

/* Footer barra inferior */
.footer-bottom {
	background: var(--arem-footer-bottom);
	padding: 1.25rem 0;
	border-top: 1px solid rgba(200, 144, 26, 0.15);
}
.footer-copyright {
	color: var(--arem-text-muted);
	font-size: 0.8rem;
}
.footer-bottom-menu { font-size: 0.8rem; }
.footer-bottom-menu a {
	color: var(--arem-text-muted);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.footer-bottom-menu a:hover { color: var(--arem-gold-light); }

/* Widget overrides en footer */
.arem-footer .footer-widget .widget-title,
.arem-footer .footer-widget h4,
.arem-footer .footer-widget h5 {
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

/* ── Back to top ── */
.arem-back-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	border-radius: var(--arem-radius);
	background: var(--arem-red);
	color: #fff;
	border: none;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
	z-index: 999;
	box-shadow: 0 4px 16px rgba(196, 21, 21, 0.45);
}
.arem-back-top.visible {
	opacity: 1;
	transform: translateY(0);
}
.arem-back-top:hover { background: var(--arem-red-hover); }

/* ══════════════════════════════════════════
   SMART SLIDER 3 — integración hero
   ─────────────────────────────────────────
   CÓMO USAR: En Elementor, selecciona la
   SECCIÓN que contiene el slider →
   Avanzado → Clases CSS → escribir:
       arem-slider-full
   Esto elimina todos los padding/margin
   que Elementor añade por defecto.
══════════════════════════════════════════ */
.arem-hero-slider {
	position: relative;
	z-index: 1;
}

/* Sección Elementor sin espacios laterales */
.arem-slider-full,
.arem-slider-full.elementor-section {
	padding: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Container interno — quitar max-width y padding */
.arem-slider-full > .elementor-container {
	max-width: 100% !important;
	padding: 0 !important;
}

/* Fila y columnas internas */
.arem-slider-full .elementor-row      { margin: 0 !important; }
.arem-slider-full .elementor-column,
.arem-slider-full [class*="elementor-col-"] {
	padding: 0 !important;
}

/* Widget wrap y container — eliminar padding propio */
.arem-slider-full .elementor-widget-wrap      { padding: 0 !important; }
.arem-slider-full .elementor-widget-container { margin: 0 !important; padding: 0 !important; }

/* ── Elementor Flexbox Containers (versiones recientes) ── */
.arem-slider-full.e-con,
.arem-slider-full > .e-con-inner {
	padding: 0 !important;
	--padding-top:    0px !important;
	--padding-bottom: 0px !important;
	--padding-left:   0px !important;
	--padding-right:  0px !important;
	--margin-left:    0px !important;
	--margin-right:   0px !important;
}
.arem-slider-full .e-con {
	padding: 0 !important;
}

/* ── Smart Slider 3 — sin desbordamiento ── */
.n2-section-smartslider {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
}
.n2-ss-slider-wrapper,
.n2-ss-slider {
	width: 100% !important;
	max-width: 100% !important;
}

/* ══════════════════════════════════════════
   ÁREA DE CONTENIDO
══════════════════════════════════════════ */
#content,
#page,
.site-content {
	min-height: 60vh;
}

/* ── Tipografía global ── */
body {
	color: #1e293b;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.2;
	color: var(--arem-navy);
}
a {
	color: var(--arem-red);
	transition: color var(--arem-transition);
}
a:hover { color: var(--arem-red-hover); }

/* ── Área de contenido principal ── */
#content, #page, .site-content, main {
	min-height: 60vh;
	background: #fff;
}

/* ── Sección wrapper WordPress ── */
.elementor-section,
.e-con {
	--e-global-color-primary:   var(--arem-red)   !important;
	--e-global-color-secondary: var(--arem-navy)  !important;
	--e-global-color-accent:    var(--arem-gold)  !important;
}

/* ── Separador dorado corporativo ── */
.wp-block-separator,
hr {
	border: none;
	height: 2px;
	background: linear-gradient(to right, var(--arem-red), var(--arem-gold), transparent);
	opacity: 0.4;
	margin: 2rem 0;
}

/* ── Imágenes globales ── */
img { max-width: 100%; height: auto; }

/* ── Utilidades corporativas ── */
.text-arem-red    { color: var(--arem-red)   !important; }
.text-arem-gold   { color: var(--arem-gold)  !important; }
.text-arem-navy   { color: var(--arem-navy)  !important; }
.bg-arem-navy     { background-color: var(--arem-navy)  !important; }
.bg-arem-red      { background-color: var(--arem-red)   !important; }
.border-arem-gold { border-color: var(--arem-gold)      !important; }

/* Separador decorativo corporativo */
.arem-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.arem-divider::before,
.arem-divider::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(to right, var(--arem-red), transparent);
}
.arem-divider::after {
	background: linear-gradient(to left, var(--arem-gold), transparent);
}

/* ══════════════════════════════════════════
   PORTFOLIO ARCHIVE — /project/
══════════════════════════════════════════ */

/* Hero encabezado del archivo */
.arem-archive-hero {
	background: var(--arem-navy);
	padding: 3rem 0 2.5rem;
	border-bottom: 3px solid var(--arem-red);
}
.arem-archive-hero-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.arem-archive-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--arem-gold);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}
.arem-eyebrow-line {
	display: inline-block;
	width: 24px;
	height: 2px;
	background: var(--arem-gold);
}
.arem-archive-title {
	color: #fff;
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	line-height: 1.1;
}
.arem-archive-subtitle {
	color: var(--arem-text-muted);
	font-size: 0.875rem;
	margin: 0;
}

/* Breadcrumb (compartido archive + single) */
.arem-breadcrumb .breadcrumb {
	background: transparent;
	padding: 0;
	font-size: 0.8rem;
}
.arem-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--arem-text-muted); }
.arem-breadcrumb .breadcrumb-item a { color: var(--arem-gold); text-decoration: none; }
.arem-breadcrumb .breadcrumb-item a:hover { color: var(--arem-gold-light); }
.arem-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.6); }

/* Barra de filtros de categoría */
.arem-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid #eef0f3;
	margin-bottom: 2rem;
}
.arem-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 1rem;
	border-radius: 2rem;
	border: 1px solid #cbd5e1;
	font-size: 0.8rem;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition),
	            border-color var(--arem-transition);
}
.arem-filter-btn:hover {
	border-color: var(--arem-red);
	color: var(--arem-red);
	background: var(--arem-red-light);
}
.arem-filter-btn.active {
	background: var(--arem-red);
	border-color: var(--arem-red);
	color: #fff;
}
.arem-filter-count {
	background: rgba(255,255,255,0.25);
	border-radius: 20px;
	padding: 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.6;
}
.arem-filter-btn:not(.active) .arem-filter-count {
	background: #f1f5f9;
	color: #64748b;
}

/* Área de archivo */
.arem-portfolio-archive { padding: 3rem 0 5rem; }

/* ── Card de producto ── */
.arem-product-card {
	border-radius: var(--arem-radius);
	overflow: hidden;
	border: 1px solid #eef0f3;
	background: #fff;
	transition: box-shadow var(--arem-transition), transform var(--arem-transition);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.arem-product-card:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

/* Imagen */
.arem-product-img-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f4f6f8;
}
.arem-product-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}
.arem-product-card:hover .arem-product-img {
	transform: scale(1.05);
}
.arem-product-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--arem-navy-mid), var(--arem-navy-light));
}
.arem-product-img-placeholder i {
	font-size: 3rem;
	color: rgba(255,255,255,0.2);
}
.arem-product-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 30, 53, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.arem-product-card:hover .arem-product-overlay { opacity: 1; }
.arem-product-overlay-btn {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 2px solid rgba(255,255,255,0.6);
	padding: 0.5rem 1rem;
	border-radius: var(--arem-radius);
	transform: translateY(8px);
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.arem-product-card:hover .arem-product-overlay-btn {
	transform: translateY(0);
	border-color: #fff;
}
.arem-product-overlay-btn i { font-size: 1.15rem; }

/* Info del producto */
.arem-product-info {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.arem-product-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 0.6rem;
}
.arem-cat-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--arem-red);
	background: var(--arem-red-light);
	padding: 2px 8px;
	border-radius: 3px;
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition);
}
.arem-cat-badge:hover {
	background: var(--arem-red);
	color: #fff;
}
.arem-cat-badge--light {
	background: rgba(255,255,255,0.15);
	color: #fff;
}
.arem-cat-badge--light:hover {
	background: var(--arem-red);
	color: #fff;
}
.arem-product-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}
.arem-product-title a {
	color: var(--arem-navy);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.arem-product-title a:hover { color: var(--arem-red); }
.arem-product-excerpt {
	font-size: 0.845rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 0.75rem;
	flex: 1;
}
.arem-product-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--arem-red);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: auto;
	transition: gap var(--arem-transition);
}
.arem-product-link:hover { gap: 0.6rem; color: var(--arem-red-hover); }

/* Vacío */
.arem-portfolio-empty {
	text-align: center;
	padding: 5rem 0;
	color: #94a3b8;
}
.arem-portfolio-empty i {
	font-size: 3rem;
	margin-bottom: 1rem;
	display: block;
}

/* Paginación */
.arem-pagination {
	display: flex;
	justify-content: center;
	margin-top: 3rem;
	gap: 0.35rem;
}
.arem-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--arem-radius);
	border: 1px solid #cbd5e1;
	color: var(--arem-navy);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background var(--arem-transition), color var(--arem-transition),
	            border-color var(--arem-transition);
}
.arem-pagination .page-numbers:hover,
.arem-pagination .page-numbers.current {
	background: var(--arem-red);
	border-color: var(--arem-red);
	color: #fff;
}

/* ══════════════════════════════════════════
   PORTFOLIO SINGLE — /project/{slug}/
══════════════════════════════════════════ */

/* Hero section */
.arem-single-hero {
	position: relative;
	background: var(--arem-navy);
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	padding-bottom: 0;
	overflow: hidden;
}
.arem-single-hero.has-thumb {
	min-height: 400px;
}
.arem-single-hero.has-thumb::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--hero-bg);
	background-size: cover;
	background-position: center;
	opacity: 0.75;
	z-index: 0;
}
.arem-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(11,30,53,0.15), rgba(11,30,53,0.55));
	z-index: 1;
}
.arem-single-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 3rem;
	padding-bottom: 2.5rem;
}
.arem-single-hero-text { padding-top: 1rem; }
.arem-single-title {
	color: #fff;
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.15;
}

/* Main content area */
.arem-single-portfolio { padding: 3.5rem 0 5rem; }

/* Featured image with lightbox */
.arem-single-thumb-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
}
.arem-single-thumb {
	width: 100%;
	height: auto;
	display: block;
}
.arem-lightbox-trigger { display: block; position: relative; }
.arem-lightbox-icon {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(11,30,53,0.8);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	opacity: 0;
	transition: opacity var(--arem-transition);
}
.arem-lightbox-trigger:hover .arem-lightbox-icon { opacity: 1; }

.arem-single-excerpt {
	font-size: 1rem;
	font-weight: 500;
	color: var(--arem-navy);
	line-height: 1.7;
	border-left: 3px solid var(--arem-red);
	padding-left: 1.25rem;
	margin-bottom: 1.5rem;
}
.arem-single-content { line-height: 1.8; color: #374151; }
.arem-single-content h2,
.arem-single-content h3 { color: var(--arem-navy); margin-top: 1.5rem; }

/* Prev/Next nav */
.arem-single-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid #eef0f3;
	flex-wrap: wrap;
}
.arem-single-nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--arem-navy);
	font-weight: 600;
	font-size: 0.875rem;
	max-width: 48%;
	transition: color var(--arem-transition);
}
.arem-single-nav-link:hover { color: var(--arem-red); }
.arem-single-nav-link small {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--arem-text-muted);
	margin-bottom: 2px;
}
.arem-single-nav-link--next { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.arem-single-nav-link i { font-size: 1.25rem; flex-shrink: 0; color: var(--arem-red); }

/* Sidebar */
.arem-sidebar-back {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--arem-navy);
	color: #fff;
	border-radius: var(--arem-radius);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1.5rem;
	transition: background var(--arem-transition);
}
.arem-sidebar-back:hover { background: var(--arem-red); color: #fff; }
.arem-sidebar-back i { font-size: 1rem; }

.arem-sidebar-card {
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: var(--arem-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}
.arem-sidebar-title {
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--arem-navy);
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--arem-gold);
}

/* Sidebar categories */
.arem-sidebar-cats li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
}
.arem-sidebar-cats li:last-child { border-bottom: none; }
.arem-sidebar-cats a {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: #374151;
	text-decoration: none;
	font-size: 0.875rem;
	transition: color var(--arem-transition);
}
.arem-sidebar-cats a i { color: var(--arem-red); font-size: 0.65rem; }
.arem-sidebar-cats a:hover { color: var(--arem-red); }
.arem-sidebar-cats span {
	background: #f1f5f9;
	color: #64748b;
	font-size: 0.72rem;
	padding: 1px 7px;
	border-radius: 20px;
}

/* Related products */
.arem-related-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
}
.arem-related-item:last-child { border-bottom: none; }
.arem-related-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: calc(var(--arem-radius) - 1px);
	overflow: hidden;
	display: block;
}
.arem-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arem-related-title {
	font-size: 0.845rem;
	font-weight: 600;
	color: var(--arem-navy);
	text-decoration: none;
	line-height: 1.3;
	transition: color var(--arem-transition);
}
.arem-related-title:hover { color: var(--arem-red); }

/* Sidebar CTA */
.arem-sidebar-cta {
	background: var(--arem-navy);
	border-radius: var(--arem-radius);
	padding: 1.5rem;
	text-align: center;
	color: #fff;
}
.arem-sidebar-cta i {
	font-size: 2rem;
	color: var(--arem-gold);
	margin-bottom: 0.75rem;
	display: block;
}
.arem-sidebar-cta h4 {
	font-size: 0.95rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: #fff;
}
.arem-sidebar-cta p {
	font-size: 0.8rem;
	color: var(--arem-text-muted);
	margin-bottom: 1rem;
	line-height: 1.5;
}
.arem-sidebar-cta .arem-btn-cta { justify-content: center; display: flex; }

/* ══════════════════════════════════════════
   PORTFOLIO CAROUSEL — shortcode Elementor
   [arem_portfolio_carousel]
══════════════════════════════════════════ */

/* Wrapper general */
.arem-catalog-wrap {
	position: relative;
	overflow: visible; /* dejar que Swiper maneje su propio recorte */
}

/* Heading opcional del bloque */
.arem-catalog-heading {
	text-align: center;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 300;
	color: var(--arem-navy);
	letter-spacing: -0.01em;
	margin-bottom: 2rem;
}

/* ── Splide container ── */
.arem-portfolio-splide {
	padding-bottom: 2.5rem;
}
.arem-portfolio-splide .splide__list {
	align-items: stretch;
}

/* ── Tarjeta de producto ── */
.arem-catalog-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow var(--arem-transition), transform var(--arem-transition);
}
.arem-catalog-card:hover {
	box-shadow: 0 10px 36px rgba(11, 30, 53, 0.14);
	transform: translateY(-3px);
	color: inherit;
	text-decoration: none;
}

/* Imagen — aspect ratio 1:1 */
.arem-catalog-img-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f0f4f8;
	flex-shrink: 0;
}
.arem-catalog-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.42s ease;
}
.arem-catalog-card:hover .arem-catalog-img-wrap img {
	transform: scale(1.06);
}

/* Placeholder sin imagen */
.arem-catalog-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--arem-navy-mid), var(--arem-navy-light));
}
.arem-catalog-placeholder i {
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.18);
}

/* Overlay en hover */
.arem-catalog-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 30, 53, 0.52);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 12px;
}
.arem-catalog-card:hover .arem-catalog-overlay { opacity: 1; }
.arem-catalog-overlay-icon {
	color: #fff;
	font-size: 2.25rem;
	transform: scale(0.7);
	transition: transform 0.3s ease;
}
.arem-catalog-card:hover .arem-catalog-overlay-icon { transform: scale(1); }

/* Cuerpo de texto bajo la imagen */
.arem-catalog-card-body {
	padding: 0.75rem 0.25rem 0.5rem;
	flex: 1;
}
.arem-catalog-cat {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--arem-red);
	margin-bottom: 0.2rem;
}
.arem-catalog-card-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
	margin: 0;
	transition: color var(--arem-transition);
}
.arem-catalog-card:hover .arem-catalog-card-title { color: var(--arem-red); }

/* ── Splide paginación (bullets) ── */
.arem-portfolio-splide .splide__pagination,
.arem-brand-splide .splide__pagination {
	bottom: -1.75rem;
}
.arem-portfolio-splide .splide__pagination__page,
.arem-brand-splide .splide__pagination__page {
	width: 8px;
	height: 8px;
	background: rgba(11, 30, 53, 0.25);
	border: none;
	opacity: 1;
	margin: 0 3px;
	transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
	transform: none !important;
}
.arem-portfolio-splide .splide__pagination__page.is-active,
.arem-brand-splide .splide__pagination__page.is-active {
	background: var(--arem-red);
	width: 24px;
	border-radius: 4px;
}

/* ── Splide flechas prev / next ── */
.arem-portfolio-splide .splide__arrow,
.arem-brand-splide .splide__arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 14px rgba(11, 30, 53, 0.14);
	opacity: 1;
	top: 38%;
	transition: background var(--arem-transition), box-shadow var(--arem-transition);
}
.arem-portfolio-splide .splide__arrow svg,
.arem-brand-splide .splide__arrow svg {
	fill: var(--arem-navy);
	width: 14px;
	height: 14px;
	transition: fill var(--arem-transition);
}
.arem-portfolio-splide .splide__arrow:hover,
.arem-brand-splide .splide__arrow:hover {
	background: var(--arem-red);
	box-shadow: 0 4px 18px rgba(196, 21, 21, 0.3);
}
.arem-portfolio-splide .splide__arrow:hover svg,
.arem-brand-splide .splide__arrow:hover svg {
	fill: #fff;
}

/* Ocultar flechas en mobile */
@media (max-width: 575.98px) {
	.arem-portfolio-splide .splide__arrow,
	.arem-brand-splide .splide__arrow { display: none !important; }
}

/* ══════════════════════════════════════════
   Arem Brand Slider
   ══════════════════════════════════════════ */

.arem-brand-slider-wrap {
	position: relative;
	overflow: visible;
}

.arem-brand-slider-heading {
	text-align: center;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 300;
	color: var(--arem-navy);
	letter-spacing: -0.01em;
	margin-bottom: 2rem;
}

/* Splide container */
.arem-brand-splide {
	padding-bottom: 2.5rem;
}

/* Tarjeta de logo */
.arem-brand-card {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--arem-border-dark);
	border-radius: var(--arem-radius);
	padding: 1rem 0.75rem;
	height: 180px;
	text-decoration: none !important;
	transition: box-shadow var(--arem-transition), border-color var(--arem-transition);
}

.arem-brand-card:hover {
	box-shadow: 0 4px 20px rgba(11, 30, 53, 0.10);
	border-color: rgba(11, 30, 53, 0.20);
}

/* Logo */
.arem-brand-card img {
	max-height: 130px;
	max-width: 85%;
	width: auto;
	object-fit: contain;
	filter: none;
	opacity: 1;
	transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Modo grayscale opcional */
.arem-brand-slider-wrap[data-grayscale="yes"] .arem-brand-card img {
	filter: grayscale(100%);
	opacity: 0.65;
}

.arem-brand-slider-wrap[data-grayscale="yes"] .arem-brand-card:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

/* Paginación — gestionada por Splide */

/* Mobile: reducir altura de card */
@media (max-width: 575.98px) {
	.arem-brand-card {
		height: 130px;
		padding: 0.75rem 0.5rem;
	}

	.arem-brand-card img {
		max-height: 90px;
	}
}

/* ══════════════════════════════════════════
   PAGE / POST — Layout singular (sin Elementor)
   Imagen destacada hero · Sidebar · Contenido
══════════════════════════════════════════ */

/* ── Hero imagen destacada ── */
.arem-page-hero {
	position: relative;
	overflow: hidden;
	max-height: 480px;
}
.arem-page-hero-fig {
	display: block;
	margin: 0;
	line-height: 0;
}
.arem-page-hero-img {
	width: 100%;
	height: 480px;
	object-fit: cover;
	display: block;
}
.arem-page-hero-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(11, 30, 53, 0.1) 0%,
		rgba(11, 30, 53, 0.65) 100%
	);
}
.arem-page-hero-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2.5rem 0;
}
.arem-page-hero-title {
	color: #fff;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 800;
	margin: 0;
	line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Sin imagen destacada → título encima del contenido */
.arem-page-header { padding-top: 1rem; }
.arem-page-title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 800;
	color: var(--arem-navy);
	margin: 0;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--arem-red);
}

/* Meta (fecha + categoría) */
.arem-page-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.8rem;
	margin-bottom: 0.75rem;
}
.arem-page-date {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
}
.arem-page-header .arem-page-date {
	color: var(--arem-text-muted);
}
.arem-page-cat-badge {
	display: inline-block;
	background: var(--arem-red);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 10px;
	border-radius: 3px;
	text-decoration: none;
	transition: background var(--arem-transition);
}
.arem-page-cat-badge:hover { background: var(--arem-red-hover); color: #fff; }
.arem-page-header .arem-page-cat-badge {
	background: var(--arem-red-light);
	color: var(--arem-red);
}
.arem-page-header .arem-page-cat-badge:hover {
	background: var(--arem-red);
	color: #fff;
}

/* ── Área principal ── */
.arem-page-main { background: #fff; }
.arem-page-container { padding-top: 3rem; padding-bottom: 4rem; }

/* ── Contenido WordPress ── */
.arem-page-content {
	font-size: 1rem;
	line-height: 1.8;
	color: #374151;
}
.arem-page-content h1,
.arem-page-content h2,
.arem-page-content h3,
.arem-page-content h4 {
	color: var(--arem-navy);
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}
.arem-page-content h2 { font-size: 1.5rem; }
.arem-page-content h3 { font-size: 1.2rem; }
.arem-page-content p  { margin-bottom: 1.25rem; }
.arem-page-content a  { color: var(--arem-red); }
.arem-page-content a:hover { color: var(--arem-red-hover); }
.arem-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--arem-radius);
	margin: 1rem 0;
}
.arem-page-content ul,
.arem-page-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}
.arem-page-content li { margin-bottom: 0.4rem; }
.arem-page-content blockquote {
	border-left: 4px solid var(--arem-red);
	padding: 0.75rem 1.25rem;
	margin: 1.5rem 0;
	color: #64748b;
	font-style: italic;
	background: #fafafa;
	border-radius: 0 var(--arem-radius) var(--arem-radius) 0;
}
.arem-page-content pre {
	background: var(--arem-navy);
	color: #e2e8f0;
	padding: 1.25rem;
	border-radius: var(--arem-radius);
	overflow-x: auto;
	font-size: 0.875rem;
}
.arem-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}
.arem-page-content table th {
	background: var(--arem-navy);
	color: #fff;
	padding: 0.65rem 1rem;
	text-align: left;
	font-weight: 600;
}
.arem-page-content table td {
	padding: 0.6rem 1rem;
	border-bottom: 1px solid #eef0f3;
}
.arem-page-content table tr:nth-child(even) td { background: #f8fafc; }

/* Etiquetas */
.arem-page-tags {
	font-size: 0.85rem;
	color: #64748b;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-radius: var(--arem-radius);
	border: 1px solid #eef0f3;
}
.arem-page-tags a {
	color: var(--arem-navy);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.arem-page-tags a:hover { color: var(--arem-red); }

/* ── Sidebar ── */
.arem-page-sidebar-col { position: relative; }
.arem-page-sidebar {
	position: sticky;
	top: calc(var(--arem-navbar-height) + 1.5rem);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Widget genérico */
.arem-sidebar-widget {
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: var(--arem-radius);
	padding: 1.25rem 1.25rem 1.5rem;
}
.arem-sidebar-widget-title {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--arem-navy);
	margin: 0 0 1.1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid var(--arem-gold);
}

/* Reset estilos de widgets de WordPress en el sidebar */
.arem-sidebar-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.arem-sidebar-widget ul li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
}
.arem-sidebar-widget ul li:last-child { border-bottom: none; }
.arem-sidebar-widget ul li a {
	color: #374151;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	transition: color var(--arem-transition), padding-left var(--arem-transition);
}
.arem-sidebar-widget ul li a::before {
	content: '\F285';
	font-family: 'bootstrap-icons';
	font-size: 0.55rem;
	color: var(--arem-red);
	opacity: 0.6;
	flex-shrink: 0;
}
.arem-sidebar-widget ul li a:hover {
	color: var(--arem-red);
	padding-left: 4px;
}
.arem-sidebar-widget p { font-size: 0.875rem; color: #64748b; line-height: 1.6; }
.arem-sidebar-widget input[type="text"],
.arem-sidebar-widget input[type="search"] {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: var(--arem-radius);
	font-size: 0.875rem;
}

/* Mobile: sidebar baja debajo del contenido */
@media (max-width: 991.98px) {
	.arem-page-hero { max-height: 300px; }
	.arem-page-hero-img { height: 300px; }
	.arem-page-hero-title { font-size: 1.4rem; }
	.arem-page-container { padding-top: 2rem; padding-bottom: 3rem; }
	.arem-page-sidebar { position: static; }
}
@media (max-width: 575.98px) {
	.arem-page-hero { max-height: 220px; }
	.arem-page-hero-img { height: 220px; }
}

/* ══════════════════════════════════════════
   SECCIÓN RELACIONADOS — Portfolio & Blog
   Aparece debajo del contenido individual
══════════════════════════════════════════ */
.arem-related-section {
	padding: 3.5rem 0 4.5rem;
	background: #f8fafc;
	border-top: 1px solid #eef0f3;
}
.arem-related-heading {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--arem-navy);
	margin-bottom: 2rem;
}
.arem-related-accent {
	display: inline-block;
	width: 4px;
	height: 1.4em;
	background: var(--arem-red);
	border-radius: 2px;
	flex-shrink: 0;
}

/* Lista horizontal (style=list) */
.arem-related-list-full {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.arem-related-list-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: var(--arem-radius);
	transition: box-shadow var(--arem-transition);
}
.arem-related-list-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.arem-related-list-thumb {
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	border-radius: calc(var(--arem-radius) - 1px);
	overflow: hidden;
	display: block;
}
.arem-related-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arem-related-list-body { flex: 1; min-width: 0; }
.arem-related-list-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--arem-navy);
	text-decoration: none;
	margin: 0.2rem 0 0.4rem;
	line-height: 1.35;
	transition: color var(--arem-transition);
}
.arem-related-list-title:hover { color: var(--arem-red); }
.arem-related-list-excerpt { font-size: 0.845rem; color: #64748b; margin: 0; line-height: 1.5; }

/* ══════════════════════════════════════════
   BLOG ARCHIVE — grid y lista de entradas
══════════════════════════════════════════ */
.arem-blog-archive-main { background: #fff; }
.arem-blog-archive-container { min-height: 50vh; }

/* Tarjeta grid */
.arem-blog-card {
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: var(--arem-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--arem-transition), transform var(--arem-transition);
}
.arem-blog-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
	transform: translateY(-3px);
}
.arem-blog-card-img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f0f4f8;
}
.arem-blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.arem-blog-card:hover .arem-blog-card-img { transform: scale(1.04); }

.arem-blog-card-body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.arem-blog-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 0.78rem;
	margin-bottom: 0.6rem;
}
.arem-blog-card-date {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--arem-text-muted);
}
.arem-blog-card-cat {
	display: inline-block;
	background: var(--arem-red-light);
	color: var(--arem-red);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 3px;
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition);
}
.arem-blog-card-cat:hover { background: var(--arem-red); color: #fff; }

.arem-blog-card-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.6rem;
}
.arem-blog-card-title a {
	color: var(--arem-navy);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.arem-blog-card-title a:hover { color: var(--arem-red); }

.arem-blog-card-excerpt {
	font-size: 0.845rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 1rem;
	flex: 1;
}
.arem-blog-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--arem-red);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: auto;
	transition: gap var(--arem-transition);
}
.arem-blog-card-link:hover { gap: 0.6rem; color: var(--arem-red-hover); }

/* Lista horizontal del blog */
.arem-blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.arem-blog-list-item {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #eef0f3;
}
.arem-blog-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.arem-blog-list-thumb {
	flex-shrink: 0;
	width: 200px;
	height: 130px;
	border-radius: var(--arem-radius);
	overflow: hidden;
	display: block;
}
.arem-blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arem-blog-list-body { flex: 1; }
.arem-blog-list-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0.4rem 0 0.5rem;
	line-height: 1.3;
}
.arem-blog-list-title a {
	color: var(--arem-navy);
	text-decoration: none;
	transition: color var(--arem-transition);
}
.arem-blog-list-title a:hover { color: var(--arem-red); }
.arem-blog-list-excerpt { font-size: 0.875rem; color: #64748b; line-height: 1.65; margin: 0 0 0.75rem; }

@media (max-width: 767.98px) {
	.arem-blog-list-item { flex-direction: column; gap: 1rem; }
	.arem-blog-list-thumb { width: 100%; height: 200px; }
}

/* ══════════════════════════════════════════
   PRODUCTS GRID — [arem_products_grid]
══════════════════════════════════════════ */

/* Wrapper */
.arem-products-grid-wrap { width: 100%; }

/* Título opcional */
.arem-pg-title {
	font-size: clamp(1.3rem, 2.5vw, 1.9rem);
	font-weight: 700;
	color: var(--arem-navy);
	margin-bottom: 1.5rem;
	text-align: center;
}

/* ── Barra de filtro ── */
.arem-pg-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid #eef0f3;
}

.arem-pg-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 1.1rem;
	border-radius: 2rem;
	border: 1.5px solid #cbd5e1;
	background: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
	line-height: 1;
}
.arem-pg-filter-btn:hover {
	border-color: var(--arem-red);
	color: var(--arem-red);
	background: var(--arem-red-light);
}
.arem-pg-filter-btn.active {
	background: var(--arem-red);
	border-color: var(--arem-red);
	color: #fff;
	box-shadow: 0 3px 10px rgba(196,21,21,.25);
}
.arem-pg-filter-btn:focus-visible { outline: 2px solid var(--arem-red); outline-offset: 2px; }

/* Contador de items en botón */
.arem-pg-count {
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.5;
	padding: 0 6px;
	border-radius: 20px;
	background: rgba(255,255,255,0.2);
}
.arem-pg-filter-btn:not(.active) .arem-pg-count {
	background: #f1f5f9;
	color: #64748b;
}

/* ── Items del grid ── */
.arem-pg-item { transition: opacity 0.2s ease; }
.arem-pg-item.arem-pg-hidden { display: none !important; }

/* ── Sin resultados ── */
.arem-pg-no-results {
	text-align: center;
	padding: 3rem 0;
	color: #94a3b8;
	font-size: 0.9rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}
.arem-pg-no-results i {
	font-size: 2.5rem;
	opacity: 0.4;
}

/* ── Vacío (no hay posts en DB) ── */
.arem-pg-empty {
	color: #94a3b8;
	text-align: center;
	padding: 2.5rem;
	font-size: 0.9rem;
}

/* ── Badges sobre imagen (Oferta / Agotado) ── */
.arem-pg-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 2rem;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.arem-pg-badge--sale  { background: var(--arem-red); color: #fff; }
.arem-pg-badge--stock { background: #64748b; color: #fff; }

/* ── Precio WooCommerce ── */
.arem-pg-price {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--arem-navy);
	line-height: 1.2;
}
.arem-pg-price .woocommerce-Price-amount { color: var(--arem-red); }
.arem-pg-price del { color: #94a3b8; font-weight: 400; font-size: 0.8rem; margin-right: 4px; }
.arem-pg-price ins { text-decoration: none; }

/* ── Botón añadir al carrito ── */
.arem-pg-cart {
	padding: 0 0.75rem 0.75rem;
}
.arem-pg-cart .button,
.arem-pg-cart .add_to_cart_button {
	display: block;
	width: 100%;
	padding: 0.5rem;
	background: var(--arem-navy);
	color: #fff;
	border: none;
	border-radius: 0 0 var(--arem-radius) var(--arem-radius);
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background var(--arem-transition);
}
.arem-pg-cart .button:hover,
.arem-pg-cart .add_to_cart_button:hover {
	background: var(--arem-red);
	color: #fff;
}

/* ── Extracto en card ── */
.arem-catalog-card-excerpt {
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0.35rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ══════════════════════════════════════════
   WOOCOMMERCE — SINGLE PRODUCT
   Hero · Galería Splide · Info · Botones
══════════════════════════════════════════ */

/* ── Hero ── */
.arem-woo-hero {
	background: linear-gradient(135deg, var(--arem-navy-deep) 0%, var(--arem-navy-light) 100%);
	border-bottom: 3px solid var(--arem-red);
	padding: 2.25rem 0 2rem;
}
.arem-woo-hero-inner {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.arem-woo-breadcrumb .breadcrumb {
	background: none;
	padding: 0;
	margin: 0;
	font-size: 0.8rem;
	flex-wrap: wrap;
}
.arem-woo-breadcrumb .breadcrumb-item,
.arem-woo-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.6); }
.arem-woo-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.arem-woo-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }
.arem-woo-breadcrumb .breadcrumb-item a:hover { color: var(--arem-gold-light); }

.arem-woo-hero-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.arem-woo-cat-badge {
	display: inline-block;
	background: rgba(196,21,21,0.18);
	color: #ffb3b3;
	border: 1px solid rgba(196,21,21,0.4);
	border-radius: 2rem;
	padding: 2px 12px;
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: background var(--arem-transition), color var(--arem-transition);
}
.arem-woo-cat-badge:hover { background: var(--arem-red); color: #fff; }

.arem-woo-hero-title {
	font-size: clamp(1.4rem, 3.5vw, 2.1rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ── Galería ── */
.arem-woo-gallery { position: relative; }

/* Slider principal */
.arem-woo-main-splide .splide__track {
	border-radius: 12px;
	overflow: hidden;
	background: #f0f4f8;
	border: 1px solid #e2e8f0;
}
.arem-woo-main-splide .splide__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	min-height: 340px;
}
.arem-woo-main-splide .splide__slide img {
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	display: block;
}

/* Link de imagen (lightbox) */
.arem-woo-img-link {
	position: relative;
	display: block;
	width: 100%;
}
.arem-woo-zoom-icon {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(11,30,53,0.7);
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.arem-woo-img-link:hover .arem-woo-zoom-icon { opacity: 1; }

/* Flechas del slider */
.arem-woo-arrows { pointer-events: none; }
.arem-woo-arrow {
	pointer-events: all;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--arem-navy) !important;
	border: none;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	transition: background var(--arem-transition), transform 0.2s ease;
	z-index: 10;
}
.arem-woo-arrow:hover { background: var(--arem-red) !important; }
.arem-woo-arrow.splide__arrow--prev { left: -16px; }
.arem-woo-arrow.splide__arrow--next { right: -16px; }
/* Ocultar SVG default de Splide, mostramos el <i> */
.arem-woo-arrow svg { display: none; }

/* Miniaturas */
.arem-woo-thumb-splide {
	margin-top: 10px;
}
.arem-woo-thumb-splide .splide__slide {
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	opacity: 0.55;
	cursor: pointer;
	transition: opacity 0.18s ease, border-color 0.18s ease;
}
.arem-woo-thumb-splide .splide__slide.is-active,
.arem-woo-thumb-splide .splide__slide:hover {
	opacity: 1;
	border-color: var(--arem-red);
}
.arem-woo-thumb-splide .splide__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Sin imagen */
.arem-woo-no-image {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 320px;
	background: #f1f5f9;
	border-radius: 12px;
	color: #cbd5e1;
	font-size: 3rem;
	gap: 0.75rem;
}
.arem-woo-no-image span { font-size: 0.875rem; color: #94a3b8; }

/* ── Info del producto ── */
.arem-woo-info { position: sticky; top: 100px; }

.arem-woo-info-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--arem-navy);
	line-height: 1.2;
	margin-bottom: 1rem;
}

.arem-woo-divider {
	width: 48px;
	height: 4px;
	background: var(--arem-red);
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

/* Descripción corta (tabla WooCommerce) */
.arem-woo-short-desc {
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
	color: #334155;
	line-height: 1.7;
}
.arem-woo-short-desc table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.arem-woo-short-desc table caption {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--arem-navy);
	text-align: left;
	caption-side: top;
	padding: 0.6rem 0.9rem;
	background: var(--arem-navy);
	color: #fff;
	border-radius: 8px 8px 0 0;
}
.arem-woo-short-desc table th,
.arem-woo-short-desc table td {
	padding: 0.55rem 0.9rem;
	border: 1px solid #e2e8f0;
	vertical-align: top;
	line-height: 1.5;
}
.arem-woo-short-desc table th,
.arem-woo-short-desc table tr td:first-child {
	background: #f8fafc;
	color: var(--arem-navy);
	font-weight: 600;
	width: 42%;
}
.arem-woo-short-desc table tr:nth-child(even) td:last-child { background: #fafbfc; }
.arem-woo-short-desc table tr:hover td { background: #eef3fb; }

/* Toggle descripción completa */
.arem-woo-full-desc { margin-bottom: 1.25rem; }
.arem-woo-desc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0.45rem 1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--arem-navy);
	cursor: pointer;
	transition: border-color 0.18s, color 0.18s;
}
.arem-woo-desc-toggle:hover { border-color: var(--arem-red); color: var(--arem-red); }
.arem-woo-desc-chevron { transition: transform 0.25s ease; }
.arem-woo-desc-body {
	margin-top: 0.75rem;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: #475569;
}

/* Meta: categoría, SKU */
.arem-woo-meta-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 0.9rem 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 3px solid var(--arem-red);
}
.arem-woo-meta-row {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.82rem;
	line-height: 1.5;
}
.arem-woo-meta-label {
	font-weight: 700;
	color: var(--arem-navy);
	white-space: nowrap;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.arem-woo-meta-label i { color: var(--arem-red); }
.arem-woo-meta-val { color: #475569; }
.arem-woo-meta-val a { color: var(--arem-navy); text-decoration: none; font-weight: 600; }
.arem-woo-meta-val a:hover { color: var(--arem-red); }

/* ── Botones de acción ── */
.arem-woo-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.arem-woo-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.85rem 1.5rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background var(--arem-transition), transform 0.15s ease, box-shadow 0.15s ease;
	letter-spacing: 0.02em;
}
.arem-woo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

.arem-woo-btn--whatsapp {
	background: #25D366;
	color: #fff;
	font-size: 1rem;
}
.arem-woo-btn--whatsapp:hover { background: #1ebe5d; color: #fff; }

.arem-woo-btn--cotizar {
	background: var(--arem-red);
	color: #fff;
}
.arem-woo-btn--cotizar:hover { background: var(--arem-red-hover); color: #fff; }

/* ── Compartir ── */
.arem-woo-share {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eef0f3;
}
.arem-woo-share-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.arem-woo-share-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	background: #f1f5f9;
	color: var(--arem-navy);
	text-decoration: none;
	transition: background var(--arem-transition), color var(--arem-transition);
}
.arem-woo-share-btn:hover { background: var(--arem-navy); color: #fff; }

/* ── Sección título compartido ── */
.arem-woo-section-title {
	font-size: clamp(1.25rem, 2.5vw, 1.6rem);
	font-weight: 800;
	color: var(--arem-navy);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}
.arem-woo-section-accent {
	display: inline-block;
	width: 5px;
	height: 1.4em;
	background: var(--arem-red);
	border-radius: 3px;
	flex-shrink: 0;
}

/* ── Sección descripción completa ── */
.arem-woo-desc-section {
	background: #f8fafc;
	border-top: 1px solid #eef0f3;
	padding: 3.5rem 0;
}
.arem-woo-desc-content {
	font-size: 0.925rem;
	color: #334155;
	line-height: 1.75;
}
.arem-woo-desc-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.875rem;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.arem-woo-desc-content table caption {
	caption-side: top;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
	background: var(--arem-navy);
	text-align: left;
	padding: 0.65rem 1rem;
}
.arem-woo-desc-content table th,
.arem-woo-desc-content table td {
	padding: 0.6rem 1rem;
	border: 1px solid #e2e8f0;
	vertical-align: top;
	line-height: 1.5;
}
.arem-woo-desc-content table th,
.arem-woo-desc-content table tr td:first-child {
	background: #eef3fb;
	color: var(--arem-navy);
	font-weight: 600;
}
.arem-woo-desc-content table tr:nth-child(even) td:last-child { background: #fafbfc; }
.arem-woo-desc-content table tr:hover td { background: #e8f0fb; transition: background 0.15s; }
.arem-woo-desc-content p { margin-bottom: 0.75rem; }
.arem-woo-desc-content h3,
.arem-woo-desc-content h4 {
	font-weight: 700;
	color: var(--arem-navy);
	margin: 1.25rem 0 0.5rem;
}
.arem-woo-desc-content ul,
.arem-woo-desc-content ol {
	padding-left: 1.4rem;
	margin-bottom: 0.75rem;
}

/* ── Sección productos relacionados ── */
.arem-woo-related-section {
	padding: 3.5rem 0 4rem;
	border-top: 1px solid #eef0f3;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
	.arem-woo-info { position: static; }
	.arem-woo-hero-title { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
	.arem-woo-hero { padding: 1.5rem 0; }
	.arem-woo-arrow.splide__arrow--prev { left: 4px; }
	.arem-woo-arrow.splide__arrow--next { right: 4px; }
	.arem-woo-desc-content table { font-size: 0.8rem; }
	.arem-woo-desc-content table th,
	.arem-woo-desc-content table td { padding: 0.45rem 0.6rem; }
}

/* ══════════════════════════════════════════
   ELEMENTOR — IDs de utilidad
   Aplicar en Avanzado → ID CSS del contenedor/sección
══════════════════════════════════════════ */

/*
 * Previene scroll horizontal causado por los breakouts de ancho completo.
 * Se aplica una sola vez globalmente.
 */
.elementor-page { overflow-x: hidden; }

/*
 * #arem-full-width
 * Rompe el contenedor padre y ocupa el 100% del viewport.
 * Técnica: position relative + left 50% + translateX(-50%) + width 100vw.
 * Funciona tanto en secciones clásicas como en contenedores Flexbox/Grid.
 *
 * Uso → Elementor → Avanzado → ID CSS: arem-full-width
 */
#arem-full-width {
	position: relative !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: 100vw !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	/* Variables CSS de Elementor Flexbox */
	--padding-left:        0px !important;
	--padding-right:       0px !important;
	--content-max-width:   100vw !important;
}
/* El inner wrapper de contenedores Flexbox */
#arem-full-width.e-con > .e-con-inner {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
/* El inner wrapper de secciones clásicas */
#arem-full-width.elementor-section > .elementor-container {
	max-width: none !important;
	width: 100% !important;
}

/*
 * #arem-no-padding
 * Elimina SOLO el padding interno sin alterar el ancho.
 *
 * Uso → Elementor → Avanzado → ID CSS: arem-no-padding
 */
#arem-no-padding,
#arem-no-padding.e-con,
#arem-no-padding.e-con > .e-con-inner,
#arem-no-padding.elementor-section > .elementor-container,
#arem-no-padding > .elementor-widget-wrap {
	padding-left:  0 !important;
	padding-right: 0 !important;
	--padding-left:  0px !important;
	--padding-right: 0px !important;
}

/*
 * #arem-no-gap
 * Elimina el gap/espaciado entre columnas internas.
 *
 * Uso → Elementor → Avanzado → ID CSS: arem-no-gap
 */
#arem-no-gap.e-con,
#arem-no-gap.e-con > .e-con-inner,
#arem-no-gap.elementor-section > .elementor-container {
	--gap:          0px !important;
	--grid-row-gap: 0px !important;
	--grid-col-gap: 0px !important;
	column-gap:     0 !important;
	row-gap:        0 !important;
}

/* ══════════════════════════════════════════
   Shortcode [arem_blog_grid]
   ══════════════════════════════════════════ */
.arem-bg-wrap { margin: 0; }

.arem-bg-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--arem-navy);
	margin-bottom: 1.5rem;
	text-align: center;
}

/* Filtros */
.arem-bg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}
.arem-bg-filter-btn {
	padding: .4rem 1.1rem;
	border: 1px solid #dde3ea;
	border-radius: 4px;
	background: #fff;
	color: var(--arem-navy);
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.4;
	transition: background .2s, color .2s, border-color .2s;
}
.arem-bg-filter-btn:hover {
	border-color: var(--arem-red);
	color: var(--arem-red);
}
.arem-bg-filter-btn.active {
	background: var(--arem-navy);
	border-color: var(--arem-navy);
	color: #fff;
}

/* Grid */
.arem-bg-grid {
	display: grid;
	gap: 1.25rem;
}
.arem-bg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.arem-bg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.arem-bg-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjeta */
.arem-bg-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	background: #fff;
	transition: box-shadow .3s ease, transform .3s ease;
	height: 100%;
}
.arem-bg-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
	transform: translateY(-3px);
	color: inherit;
	text-decoration: none;
}

/* Imagen — cover para blog (imágenes panorámicas) */
.arem-bg-img-wrap {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f1f5f9;
}
.arem-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.arem-bg-card:hover .arem-bg-img { transform: scale(1.06); }
.arem-bg-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	font-size: 2.5rem;
	background: #f8fafc;
}

/* Cuerpo */
.arem-bg-body {
	padding: 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	flex: 1;
}
.arem-bg-date {
	font-size: .75rem;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: .3rem;
}
.arem-bg-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--arem-navy);
	line-height: 1.4;
	transition: color .2s;
}
.arem-bg-card:hover .arem-bg-title { color: var(--arem-red); }
.arem-bg-excerpt {
	margin: 0;
	font-size: .83rem;
	color: #64748b;
	line-height: 1.55;
	flex: 1;
}
.arem-bg-read-more {
	font-size: .82rem;
	font-weight: 600;
	color: var(--arem-red);
	margin-top: auto;
}

/* Responsive */
@media (max-width: 767.98px) {
	.arem-bg-cols-3,
	.arem-bg-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
	.arem-bg-cols-2,
	.arem-bg-cols-3,
	.arem-bg-cols-4 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   Shortcode [arem_portfolio_grid]
   ══════════════════════════════════════════ */
.arem-pg-wrap { margin: 0; }

.arem-pg-heading {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--arem-navy);
	margin-bottom: 1.5rem;
	text-align: center;
}

/* ── Filtros ── */
.arem-pg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}
.arem-pg-filter-btn {
	padding: .4rem 1.1rem;
	border: 1px solid #dde3ea;
	border-radius: 4px;
	background: #fff;
	color: var(--arem-navy);
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.4;
	transition: background .2s, color .2s, border-color .2s;
}
.arem-pg-filter-btn:hover {
	border-color: var(--arem-red);
	color: var(--arem-red);
}
.arem-pg-filter-btn.active {
	background: var(--arem-navy);
	border-color: var(--arem-navy);
	color: #fff;
}

/* ── Grid ── */
.arem-pg-grid {
	display: grid;
	gap: 1.25rem;
}
.arem-pg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.arem-pg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.arem-pg-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Tarjeta ── */
.arem-pg-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	background: #fff;
	transition: box-shadow .3s ease, transform .3s ease;
}
.arem-pg-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
	transform: translateY(-3px);
	color: inherit;
	text-decoration: none;
}

/* ── Imagen — se muestra completa, sin recorte ── */
.arem-pg-img-wrap {
	overflow: hidden;          /* contiene el zoom sin salirse */
	aspect-ratio: 4 / 3;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
}
.arem-pg-img {
	width: 100%;
	height: 100%;
	object-fit: contain;       /* imagen completa, sin cortes */
	display: block;
	padding: .5rem;
	transition: transform .4s ease;
}
.arem-pg-card:hover .arem-pg-img {
	transform: scale(1.08);    /* zoom dentro del contenedor */
}
.arem-pg-no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	font-size: 2.5rem;
}

/* ── Pie de tarjeta ── */
.arem-pg-body {
	padding: .85rem 1rem;
	border-top: 2px solid var(--arem-red);
	flex: 1;
}
.arem-pg-title {
	margin: 0;
	font-size: .92rem;
	font-weight: 600;
	color: var(--arem-navy);
	line-height: 1.4;
	transition: color .2s;
}
.arem-pg-card:hover .arem-pg-title { color: var(--arem-red); }

/* ── Responsive ── */
@media (max-width: 767.98px) {
	.arem-pg-cols-3,
	.arem-pg-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
	.arem-pg-cols-2,
	.arem-pg-cols-3,
	.arem-pg-cols-4 { grid-template-columns: 1fr; }
}
