/***********************************************************************
       ___         __                        __  _          
      /   | __  __/ /_____  ____ ___  ____  / /_(_)   _____ 
     / /| |/ / / / __/ __ \/ __ `__ \/ __ \/ __/ / | / / _ \
    / ___ / /_/ / /_/ /_/ / / / / / / /_/ / /_/ /| |/ /  __/
   /_/  |_\__,_/\__/\____/_/ /_/ /_/\____/\__/_/ |___/\___/   
      __          ________                 ____      _ __     
     / / __ __   /_  __/ / ___ __ _ ___   / __/__ __(_) /____ 
    / _ | // /    / / / _ | -_)  ' | -_) _\ \ / // / / __/ -_)
   /_.__|_, /    /_/ /_//_|__/_/_/_|__/ /___/ \_,_/_/\__/\__/ 
       /___/                                                                                     

   Theme Name:      Automotive Child Theme
   Description:     Finally a gorgeous website template for car dealerships that doesn’t just look beautiful, but also includes complete easy-to-use functionality. Whether your business is a small car dealer or a large fully functional car dealership, you are sure to find what you need in this automotive template.
   Theme URI:       http://demo.themesuite.com/automotive-wp/
   Version:         4.0
   Author:          Theme Suite
   Author URI:      http://www.themesuite.com/
   Support:         http://support.themesuite.com/
   License:         GNU GPL
   Tags:            white, light, one-column, two-columns, right-sidebar, fluid-layout, editor-style, featured-images, sticky-post, translation-ready
   License URI:     http://demo.themesuite.com/automotive-wp/License/
   Template:        automotive
   
   Place custom CSS below this line
***********************************************************************/

/* Etiquetas del bloque "Contacte con nosotros" más anchas para que quepa "WhatsApp:" (22-10-2026 MaJoGiRo) */
.footer-contact ul li strong {
	width: 95px;
}

/* Banner de cookies (Complianz) con el color de la web y sin las viñetas que la plantilla pone a las listas (23-10-2026 MaJoGiRo) */
.cmplz-cookiebanner .cmplz-links ul li,
.cmplz-cookiebanner .cmplz-links li {
	list-style: none;
}
body .cmplz-cookiebanner {
	--cmplz_button_accept_background_color: #c7081b;
	--cmplz_button_accept_border_color: #c7081b;
	--cmplz_hyperlink_color: #c7081b;
}

/* Stock en cuadrícula (24-10-2026 MaJoGiRo):
   - tarjetas de cada fila con la misma altura y "Ver detalles" siempre abajo;
   - en los vendidos no se muestra el precio, que era lo que dejaba hueco al botón, así que se reserva ese hueco;
   - sello "Vendido" centrado sobre la foto (la plantilla lo desplaza con un margen fijo). */
@media (min-width: 768px) {
	body .car_listings.boxed.row {
		display: flex;
		flex-wrap: wrap;
	}
	body .car_listings.boxed.row::before,
	body .car_listings.boxed.row::after {
		display: none;
	}
	body .car_listings.boxed.row > [class*="col-"] {
		display: flex;
		float: none;
	}
	body .car_listings.boxed.row > [class*="col-"] > div.inventory {
		width: 100%;
	}
	body .car_listings.boxed.row div.inventory > a.inventory {
		height: auto;
	}
}
@media (min-width: 768px) {
	body .boxed div.inventory:not(:has(.price)) .options-primary {
		margin-bottom: 45px;
	}
}
@media (max-width: 479px) {
	body .boxed div.inventory:not(:has(.price)) .options-primary {
		padding-bottom: 50px;
	}
}
body .boxed .inventory.car_sold .sold_text {
	left: 50%;
	margin-left: 0;
	transform: translateX(-50%) rotate(-20deg);
}
@media (max-width: 479px) {
	body .boxed .inventory.car_sold .sold_text {
		top: auto;
		bottom: auto;
		margin-top: -110px;
	}
}
@media (min-width: 480px) and (max-width: 767px) {
	/* Aquí la foto va a la izquierda de la ficha: el sello se centra sobre ella, no sobre la tarjeta */
	body .boxed .inventory.car_sold .sold_text {
		left: 112px;
	}
}

/* Botón de WhatsApp de cada vehículo (24-10-2026 MaJoGiRo): en la tarjeta del stock, abajo a la izquierda con el
   mismo aspecto que "Ver detalles" (ese hueco es el del botón de vídeo, que no se usa); en la ficha, en la barra de botones */
div.inventory a.view-whatsapp {
	position: absolute;
	left: 11px;
	bottom: 10px;
	z-index: 5;
	height: 26px;
	padding: 4px 9px 2px;
	border: 1px solid #dcdcdc;
	border-radius: 5px;
	background-color: #f9f9f9;
	color: #3a3a3a;
	font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-decoration: none;
	text-shadow: 1px 1px 0 #ffffff;
}
div.inventory a.view-whatsapp:hover {
	background-color: #ececec;
}
div.inventory a.view-whatsapp i {
	margin-right: 4px;
	color: #25d366;
	font-size: 14px;
	text-shadow: none;
}
.content-nav ul li.whatsapp:before {
	content: "\f232";
	font-family: "Font Awesome 5 Brands";
	font-weight: 400;
	color: #25d366;
	font-size: 14px;
}
/* En la vista de listado la esquina inferior izquierda es la foto: el botón va junto a "Ver detalles" */
.car_listings:not(.boxed) div.inventory a.view-whatsapp {
	left: auto;
	right: 128px;
}

/* Ficha de un vehículo vendido en el móvil: el sello "Vendido" de la cabecera se superponía al título (24-10-2026 MaJoGiRo) */
@media (max-width: 767px) {
	body .inventory-heading .sold_text {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		display: inline-block;
		margin: 15px 0 10px 10px;
		font-size: 28px;
		line-height: 38px;
	}
}

/* Botones flotantes de WhatsApp y llamar (24-10-2026 MaJoGiRo): abajo a la derecha, el de llamar solo en móvil.
   La flecha de "volver arriba" de la plantilla, que ocupaba esa esquina, sube por encima de ellos. */
.floating-contact {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: flex;
	gap: 12px;
}
.floating-contact a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 30px;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}
.floating-contact a:hover,
.floating-contact a:focus {
	color: #ffffff;
	transform: scale(1.08);
}
.floating-contact .floating-contact-whatsapp {
	background-color: #25d366;
	font-size: 34px;
}
.floating-contact .floating-contact-call {
	background-color: #c7081b;
	font-size: 24px;
}
body .back_to_top {
	right: 29px;
	bottom: 92px;
}
@media (min-width: 768px) {
	.floating-contact .floating-contact-call {
		display: none;
	}
}

/* Enlace "Gestionar cookies" del menú del pie: es un botón (lo exige Complianz) con aspecto de enlace del pie
   24-10-2026 MaJoGiRo */
body .copyright-wrap .f-nav li button.cmplz-manage-consent{display:inline;vertical-align:baseline;background:none;border:0;padding:0;margin:0;font:inherit;line-height:inherit;color:rgba(153,153,153,1);cursor:pointer;text-transform:inherit}
body .copyright-wrap .f-nav li button.cmplz-manage-consent:hover,
body .copyright-wrap .f-nav li button.cmplz-manage-consent:focus{background:none;color:rgba(99,99,99,1)}
/* En móvil los botones flotantes tapan el final del pie: se deja hueco debajo de sus enlaces */
@media (max-width:767px){body .copyright-wrap{padding-bottom:90px}}
