/* ==========================================================================
   Catorce Electrodomésticos — ajustes de marca sobre Pivot
   Color primario de marca: #e2001a · Gris oscuro: #2b2b2b
   ========================================================================== */

:root {
	--catorce-red: #e2001a;
	--catorce-dark: #2b2b2b;
}

/* --- Navegación: barra fija y en flujo (sin solapar contenido) ----------- */
.top-bar {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.nav-container {
	position: relative;
	z-index: 1000;
}

/* Logotipo de imagen (Apariencia > Personalizar > Identidad del sitio) */
.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.custom-logo {
	width: auto;
	height: auto;
	max-height: 46px;
	max-width: 100%;
}

@media (max-width: 767px) {
	.custom-logo {
		max-height: 38px;
	}
}

/* Logotipo de texto (cuando no se ha subido un logo en Apariencia > Logo) */
.catorce-wordmark {
	display: inline-block;
	line-height: 1.02;
	font-family: 'Raleway', 'Open Sans', sans-serif;
	text-align: left;
}

.catorce-wordmark .wm-top {
	display: block;
	font-weight: 700;
	letter-spacing: 0.18em;
	font-size: 28px;
	color: var(--catorce-dark);
}

.catorce-wordmark .wm-bottom {
	display: block;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 16px;
	color: var(--catorce-red);
}

.catorce-logo {
	display: inline-block;
	text-decoration: none;
}

/* Menú de utilidades (teléfono / email / Facebook) */
.utility-menu .utility-inner span {
	margin-right: 20px;
	font-size: 12px;
	color: #777;
}

.utility-menu .utility-inner a {
	color: #777;
}

.utility-menu .utility-inner a:hover {
	color: var(--catorce-red);
}

.utility-menu .social-icons li a {
	color: #777;
}

/* Iconos sociales en SVG (WhatsApp): que escalen y se alineen como los de fuente */
.social-icons svg {
	width: 1em;
	height: 1em;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

/* Menú principal: una sola línea (las etiquetas largas hacían 2 líneas) */
.nav-menu .menu {
	margin-bottom: 0;
}

.nav-menu .menu > li {
	margin-right: 22px;
}

.nav-menu .menu > li > a {
	font-weight: 600;
	letter-spacing: 0.5px;
}

@media (min-width: 768px) and (max-width: 1199px) {
	.nav-menu .menu > li {
		margin-right: 14px;
	}
	.nav-menu .menu > li > a {
		font-size: 10px;
		letter-spacing: 0.2px;
	}
}

/* Centra verticalmente el logo con los items del menú (solo escritorio).
   Sin desplegables, el padding-bottom de "puente" de Pivot no hace falta. */
@media (min-width: 768px) {
	.nav-menu {
		display: flex;
		align-items: center;
		padding-top: 28px;
		padding-bottom: 28px;
	}
	/* El clearfix de Bootstrap no debe contar como item flex */
	.nav-menu::before,
	.nav-menu::after {
		display: none;
	}
	/* La columna del logo ocupa su ancho natural; el menú, el resto */
	.nav-menu .col-md-2 {
		width: auto;
		flex: 0 0 auto;
	}
	.nav-menu .col-md-10 {
		width: auto;
		flex: 1 1 auto;
	}
	.nav-menu .menu {
		top: 0;
	}
	.nav-menu .menu li a {
		padding-bottom: 0;
	}
}

/* Botones: hover en rojo más oscuro */
.btn:hover,
.btn-primary.btn-filled:hover {
	background-color: #b80015 !important;
	border-color: #b80015 !important;
	color: #fff !important;
}

/* --- Fondos de sección ---------------------------------------------------
   Pivot no define .bg-muted, así que varias secciones quedaban en blanco y
   se fundían en un solo bloque. Definimos los fondos y alternamos blanco/gris
   para separar visualmente cada sección de la portada. */
.bg-white {
	background-color: #ffffff !important;
}

.bg-muted,
.pure-text-centered {
	background-color: #eef1f4 !important;
}

/* --- Héroe de portada ---------------------------------------------------- */
.fullscreen-element h1 {
	font-size: 66px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.5px;
	margin-bottom: 22px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.fullscreen-element .lead {
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 34px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
	.fullscreen-element h1 {
		font-size: 52px;
	}
}

@media (max-width: 767px) {
	.fullscreen-element h1 {
		font-size: 38px;
	}
	.fullscreen-element .lead {
		font-size: 19px;
	}
}

/* --- Catálogo ------------------------------------------------------------ */
.projects-gallery h1,
.catalog-intro h1 {
	margin-bottom: 16px;
}

/* Separación entre la introducción, la rejilla y el pie de página */
.projects-gallery.catalog-intro {
	padding-bottom: 80px;
}

.projects-gallery .projects-wrapper {
	margin-top: 24px;
}

/* Rejilla del catálogo en CSS Grid: columnas siempre alineadas */
.projects-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.projects-container .project {
	width: auto;
	height: 340px;
	float: none;
	position: relative;
}

.projects-container .project.is-hidden {
	display: none;
}

@media (max-width: 991px) {
	.projects-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.projects-container {
		grid-template-columns: 1fr;
	}
	.projects-container .project {
		height: 280px;
	}
}

.projects-container .project .hover-state {
	background: rgba(43, 43, 43, 0.85);
}

.projects-container .project .hover-state h4 {
	margin-bottom: 6px;
}

.filters li {
	cursor: pointer;
}

/* --- Secciones de la portada -------------------------------------------- */
.section-heading {
	margin-bottom: 48px;
}

/* Bloques de "ventajas" con icono */
.feature .feature-icon-large i,
.feature .icon {
	color: var(--catorce-red);
}

/* El icono circular es display:block con ancho fijo: centrarlo con margin auto */
.feature-icon-large.text-center i {
	margin-left: auto;
	margin-right: auto;
}

/* Rejilla de marcas ("Nuestras marcas") */
.brands-grid {
	text-align: center;
}

.brands-grid .brand-item {
	margin-bottom: 32px;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brands-grid .brand-item img {
	max-height: 70px;
	width: auto;
	max-width: 100%;
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	opacity: 0.65;
	transition: all 0.3s ease;
}

.brands-grid .brand-item img:hover {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
	opacity: 1;
}

.brands-grid .brand-name {
	display: block;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--catorce-dark);
	font-size: 15px;
}

/* Tiendas */
.store-card {
	margin-bottom: 32px;
}

.store-card .store-map {
	position: relative;
	width: 100%;
	height: 240px;
	margin-bottom: 20px;
	border: 0;
	background: #f4f4f4;
}

/* Tienda única: mapa y datos en dos columnas */
.store-card-wide .store-map {
	height: 320px;
	margin-bottom: 0;
}

.store-card-wide .col-md-5 {
	padding-top: 8px;
}

@media (max-width: 991px) {
	.store-card-wide .store-map {
		margin-bottom: 24px;
	}
}

.store-card h4 {
	color: var(--catorce-red);
	margin-bottom: 12px;
}

.store-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.store-card ul li {
	margin-bottom: 8px;
	color: #777;
}

.store-card ul li i {
	color: var(--catorce-red);
	margin-right: 8px;
	width: 18px;
	text-align: center;
}

.store-card ul li a {
	color: #555;
}

/* --- Single producto ----------------------------------------------------- */
.product-single .product-meta {
	margin: 24px 0;
	padding: 16px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.product-single .product-meta .label-inline {
	font-family: 'Raleway', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 12px;
	color: #999;
	margin-right: 6px;
}

.product-single .product-image img {
	width: 100%;
	height: auto;
}

/* --- Detalles varios ----------------------------------------------------- */
/* Copyright y redes en columna, una debajo de otra */
footer.short .sub.text-white {
	display: block;
	margin-right: 0;
}

footer.short .social-icons {
	display: block;
	margin-top: 16px;
	margin-bottom: 0;
}

footer.short .social-icons li a {
	color: #fff;
}

/* Copyright legible (Pivot lo deja al 50% de opacidad) */
footer.short .sub {
	opacity: 1;
	color: rgba(255, 255, 255, 0.82);
}

footer.short .footer-menu {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
}

footer.short .footer-menu li {
	display: inline-block;
	margin-right: 16px;
}

footer.short .footer-menu li a {
	color: rgba(255, 255, 255, 0.7);
}

footer.short .powered-by {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
}

/* Rojo de marca aclarado para que contraste sobre el fondo oscuro del pie */
footer.short .powered-by a {
	color: #ff6b6b;
	font-weight: 600;
}

footer.short .powered-by a:hover {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.catorce-wordmark .wm-top {
		font-size: 22px;
	}
	.catorce-wordmark .wm-bottom {
		font-size: 13px;
	}
	.utility-menu .utility-inner span {
		display: block;
		margin-bottom: 4px;
	}
}
