/*	
	Theme Name: Motors - Child Theme
	Theme URI: http://motors.stylemixthemes.com/
	Author: StylemixThemes
	Author URI: http://stylemixthemes.com/
	Description: Motors Child theme
	Version: 4.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Tags: blue, red, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, fluid-layout, responsive-layout, flexible-header, custom-background, custom-colors, custom-header, custom-menu, editor-style, sticky-post, theme-options
	Text Domain: motors-child
    Template: motors

    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Add your own styles here */

/* Header más compacto - aplica a todos los headers */
.listing-menu {
    display: flex !important;
    align-items: center !important;
}

.listing-menu > li {
    margin-right: 0 !important;
    letter-spacing: -0.3px !important;
}

.listing-menu > li > a {
    padding: 4px 2px !important;
    margin: 0 !important;
}

/* Top bar共通 */
#top-bar .top-bar-wrapper {
    padding: 6px 0 4px !important;
}

/* Header listing */
.header-listing {
    padding: 12px 0 10px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    height: 100px !important;
    max-height: 100px !important;
    min-height: 100px !important;
}

.header-listing::after {
    display: none !important;
}

#header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    height: 100px !important;
    max-height: 100px !important;
}

#header > *:last-child {
    margin-bottom: 0 !important;
}

#header .header-listing {
    height: 100px !important;
    max-height: 100px !important;
}

body #header {
    height: 100px !important;
    line-height: 100px !important;
}

body #header .container {
    min-height: 100px !important;
    height: 100px !important;
    max-height: 100px !important;
}

.header-listing.stm-fixed {
    padding: 8px 0 5px !important;
}

.header-listing .listing-logo-main {
    margin-top: 0 !important;
}

.header-listing .listing-logo-main.artemis-header-logos,
.header-main .logo-main.artemis-header-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.header-listing .artemis-leapmotor-header-logo img,
.header-main .artemis-leapmotor-header-logo img {
    max-width: 120px;
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.header-listing .listing-logo-main .bloglogo img {
    max-height: 56px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
}

.artemis-footer-logo img {
    max-height: 72px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.header-listing .listing-right-actions {
    display: flex !important;
    align-items: center !important;
}

.header-listing .listing-service-right {
    display: flex !important;
    align-items: center !important;
}

/* Footer sin línea blanca */
#footer {
    margin: 0 !important;
    padding: 0 !important;
}

#footer-main {
    margin: 0 !important;
    padding: 40px 0 !important;
}

#footer-copyright {
    margin: 0 !important;
}

.artemis-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.artemis-footer-dealer a {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.artemis-footer-dealer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.artemis-footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin: 0;
    font-size: inherit;
}

.artemis-footer-legal a {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.artemis-footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.artemis-footer-copy {
    color: #fff;
    opacity: 0.92;
}

.artemis-footer-legal-sep {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    user-select: none;
}

@media (max-width: 991px) {
    .artemis-footer-bar {
        font-size: 0.8rem;
    }
}

body #main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#wrapper > div:last-of-type {
    margin-bottom: 0 !important;
}

/* Eliminar línea blanca antes del footer */
.elementor-page-3229 .elementor-section:last-of-type {
    margin-bottom: 0 !important;
}

#page-wrapper {
    margin-bottom: 0 !important;
}

#wrapper {
    margin-bottom: 0 !important;
}

body {
    margin-bottom: 0 !important;
}

html body footer#footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Eliminar gap entre último componente y footer */
#page-wrapper > *:last-child {
    margin-bottom: 0 !important;
}

.elementor-page #main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.elementor-page #wrapper {
    margin-bottom: 0 !important;
}

/* Eliminar padding del widget wrapper en sección postventa */
#dd211cc .elementor-widget-wrap {
    padding: 0 !important;
}

#dd211cc .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ocultar menú desktop en móvil - mostrar menú hamburguesa */
@media (max-width: 991px) {
    .listing-menu {
        display: none !important;
    }

    .listing-menu-mobile-wrapper {
        display: block !important;
    }
}

/* Botón hamburguesa azul oscuro */
.stm-layout-header-aircrafts .listing-menu-mobile-wrapper .stm-menu-trigger span,
.stm-layout-header-aircrafts #header .header-listing.stm-fixed .listing-menu-mobile-wrapper .stm-menu-trigger span {
    background-color: #142e5d !important;
}

/* Ocultar topbar en móvil y reducir espacio del header */
@media (max-width: 991px) {
    #top-bar {
        display: none !important;
    }

    .header-listing {
        padding: 8px 0 !important;
    }

    .listing-menu-mobile-wrapper {
        top: 0 !important;
    }

    .header-inner-content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* Peugeot Showcase */
.peugeot-showcase {
    background: #ffffff;
    padding: 40px 20px 100px;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.peugeot-showcase__header {
    text-align: center;
    margin-bottom: 60px;
}

.peugeot-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #003189;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.peugeot-showcase__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #001e40;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.peugeot-showcase__subtitle {
    font-size: 1rem;
    color: #5a6a7a;
    margin: 0;
    font-weight: 400;
}

.peugeot-showcase__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #003189, #0072ce);
    border-radius: 2px;
    margin: 24px auto 0;
}

.peugeot-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #ddd;
    max-width: 1400px;
    margin: 0 auto;
}

.peugeot-item {
    position: relative;
    text-align: center;
    padding: 20px;
    background: #fff;
    transition: background 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.peugeot-item::before,
.peugeot-item::after {
    display: none !important;
}

.peugeot-item:hover {
    background-color: #f8f9fc;
}

.peugeot-item > a {
    outline: none !important;
    text-decoration: none !important;
    display: block;
}

.peugeot-item > a:focus {
    outline: none !important;
}

.peugeot-item__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.peugeot-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.peugeot-item__image--primary {
    z-index: 2;
}

.peugeot-item__image--hover {
    z-index: 1;
    opacity: 0;
}

.peugeot-item:hover .peugeot-item__image--hover {
    z-index: 3;
    opacity: 1;
}

.peugeot-item:hover .peugeot-item__image--primary {
    z-index: 1;
    opacity: 0;
}

.peugeot-item__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #001e40;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.peugeot-item__price {
    font-size: 1rem;
    font-weight: 600;
    color: #003189;
    margin: 0;
}

.peugeot-item__cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #003189;
    padding: 8px 20px;
    border: 1.5px solid #003189;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.peugeot-item:hover .peugeot-item__cta {
    background: #003189;
    color: #fff;
}

@media (max-width: 1100px) {
    .peugeot-showcase__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .peugeot-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .peugeot-showcase__grid {
        grid-template-columns: 1fr;
        gap: 0;
        background: transparent;
    }
}