/*
 * Páginas de valuación del automotor.
 *
 * Archivo propio y no SASS porque el front de este proyecto no se puede
 * recompilar: `bower_components` está incompleto y `npm run prod` no termina.
 * Se carga desde @yield('styles'), en el <head>. NO puede ir en un <style>
 * dentro del contenido: eso queda dentro de <div id="app">, donde monta Vue,
 * y Vue compila ese DOM como plantilla y borra las etiquetas <style>.
 *
 * Todo cuelga de .vln para no tocar el resto del sitio, que comparte el mismo
 * Bootstrap. Los colores son los que ya usa informe.css: #297d99 y #03b9ac.
 */

.vln { color: #4c4c4c; }

.vln a { color: #297d99; }

/* Cabecera ---------------------------------------------------------------- */

.vln-hero {
    background: linear-gradient(135deg, #297d99 0%, #03b9ac 100%);
    color: #fff;
    padding: 3rem 1.25rem 3.25rem;
    text-align: center;
}

.vln-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 .6rem;
    line-height: 1.15;
}

.vln-hero .vln-sub {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 34em;
    margin: 0 auto 1.75rem;
    opacity: .95;
}

.vln-hero .vln-migas { color: rgba(255, 255, 255, .85); margin-bottom: 1rem; }
.vln-hero .vln-migas a { color: #fff; text-decoration: underline; }

/* Buscador ---------------------------------------------------------------- */

.vln-buscador-caja {
    position: relative;
    max-width: 36em;
    margin: 0 auto;
    text-align: left;
}

.vln-buscador {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
}

.vln-buscador input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: .95rem 1.1rem;
    font-size: 1.02rem;
    color: #4c4c4c;
}

.vln-buscador input:focus { outline: 0; }

.vln-buscador button {
    flex: 0 0 auto;
    border: 0;
    background: #297d99;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background .15s ease;
}

.vln-buscador button:hover { background: #1f6580; }

.vln-hero .vln-pie {
    margin: 1rem 0 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}

/* Cuerpo ------------------------------------------------------------------ */

.vln-cuerpo { padding: 2.5rem 0 1rem; }

.vln-cuerpo h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #4c4c4c;
    margin: 2.25rem 0 1rem;
}

.vln-cuerpo h2:first-child { margin-top: 0; }

.vln-cuerpo p { line-height: 1.7; max-width: 44em; }

/* Fichas de marca --------------------------------------------------------- */

.vln-destacadas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: .75rem;
    margin-bottom: .5rem;
}

.vln-destacada {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem;
    padding: .75rem;
    border: 1px solid #e3e7e9;
    border-radius: 8px;
    background: #fff;
    color: #297d99 !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.vln-destacada:hover,
.vln-destacada:focus {
    border-color: #03b9ac;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.vln-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.vln-grid > li { margin: 0; }

.vln-chip {
    display: block;
    padding: .4rem .8rem;
    border: 1px solid #e3e7e9;
    border-radius: 999px;
    background: #fff;
    color: #297d99 !important;
    font-size: .92rem;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.vln-chip:hover,
.vln-chip:focus {
    border-color: #03b9ac;
    background: #f4fbfb;
    text-decoration: none;
}

.vln-letra {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #9aa5ab;
    margin: 1.4rem 0 .55rem;
}

/* Resultados y modelos ---------------------------------------------------- */

.vln-lista { list-style: none; padding: 0; margin: 0; }

.vln-lista > li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    padding: .7rem .25rem;
    border-bottom: 1px solid #f0f2f3;
}

.vln-lista > li:hover { background: #fafcfc; }

.vln-lista .vln-nombre { font-weight: 600; }

.vln-lista .vln-precio {
    margin-left: auto;
    font-weight: 700;
    color: #297d99;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vln-tipo {
    padding: .1rem .5rem;
    font-size: .74rem;
    color: #6c757d;
    background: #f1f4f5;
    border-radius: 4px;
    text-transform: lowercase;
}

/* Tabla de valuación ------------------------------------------------------ */

.vln-tabla {
    width: 100%;
    max-width: 28em;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.vln-tabla th {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9aa5ab;
    font-weight: 700;
    padding: .5rem .75rem;
    border-bottom: 2px solid #e3e7e9;
    text-align: left;
}

.vln-tabla th.vln-num, .vln-tabla td.vln-num { text-align: right; }

.vln-tabla td {
    padding: .6rem .75rem;
    border-bottom: 1px solid #f0f2f3;
    font-variant-numeric: tabular-nums;
}

.vln-tabla tbody tr:hover td { background: #fafcfc; }

.vln-tabla .vln-valor { font-weight: 700; color: #297d99; white-space: nowrap; }

.vln-tabla .vln-fila-0km td { background: rgba(3, 185, 172, .08); }
.vln-tabla .vln-fila-0km:hover td { background: rgba(3, 185, 172, .12); }
.vln-tabla .vln-fila-0km .vln-anio { font-weight: 700; color: #03b9ac; }

.vln-carroceria {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9aa5ab;
    margin: 1.75rem 0 .5rem;
}

/* Avisos y llamada -------------------------------------------------------- */

.vln-nota {
    border-left: 3px solid #03b9ac;
    background: #f6fbfb;
    padding: .9rem 1.1rem;
    border-radius: 0 6px 6px 0;
    font-size: .95rem;
    line-height: 1.65;
    margin: 1.5rem 0;
    max-width: 44em;
}

.vln-cta {
    border: 1px solid #e3e7e9;
    border-top: 3px solid #297d99;
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin: 2.5rem 0 1rem;
    background: #fff;
    max-width: 44em;
}

.vln-cta h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.vln-cta p { margin-bottom: .9rem; }

.vln-boton {
    display: inline-block;
    padding: .65rem 1.5rem;
    background: #297d99;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background .15s ease;
}

.vln-boton:hover, .vln-boton:focus { background: #03b9ac; text-decoration: none; }

.vln-vigencia { font-size: .9rem; color: #9aa5ab; }
.vln-migas { font-size: .9rem; color: #6c757d; }
.vln-descargo { font-size: .85rem; color: #9aa5ab; margin-top: 2.5rem; }

@media (max-width: 767px) {
    .vln-hero { padding: 2.25rem 1rem 2.5rem; }
    .vln-hero h1 { font-size: 1.8rem; }
    .vln-hero .vln-sub { font-size: 1rem; }
    .vln-buscador button { padding: 0 1rem; font-size: .9rem; }
    .vln-lista .vln-precio { margin-left: 0; width: 100%; }
}

/* Autocompletado ---------------------------------------------------------- */

.vln-sugerencias {
    position: absolute;
    z-index: 30;
    top: calc(100% + .4rem);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: .3rem 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    max-height: 22rem;
    overflow-y: auto;
}

.vln-sugerencias li { margin: 0; }

.vln-sugerencias a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    padding: .6rem .95rem;
    color: #4c4c4c !important;
    text-decoration: none;
}

.vln-sugerencias li.vln-activa a,
.vln-sugerencias a:hover {
    background: #f2fafa;
    text-decoration: none;
}

.vln-s-nombre { font-weight: 600; color: #297d99; }

.vln-s-tipo {
    padding: .05rem .45rem;
    font-size: .72rem;
    color: #6c757d;
    background: #f1f4f5;
    border-radius: 4px;
    text-transform: lowercase;
}

.vln-s-valor {
    margin-left: auto;
    font-size: .85rem;
    font-weight: 600;
    color: #9aa5ab;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
    .vln-s-valor { margin-left: 0; width: 100%; }
}
