               *{
                    margin:0;
                    padding: 0;
                    box-sizing: border-box;
                    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
                }

                body{
                    background-color: #494949;
                    min-height: 100vh;
                }

                /*Sección buscador */
                .hero {
                    width: 100%;
                    aspect-ratio: 1/1;
                    max-height: 90vh;
                    background-color: #000000;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    gap: 2rem;
                    padding: 2rem;
                    color:#BD0000;
                    align-items: center;
                    
                }
                .hero h1{
                    font-size: clamp(1.8rem,5vw,3rem);
                    font-family: "Rubik Glitch", system-ui;
                    text-align: center;
                    letter-spacing: 1px;
                    font-style: italic;
                    font-weight: 100;
                }
                /* buscador */
                .search-wrapper{
                    position: relative;
                    width: 100%;
                    max-width: 600px;
                }
                .suggestions{
                    position: absolute;
                    top: calc(100% + 6px);
                    left: 0;
                    width: 100%;
                    background-color: #D9D9D9;
                    border-radius: 15px;
                    box-shadow: 0 8px 24px rgba(29,0,89,.35);
                    list-style: none;
                    overflow: hidden;
                    max-height: 0;
                    opacity: 0;
                    transform: translateY(-6px);
                    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
                    z-index: 10;
                }
                .suggestions.open{
                    max-height: 320px;
                    opacity: 1;
                    transform: translateY(0);
                    overflow-y: auto;
                }
                .suggestions li{
                    padding: 0.85rem 1.5rem;
                    color: #D90000;
                    font-size: 0.95rem;
                    cursor: pointer;
                    border-bottom: 1px solid rgba(54,14,135,0.12);
                    transition: background-color 0.15s;
                }
                .suggestions li:last-child{
                    border-bottom: none;
                }
                
                .suggestions li:hover, .suggestions li.active{
                    background-color: #d6c6ff;
                }
                .suggestions li mark{
                    background: transparent;
                    color: #D90000;
                    font-weight: 700;
                }
                .suggestions li .marca{
                    font-size: 0.75rem;
                    color: #D90000;
                    margin-left: 0.5rem;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                }
                .suggestions .no-results{
                    color:#D90000;
                    font-style: italic;
                    cursor: default;
                }
                .suggestions .no-results:hover{
                    background: transparent;
                }
.search-box{
    display: flex;
    width:100%;
    max-width: 600px;
    background-color: #EEE6FF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(29, 0,89,0.25);
}
.search-box input{
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #F00000;
}
.search-box button{
    padding: 0 1.8rem;
    border: none;
    background-color: #BD0000;
    color: aliceblue;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-box button:hover{
    background-color: #BD0000;
}
.hero p{
    font-size: 1.2rem;
    color:aliceblue;
    text-align: center;
    font-family: "Leckerli One",cursive;
 }
 /* ============================================================
   PÁGINA DE RESULTADOS (busqueda.html)
   ============================================================ */

.results-page {
    background-color: #494949;
    min-height: 100vh;
}

/* Header con logo + buscador pequeño */
.results-header {
    background-color: #000000;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(29, 0, 89, 0.35);
}

.logo {
    font-family: "Rubik Glitch", system-ui;
    font-size: 1.6rem;
    color: #bd0000;
    text-decoration: none;
    letter-spacing: 1px;
    font-style: italic;
}

.search-box--small {
    max-width: 400px;
    margin: 0;
}

/* Contenido principal */
.results-main {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.results-title {
    color: #bd0000;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.results-title span {
    color: #ffffff;
    font-family: "Leckerli One", cursive;
}

.results-count {
    color: #b9a6ff;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Grid de cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

/* Card de moto */
.moto-card {
    background-color: #EEE6FF;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.moto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.moto-card__img {
    background-color: #d6c6ff;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.moto-card__body {
    padding: 1rem 1.1rem 0.6rem;
    flex: 1;
}

.moto-card__model {
    color: #1D0059;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.moto-card__brand {
    font-size: 0.75rem;
    color: #4A1FA8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moto-card__btn {
    margin: 0 1.1rem 1.1rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background-color: #360E87;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.moto-card__btn:hover {
    background-color: #3700B0;
}

/* Sin resultados */
.no-results-page {
    color: #F9BDEA;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 3rem;
    line-height: 1.8;
}

.no-results-page a {
    color: #ffffff;
    text-decoration: underline;
}
.ficha-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    color: #fff;
}

.back-link {
    display: inline-block;
    color: #F9BDEA;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.back-link:hover {
    text-decoration: underline;
}

.ficha {
    background-color: #EEE6FF;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ficha__hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background-color: #d6c6ff;
    flex-wrap: wrap;
}

.ficha__img {
    width: 160px;
    height: 160px;
    background-color: #F9BDEA;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    flex-shrink: 0;
}

.ficha__head {
    flex: 1;
    min-width: 200px;
    color: #1D0059;
}

.ficha__brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4A1FA8;
    font-weight: 700;
}

.ficha__model {
    font-size: 1.8rem;
    margin: 0.2rem 0 0.6rem;
}

.ficha__cat {
    display: inline-block;
    background-color: #702EFF;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ficha__price {
    margin-top: 0.8rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #360E87;
}

.ficha__specs {
    padding: 1.5rem;
}

.ficha__subtitle {
    color: #1D0059;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.specs-list li {
    background-color: #F9BDEA;
    color: #1D0059;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.specs-list li span {
    font-size: 0.85rem;
    color: #4A1FA8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-list li strong {
    font-size: 1rem;
}

.ficha__actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn--primary {
    background-color: #360E87;
    color: #fff;
}
.btn--primary:hover {
    background-color: #3700B0;
}

/* Responsive */
@media (max-width: 500px) {
    .ficha__hero {
        flex-direction: column;
        text-align: center;
    }
    .ficha__img {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }
}
/* ============================================================
   BARRA FLOTANTE DE COMPARACIÓN
   ============================================================ */

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1D0059;
    border-top: 3px solid #702EFF;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    z-index: 100;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

.compare-bar.open {
    transform: translateY(0);
}

.compare-bar__items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.compare-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #EEE6FF;
    color: #1D0059;
    padding: 0.35rem 0.5rem 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    max-width: 220px;
}

.compare-chip__emoji {
    font-size: 1rem;
}

.compare-chip__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

.compare-chip__remove {
    background: transparent;
    border: none;
    color: #360E87;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    border-radius: 50%;
}

.compare-chip__remove:hover {
    background-color: #d6c6ff;
}

.compare-bar__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.compare-bar__btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.compare-bar__btn--primary {
    background-color: #702EFF;
    color: #fff;
}

.compare-bar__btn--primary:hover {
    background-color: #3700B0;
}

.compare-bar__btn--ghost {
    background-color: transparent;
    color: #F9BDEA;
    border: 1px solid #F9BDEA;
}

.compare-bar__btn--ghost:hover {
    background-color: rgba(249, 189, 234, 0.15);
}

/* Espacio al final del body para que la barra no tape contenido */
body:has(.compare-bar.open) {
    padding-bottom: 80px;
}

/* ============================================================
   BOTONES EXTRA EN LAS CARDS
   ============================================================ */

.moto-card__actions {
    display: flex;
    gap: 0.5rem;
    margin: 0 1.1rem 1.1rem;
}

.moto-card__actions .moto-card__btn {
    flex: 1;
    margin: 0;
}

.moto-card__btn--ghost {
    background-color: transparent;
    color: #360E87;
    border: 1.5px solid #360E87;
}

.moto-card__btn--ghost:hover {
    background-color: #360E87;
    color: #fff;
}

/* Botón danger (quitar de comparar) */
.btn--danger {
    background-color: #b00040;
    color: #fff;
}

.btn--danger:hover {
    background-color: #8a0032;
}

/* ============================================================
   PÁGINA COMPARAR
   ============================================================ */

.comparar-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    color: #fff;
}

.comparar-title {
    font-family: "Rubik Glitch", system-ui;
    font-size: 1.8rem;
    color: #F9BDEA;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.comparar-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.comparar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #EEE6FF;
    min-width: 600px;
}

.comparar-table th,
.comparar-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(54, 14, 135, 0.12);
    text-align: left;
    color: #1D0059;
}

.comparar-table thead th {
    background-color: #d6c6ff;
    vertical-align: middle;
}

.comparar-corner {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4A1FA8;
    width: 140px;
}

.comparar-th {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-align: center;
}

.comparar-th__img {
    font-size: 2rem;
}

.comparar-th__brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4A1FA8;
}

.comparar-th__model {
    font-size: 1rem;
    color: #1D0059;
}

.comparar-label {
    background-color: #F9BDEA;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4A1FA8;
    font-weight: 700;
    width: 140px;
}

.comparar-table td.is-best {
    background-color: #c8f5d1;
    font-weight: bold;
}

.best-badge {
    color: #1a7a35;
    font-weight: bold;
}

/* Responsive móvil: primera columna sticky */
@media (max-width: 600px) {
    .comparar-table th:first-child,
    .comparar-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
    }
}