/*
 * Refresco visual. Se carga después de style.css y template-colors.css.
 * Para volver al diseño anterior, quitar el <link> en layout.blade.php.
 * Los colores de marca siguen saliendo de la configuración del sitio (--botones, --botones-hover).
 */
:root{
	--mr-radio: 14px;
	--mr-radio-chico: 10px;
	--mr-tinta: #16181b;
	--mr-texto: #4b5158;
	--mr-borde: #e7e9ec;
	--mr-fondo: #f5f6f7;
	--mr-sombra: 0 1px 2px rgba(16,24,40,.05), 0 6px 20px rgba(16,24,40,.06);
	--mr-sombra-alta: 0 16px 40px rgba(16,24,40,.14);
	--mr-ease: cubic-bezier(.2,.7,.2,1);
}

/*==== BASE ====*/
body{
	color: var(--mr-texto);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6{
	color: var(--mr-tinta);
}
/* conservar el color heredado sobre fondos oscuros */
.text-white :is(h1,h2,h3,h4,h5,h6),
:is(h1,h2,h3,h4,h5,h6).text-white,
.bg-oscuro :is(h1,h2,h3,h4,h5,h6){
	color: #fff;
}
.titulo{
	color: var(--mr-tinta);
	letter-spacing: -.015em;
	line-height: 1.15;
	text-wrap: balance;
}
.subtitulo{
	letter-spacing: .08em;
}
.bg-oscuro .subtitulo{
	display: inline-block;
	font-size: .8rem;
	font-weight: 600;
	padding: .3rem .9rem;
	margin-bottom: .9rem!important;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 50rem;
}
.linea-color{
	height: 3px;
	width: 36px;
	border-radius: 3px;
}

/*==== BOTONES ====*/
.btn{
	border-radius: 50rem;
	padding: .75rem 1.5rem;
	font-weight: 500;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--mr-ease), box-shadow .2s;
}
.btn-color{
	font-size: .85rem;
	letter-spacing: .06em;
}
.btn-color:hover{
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(16,24,40,.18);
}
.btn-outline-color:hover{
	border-color: var(--botones);
}
.img-link .btn{
	font-size: .85rem;
	letter-spacing: .04em;
}

/*==== FORMULARIOS ====*/
.form-control,
.form-select{
	border-radius: var(--mr-radio-chico);
	border-color: var(--mr-borde);
}
.form-control:focus,
.form-select:focus{
	border-color: var(--botones);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--botones) 22%, transparent);
}
.input-group > .input-group-text{
	border-radius: var(--mr-radio-chico) 0 0 var(--mr-radio-chico);
	border-color: var(--mr-borde);
	background-color: var(--mr-fondo);
}
.input-group > .form-floating:not(:first-child) > .form-control{
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
input[type=file].form-control{
	padding: .55rem .6rem;
}
input[type=file].form-control::file-selector-button{
	border-radius: 6px;
	margin-right: .75rem;
}

/*==== NAVEGACIÓN ====*/
#navbar{
	background-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
#navbar.navbar-shrink{
	background-image: none;
	background-color: rgba(14,15,17,.88);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 8px 28px rgba(0,0,0,.22);
	padding-top: .6rem!important;
	padding-bottom: .6rem!important;
}
#navbar .nav-item .nav-link{
	font-size: .85rem;
	font-weight: 500;
	letter-spacing: .04em;
	position: relative;
}
@media (min-width: 992px){
	#navbar .nav-item .nav-link::after{
		content: "";
		position: absolute;
		left: .7rem;
		right: .7rem;
		bottom: 0;
		height: 2px;
		border-radius: 2px;
		background-color: var(--botones);
		transform: scaleX(0);
		transition: transform .25s var(--mr-ease);
	}
	#navbar .nav-item .nav-link:is(:hover,:focus-visible,.active)::after{
		transform: scaleX(1);
	}
}
@media (max-width: 991.98px){
	#navbar.navbar-shrink{
		/* un backdrop-filter aquí encerraría el menú lateral dentro de la barra */
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background-color: rgba(14,15,17,.96);
	}
	#navbar .nav-item{
		width: 100%;
	}
	#navbar .nav-item .nav-link{
		text-align: left;
		padding: .8rem .25rem;
		border-bottom: 1px solid rgba(255,255,255,.08);
	}
}

/*==== SLIDER INICIO ====*/
.carousel-item{
	max-height: 860px;
}
.carousel-gradient{
	background:
		linear-gradient(90deg, rgba(10,11,13,.75) 0%, rgba(10,11,13,.25) 55%, rgba(10,11,13,0) 100%),
		linear-gradient(to bottom, rgba(17,17,17,0) 60%, #111 100%);
}
.titulo-slide{
	letter-spacing: -.02em;
}
.carousel-caption .texto-slide{
	font-size: 1.1rem;
	max-width: 34rem;
}
.carousel-caption .btn{
	padding: .9rem 2rem;
}
.carousel-indicators button{
	height: 5px!important;
	width: 34px!important;
	border-radius: 5px;
}
.carousel-control-prev,
.carousel-control-next{
	width: 7%;
}

/*==== CATEGORÍAS INICIO ====*/
#categorias.owl-carousel .owl-item{
	padding: 0 .5rem;
}
#categorias.owl-carousel figure{
	border-radius: var(--mr-radio);
	overflow: hidden;
	aspect-ratio: 4/5;
}
#categorias.owl-carousel figure img{
	aspect-ratio: 4/5;
	transition: transform .6s var(--mr-ease);
}
#categorias.owl-carousel figure:hover img{
	transform: scale(1.06);
}
#categorias.owl-carousel figure .sobre-categoria{
	padding: 1.25rem;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.88));
}
#categorias.owl-carousel figure .linea-color{
	transition: width .3s var(--mr-ease);
}
#categorias.owl-carousel figure:hover .linea-color{
	width: 72px;
}

/*==== BLOQUES CON IMAGEN ====*/
article .row > figure > img.w-100,
article .row > [class*="col-"] > img.img-fluid{
	border-radius: var(--mr-radio);
	box-shadow: var(--mr-sombra);
}
.img-link{
	border-radius: var(--mr-radio);
	box-shadow: var(--mr-sombra);
	transition: transform .3s var(--mr-ease), box-shadow .3s;
}
.img-link:hover{
	transform: translateY(-4px);
	box-shadow: var(--mr-sombra-alta);
}
.img-link .img-link-texto{
	padding: 2rem;
}
.img-link.equipos .img-link-texto{
	background-color: transparent;
	background-image: linear-gradient(20deg, rgba(76,96,20,.94) 10%, rgba(132,175,55,.55));
}
.img-link.servicios .img-link-texto{
	background-color: transparent;
	background-image: linear-gradient(20deg, rgba(14,15,17,.94) 10%, rgba(50,54,60,.55));
}
.img-link.equipos:hover .img-link-texto,
.img-link.servicios:hover .img-link-texto{
	background-color: transparent;
}

/*==== NOTICIAS ====*/
.noticia-inicio{
	border: 1px solid var(--mr-borde);
	border-radius: var(--mr-radio)!important;
	box-shadow: var(--mr-sombra)!important;
	z-index: 1;
	transition: transform .3s var(--mr-ease), box-shadow .3s;
}
.noticia-inicio:hover{
	transform: translateY(-3px);
	box-shadow: var(--mr-sombra-alta)!important;
}
.noticia-inicio img{
	border-radius: var(--mr-radio-chico);
}
.noticia-inicio .noticia-titulo{
	color: var(--mr-tinta);
	font-size: 1.1rem;
	line-height: 1.35;
}

/*==== BANNER DE SECCIÓN ====*/
.banner-seccion .titulo-slide{
	border-bottom: 0;
	position: relative;
	padding-bottom: 1rem;
}
.banner-seccion .titulo-slide::after{
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background-color: var(--botones);
}

/*==== EQUIPOS / SERVICIOS ====*/
.productos .card,
.card.shadow,
.card.border-0.shadow{
	border-radius: var(--mr-radio);
	overflow: hidden;
}
.productos .card{
	border-color: var(--mr-borde);
	box-shadow: var(--mr-sombra);
	transition: transform .3s var(--mr-ease), box-shadow .3s;
}
.productos .card:hover{
	transform: translateY(-5px);
	box-shadow: var(--mr-sombra-alta);
}
.productos .card > a{
	overflow: hidden;
}
.productos .card img{
	transition: transform .6s var(--mr-ease);
}
.productos .card:hover img{
	transform: scale(1.05);
}
.productos .card .card-body{
	padding: 1.1rem 1.1rem .5rem!important;
}
.productos .card .card-body .titulo-producto{
	color: var(--mr-tinta);
	font-size: .95rem;
	line-height: 1.35;
	-webkit-line-clamp: 3;
}
.productos .card .card-footer{
	padding: .75rem 1.1rem 1.1rem!important;
}
.productos .card:hover .btn-color{
	background-color: var(--botones-hover);
	border-color: var(--botones-hover);
}

/* Filtro de categorías */
.border-start.border-success{
	border-left: 3px solid var(--botones)!important;
}
#categoriasProd .accordion-item,
#accordionFlushExample .accordion-item{
	border: 0;
	margin-bottom: 2px;
}
#categoriasProd .accordion-header :is(.accordion-button,.link-categorias),
#accordionFlushExample .accordion-header :is(.accordion-button,.link-categorias){
	display: flex;
	width: 100%;
	font-size: .85rem;
	padding: .75rem .9rem!important;
	border-radius: var(--mr-radio-chico);
	box-shadow: none;
	transition: background-color .2s, color .2s;
}
#categoriasProd .accordion-header :is(.accordion-button,.link-categorias):hover,
#accordionFlushExample .accordion-header :is(.accordion-button,.link-categorias):hover,
#categoriasProd .accordion-button:not(.collapsed){
	background-color: var(--mr-fondo);
	color: var(--mr-tinta);
}

/* Fichas y galerías */
#lightgallery img,
.galerias figure,
.galerias-img ul li a img{
	border-radius: var(--mr-radio-chico);
}
.galerias figure{
	overflow: hidden;
}

#preguntas.accordion-flush .accordion-item{
	border: 1px solid var(--mr-borde);
	border-radius: var(--mr-radio-chico);
	margin-bottom: .75rem;
	overflow: hidden;
}

/*==== CONTACTO ====*/
.mapa iframe{
	display: block;
}

/*==== PIE ====*/
footer{
	border-top: 1px solid var(--mr-borde);
}
footer h6{
	font-size: .78rem;
	letter-spacing: .1em;
}
footer ul a{
	transition: color .2s;
}
footer ul li a:hover{
	color: var(--botones)!important;
}
footer .social-foot a{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: .4rem;
	padding: 0!important;
	border: 1px solid var(--mr-borde);
	border-radius: 50%;
	background-color: #fff;
	text-decoration: none;
}
footer .social-foot a:hover{
	background-color: var(--botones);
	border-color: var(--botones);
	color: #fff;
}

/*==== WHATSAPP ====*/
.whatsapp{
	width: 58px;
	height: 58px;
	bottom: 20px;
	right: 20px;
	padding: 0;
	align-items: center;
	text-decoration: none;
	animation: none;
	transition: transform .25s var(--mr-ease);
}
.whatsapp:hover{
	transform: scale(1.08);
}
.whatsapp i{
	font-size: 32px;
	line-height: 1;
}

@media (prefers-reduced-motion: reduce){
	*, *::before, *::after{
		transition-duration: .01ms!important;
	}
	.btn-color:hover,
	.img-link:hover,
	.noticia-inicio:hover,
	.productos .card:hover,
	.productos .card:hover img,
	#categorias.owl-carousel figure:hover img{
		transform: none;
	}
}

/* Botón de cotización escrito dentro de la descripción de cada equipo */
.texto a[href*="wa.me"][style]{
	border-radius: 50rem!important;
	padding: .75rem 1.5rem!important;
}

/* Las imágenes llevan width/height reales para reservar su espacio (CLS);
   :where() no suma especificidad, así cualquier regla de alto de la plantilla sigue mandando */
:where(img[width][height]) { height: auto; }
