:root {
    --tm-eqd-blue: #128CEB;
    --tm-eqd-navy: #262E4F;
    --tm-eqd-steel: #5E748B;
    --tm-eqd-soft: #EEF4FB;
    --tm-eqd-line: #E3EAF2;
}

.tm-eqd-admin-message {
    background: #eef4fb;
    border: 1px solid #c7ddf3;
    border-left: 4px solid var(--tm-eqd-blue);
    border-radius: 6px;
    color: var(--tm-eqd-navy);
    margin: 1rem auto;
    max-width: 1180px;
    padding: 1rem;
}

.tm-eqd-section {
    font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: clamp(2.5rem, 5vw, 4rem) 1rem;
}

.tm-eqd-container {
    margin: 0 auto;
    max-width: var(--theme-container-width, 1180px);
}

.tm-eqd-head {
    align-items: flex-end;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    margin-bottom: 1.4rem;
}

.tm-eqd-heading {
    text-align: left;
}

.tm-eqd-eyebrow {
    color: var(--tm-eqd-blue);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-eqd-heading h2 {
    color: var(--tm-eqd-navy);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0.35rem 0 0.45rem;
    text-transform: uppercase;
}

.tm-eqd-heading p {
    color: var(--tm-eqd-steel);
    font-size: 1rem;
    margin: 0;
}

.tm-eqd-all {
    align-items: center;
    color: var(--tm-eqd-blue);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.tm-eqd-all:hover {
    color: #0F7BCF;
    text-decoration: underline;
}

.tm-eqd-carousel {
    position: relative;
}

.tm-eqd-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tm-eqd-viewport::-webkit-scrollbar {
    display: none;
}

.tm-eqd-track {
    display: flex;
    gap: 1rem;
}

.tm-eqd-card {
    background: #fff;
    border: 1px solid var(--tm-eqd-line);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(38, 46, 79, 0.08);
    display: flex;
    flex: 0 0 calc((100% - 2rem) / 3);
    max-height: 340px;
    min-height: 240px;
    overflow: hidden;
    scroll-snap-align: start;
}

.tm-eqd-media {
    align-items: center;
    background: #F5F7FA;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex: 0 0 45%;
    justify-content: center;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.tm-eqd-media img {
    aspect-ratio: 4 / 3;
    display: block;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
    width: 100%;
}

.tm-eqd-placeholder {
    color: var(--tm-eqd-steel);
    font-size: 0.82rem;
    padding: 1rem;
    text-align: center;
}

.tm-eqd-badge {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    left: 10px;
    line-height: 1;
    padding: 5px 8px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

.tm-eqd-badge-usado {
    background: #5E748B;
}

.tm-eqd-badge-nuevo {
    background: #1E7E34;
}

.tm-eqd-badge-reacondicionado {
    background: #E65C00;
}

.tm-eqd-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
}

.tm-eqd-info h3 {
    color: var(--tm-eqd-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 5px;
}

.tm-eqd-year {
    color: var(--tm-eqd-steel);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

.tm-eqd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 13px 0 14px;
}

.tm-eqd-chips span {
    align-items: center;
    background: var(--tm-eqd-soft);
    border-radius: 4px;
    color: var(--tm-eqd-blue);
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    padding: 6px 7px;
}

.tm-eqd-cta {
    align-items: center;
    background: var(--tm-eqd-blue);
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 400;
    justify-content: center;
    margin-top: auto;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    width: 100%;
}

.tm-eqd-cta:hover {
    background: #0F7BCF;
    color: #fff !important;
}

.tm-eqd-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(94, 116, 139, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(38, 46, 79, 0.12);
    color: var(--tm-eqd-navy);
    cursor: pointer;
    display: flex;
    font-size: 2rem;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 0.16rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    z-index: 4;
}

.tm-eqd-arrow:hover {
    background: var(--tm-eqd-blue);
    color: #fff;
}

.tm-eqd-arrow[hidden] {
    display: none;
}

.tm-eqd-prev {
    left: -18px;
}

.tm-eqd-next {
    right: -18px;
}

.tm-eqd-dots {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.tm-eqd-dot {
    background: #CBD5E1;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 9px;
    padding: 0;
    transition: width 0.2s ease, background-color 0.2s ease;
    width: 9px;
}

.tm-eqd-dot.is-active {
    background: var(--tm-eqd-blue);
    width: 24px;
}

@media (max-width: 1024px) {
    .tm-eqd-card {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .tm-eqd-prev {
        left: -10px;
    }

    .tm-eqd-next {
        right: -10px;
    }
}

@media (max-width: 640px) {
    .tm-eqd-head {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .tm-eqd-all {
        justify-content: flex-start;
    }

    .tm-eqd-card {
        flex-basis: 100%;
        max-height: none;
        min-height: 205px;
    }

    .tm-eqd-media {
        flex-basis: 40%;
    }

    .tm-eqd-info {
        padding: 12px;
    }

    .tm-eqd-info h3 {
        font-size: 14px;
    }

    .tm-eqd-year {
        font-size: 12px;
    }

    .tm-eqd-chips {
        gap: 5px;
        margin: 10px 0 12px;
    }

    .tm-eqd-chips span {
        font-size: 11px;
        padding: 5px 6px;
    }

    .tm-eqd-cta {
        font-size: 13px;
        min-height: 34px;
    }

    .tm-eqd-arrow {
        display: none;
    }
}

@media (max-width: 380px) {
    .tm-eqd-chips span {
        font-size: 10px;
    }
}
