/**
 * Hero mantenciones: panel unificado (badge, textos + buscador).
 */

.home-hero-banners .hero-mantenciones-search-wrap,
body.page-mantenciones-index .hero-section--mantenciones-search,
body.page-mantenciones-marca .hero-section--mantenciones-search {
    font-family: var(--font-sans);
}

/* Panel unificado */
.home-hero-banners .hero-mantenciones-panel,
body.page-mantenciones-index .hero-mantenciones-panel,
body.page-mantenciones-marca .hero-mantenciones-panel {
    width: 100%;
    max-width: min(680px, 100%);
    padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 16px;
    background: rgba(38, 38, 38, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: left;
}

.home-hero-banners .hero-mantenciones-panel__km-badge,
body.page-mantenciones-index .hero-mantenciones-panel__km-badge,
body.page-mantenciones-marca .hero-mantenciones-panel__km-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #e30613;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.home-hero-banners .hero-mantenciones-panel__km-badge i,
body.page-mantenciones-index .hero-mantenciones-panel__km-badge i,
body.page-mantenciones-marca .hero-mantenciones-panel__km-badge i {
    font-size: 0.75rem;
    opacity: 0.95;
}

.home-hero-banners .hero-mantenciones-panel__heading,
body.page-mantenciones-index .hero-mantenciones-panel__heading,
body.page-mantenciones-marca .hero-mantenciones-panel__heading {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: #ffffff;
}

.home-hero-banners .hero-mantenciones-panel__heading-line,
body.page-mantenciones-index .hero-mantenciones-panel__heading-line,
body.page-mantenciones-marca .hero-mantenciones-panel__heading-line {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.home-hero-banners .hero-mantenciones-panel__heading-price,
body.page-mantenciones-index .hero-mantenciones-panel__heading-price,
body.page-mantenciones-marca .hero-mantenciones-panel__heading-price {
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

.home-hero-banners .hero-mantenciones-panel__price,
body.page-mantenciones-index .hero-mantenciones-panel__price,
body.page-mantenciones-marca .hero-mantenciones-panel__price {
    color: #4da3ff;
    font-weight: 800;
}

.home-hero-banners .hero-mantenciones-panel__heading--legacy,
body.page-mantenciones-index .hero-mantenciones-panel__heading--legacy,
body.page-mantenciones-marca .hero-mantenciones-panel__heading--legacy {
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
}

.home-hero-banners .hero-mantenciones-panel__description,
body.page-mantenciones-index .hero-mantenciones-panel__description,
body.page-mantenciones-marca .hero-mantenciones-panel__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.35vw, 0.98rem);
    line-height: 1.45;
    max-width: 36rem;
}

.home-hero-banners .hero-mantenciones-panel__description p:last-child,
body.page-mantenciones-index .hero-mantenciones-panel__description p:last-child,
body.page-mantenciones-marca .hero-mantenciones-panel__description p:last-child {
    margin-bottom: 0;
}

.home-hero-banners .hero-mantenciones-panel__description[hidden],
body.page-mantenciones-index .hero-mantenciones-panel__description[hidden],
body.page-mantenciones-marca .hero-mantenciones-panel__description[hidden] {
    display: none !important;
}

.home-hero-banners .hero-mantenciones-panel__form,
body.page-mantenciones-index .hero-mantenciones-panel__form,
body.page-mantenciones-marca .hero-mantenciones-panel__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin: 0.15rem 0 0;
}

.home-hero-banners .hero-mantenciones-panel__selects,
body.page-mantenciones-index .hero-mantenciones-panel__selects,
body.page-mantenciones-marca .hero-mantenciones-panel__selects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
    width: 100%;
}

.home-hero-banners .hero-mantenciones-panel__selects .hero-vf-group,
body.page-mantenciones-index .hero-mantenciones-panel__selects .hero-vf-group,
body.page-mantenciones-marca .hero-mantenciones-panel__selects .hero-vf-group {
    flex: 1 1 0;
    min-width: 5.5rem;
    margin: 0;
}

.home-hero-banners .hero-mantenciones-panel__selects .hero-form-select-wrap,
body.page-mantenciones-index .hero-mantenciones-panel__selects .hero-form-select-wrap,
body.page-mantenciones-marca .hero-mantenciones-panel__selects .hero-form-select-wrap {
    width: 100%;
}

.home-hero-banners .hero-mantenciones-panel__submit,
body.page-mantenciones-index .hero-mantenciones-panel__submit,
body.page-mantenciones-marca .hero-mantenciones-panel__submit {
    -webkit-appearance: none;
    appearance: none;
    color-scheme: light;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    background-color: #2f6fed;
    background-image: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: clamp(0.8rem, 1.4vw, 0.92rem);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: var(--font-sans);
    line-height: 1.25;
    text-align: center;
}

.home-hero-banners .hero-mantenciones-panel__submit:hover:not(:disabled),
body.page-mantenciones-index .hero-mantenciones-panel__submit:hover:not(:disabled),
body.page-mantenciones-marca .hero-mantenciones-panel__submit:hover:not(:disabled) {
    background: #3d7ef5;
    transform: translateY(-1px);
}

.home-hero-banners .hero-mantenciones-panel__submit:disabled,
body.page-mantenciones-index .hero-mantenciones-panel__submit:disabled,
body.page-mantenciones-marca .hero-mantenciones-panel__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.page-mantenciones-index .hero-section--mantenciones-search,
body.page-mantenciones-marca .hero-section--mantenciones-search {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    overflow: hidden;
}

body.page-mantenciones-index .hero-section--mantenciones-search .hero-content--mantenciones-search,
body.page-mantenciones-marca .hero-section--mantenciones-search .hero-content--mantenciones-search {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.5rem);
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

body.page-mantenciones-marca .hero-section--mantenciones-search .hero-buttons--mantenciones {
    margin-top: 0;
}

body.page-mantenciones-marca .hero-section--mantenciones-search .hero-buttons--mantenciones .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: #113885;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

body.page-mantenciones-marca .hero-section--mantenciones-search .hero-buttons--mantenciones .btn-primary:hover {
    background: #164299;
    transform: translateY(-2px);
}

/* Selects dentro del panel */
.home-hero-banners .hero-mantenciones-panel .hero-form-select-wrap,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select-wrap,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select-wrap {
    position: relative;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select-wrap::before,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select-wrap::before,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select-wrap::before {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
    z-index: 2;
    font-size: 0.7rem;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.55rem 2rem 0.55rem 0.7rem;
    background-color: #1a1a1a;
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-size: 0.875rem;
    min-height: 42px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-sans);
    color-scheme: dark;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select:disabled,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select:disabled,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #141414;
    color: rgba(255, 255, 255, 0.75);
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select:focus,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select:focus,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select:focus {
    outline: none;
    background-color: #1a1a1a;
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.25);
    color: #ffffff;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select option,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select option,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.home-hero-banners .hero-mantenciones-panel .hero-loading-spinner,
body.page-mantenciones-index .hero-mantenciones-panel .hero-loading-spinner,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-loading-spinner {
    display: none;
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4da3ff;
    border-radius: 50%;
    animation: hero-mant-vf-spin 0.8s linear infinite;
    z-index: 3;
    pointer-events: none;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-loading-spinner,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-loading-spinner,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-loading-spinner {
    display: block;
}

.home-hero-banners .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-form-select,
body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-form-select,
body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select-wrap.loading .hero-form-select {
    padding-right: 2.4rem;
}

@keyframes hero-mant-vf-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (min-width: 769px) {
    body.page-mantenciones-index .hero-section--mantenciones-search,
    body.page-mantenciones-marca .hero-section--mantenciones-search {
        aspect-ratio: unset;
        height: var(--hero-desktop-height, 538px);
        min-height: var(--hero-desktop-height, 538px);
        max-height: var(--hero-desktop-height, 538px);
    }

    body.page-mantenciones-index .hero-section--mantenciones-search .hero-content--mantenciones-search,
    body.page-mantenciones-marca .hero-section--mantenciones-search .hero-content--mantenciones-search {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.page-mantenciones-index .hero-section--mantenciones-search,
    body.page-mantenciones-marca .hero-section--mantenciones-search {
        aspect-ratio: 25 / 42;
        height: auto;
        max-height: none;
    }

    body.page-mantenciones-index .hero-section--mantenciones-search .hero-content--mantenciones-search,
    body.page-mantenciones-marca .hero-section--mantenciones-search .hero-content--mantenciones-search {
        padding: var(--hero-content-mobile-inset-top, 0.65rem) 0.7rem 1rem;
        align-items: flex-start;
    }

    /* Móvil: fila con wrap; ancho de cada select vía hero-mantenciones-select-fit.js */
    .home-hero-banners .hero-mantenciones-panel__selects,
    body.page-mantenciones-index .hero-mantenciones-panel__selects,
    body.page-mantenciones-marca .hero-mantenciones-panel__selects {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0.45rem;
    }

    .home-hero-banners .hero-mantenciones-panel__selects .hero-vf-group,
    body.page-mantenciones-index .hero-mantenciones-panel__selects .hero-vf-group,
    body.page-mantenciones-marca .hero-mantenciones-panel__selects .hero-vf-group {
        flex: 0 1 auto;
        width: auto;
        min-width: 5.5rem;
        max-width: 100%;
    }

    .home-hero-banners .hero-mantenciones-panel__selects .hero-form-select-wrap,
    body.page-mantenciones-index .hero-mantenciones-panel__selects .hero-form-select-wrap,
    body.page-mantenciones-marca .hero-mantenciones-panel__selects .hero-form-select-wrap {
        width: auto;
    }

    .home-hero-banners .hero-mantenciones-panel .hero-form-select,
    body.page-mantenciones-index .hero-mantenciones-panel .hero-form-select,
    body.page-mantenciones-marca .hero-mantenciones-panel .hero-form-select {
        width: auto;
        max-width: 100%;
    }

    body.page-mantenciones-marca .hero-mantenciones-panel__ver-otras {
        display: none;
    }

    .home-hero-banners .hero-mantenciones-panel__description,
    body.page-mantenciones-index .hero-mantenciones-panel__description,
    body.page-mantenciones-marca .hero-mantenciones-panel__description {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body.page-mantenciones-index .hero-section--mantenciones-search .hero-content--mantenciones-search,
    body.page-mantenciones-marca .hero-section--mantenciones-search .hero-content--mantenciones-search {
        padding: 0.55rem 0.525rem 0.85rem;
    }
}
