* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f6f6;
    color: #222;
}


/* PÁGINA */

.pagina {
    width: 100%;
    padding: 30px 0 50px;
}


/* LOGO */

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo img {
    width: 270px;
    height: auto;
}


/* COTIZADOR */

.cotizador {
    width: 82%;
    max-width: 1100px;
    margin: auto;
    background: white;
    padding: 28px 32px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}


/* TÍTULO */

h1 {
    margin: 0 0 14px;
    font-size: 26px;
}


/* BARRA DE PROGRESO */

.barra {
    width: 100%;
    height: 3px;
    background: #d7d7d7;
}

.barra-roja {
    width: 52%;
    height: 100%;
    background: #e31820;
}

.barra-completa {
    width: 100%;
}


/* PASOS */

.pasos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 13px;
    margin-bottom: 32px;
    font-size: 13px;
}

.paso {
    color: #a1a1a1;
}

.paso.activo {
    color: #222;
}


/* FILAS */

.fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 26px;
}


/* CAMPOS */

.campo {
    width: 100%;
}

.campo label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}


/* ORIGEN / DESTINO */

.input-box {
    height: 50px;
    border: 1px solid #b6bcc3;
    border-radius: 7px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: white;
}

.input-box:focus-within {
    border-color: #e31820;
    box-shadow: 0 0 0 2px rgba(227, 24, 32, 0.08);
}

.input-box span {
    color: #90959c;
    font-size: 20px;
    margin-right: 10px;
}


/* SELECT DE ORIGEN / DESTINO */

.input-box select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    color: #222;
}

.input-box select:focus {
    border: 0;
    box-shadow: none;
}


/* MENSAJE DE ERROR */

.mensaje-error {
    color: #d60000;
    font-size: 14px;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 18px;
    min-height: 18px;
}


/* SELECT GENERALES */

select {
    width: 100%;
    height: 50px;
    border: 1px solid #b6bcc3;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 15px;
    background: white;
    outline: none;
    cursor: pointer;
}

select:focus {
    border-color: #e31820;
    box-shadow: 0 0 0 2px rgba(227, 24, 32, 0.08);
}


/* MEDIDAS */

.medidas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 35px;
    margin-bottom: 28px;
}

.medida {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}


/* ICONOS */

.icono {
    width: 30px;
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    margin-bottom: 8px;
}


/* INPUT CON UNIDAD */

.input-unidad {
    height: 50px;
    border: 1px solid #b6bcc3;
    border-radius: 7px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: white;
}

.input-unidad:focus-within {
    border-color: #e31820;
    box-shadow: 0 0 0 2px rgba(227, 24, 32, 0.08);
}

.input-unidad input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.input-unidad span {
    font-size: 14px;
    margin-left: 6px;
}


/* VALOR DECLARADO */

.valor {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 310px;
}

.valor-campo {
    width: 100%;
}


/* SEPARADOR */

.separador {
    height: 1px;
    background: #dedede;
    margin: 30px 0 18px;
}


/* BOTONES */

.botones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

button {
    cursor: pointer;
    border: 0;
    font-family: inherit;
}


/* ATRÁS */

.atras {
    background: transparent;
    color: #e31820;
    font-size: 15px;
    font-weight: 600;
}


/* COTIZAR / CONTINUAR */

.siguiente {
    background: #e31820;
    color: white;
    padding: 12px 30px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.siguiente:hover {
    background: #c9151c;
}


/* OCULTAR PANTALLAS */

.pantalla-oculta {
    display: none !important;
}


/* ========================= */
/* PANTALLA 2 */
/* ========================= */

.resultado-ruta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.resultado-localidad {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.resultado-localidad div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resultado-localidad small {
    color: #777;
    font-size: 13px;
}

.resultado-localidad strong {
    color: #222;
    font-size: 16px;
    line-height: 1.35;
}

.resultado-icono {
    font-size: 24px;
}

.flecha-ruta {
    color: #d71920;
    font-size: 27px;
    font-weight: bold;
}


/* RESUMEN DEL ENVÍO */

.resumen-envio {
    margin-top: 25px;
}

.resumen-envio h2 {
    font-size: 19px;
    margin-bottom: 18px;
    color: #222;
}

.resumen-fila {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.resumen-fila span {
    color: #777;
}

.resumen-fila strong {
    color: #222;
    text-align: right;
}


/* PRECIO DEMO */

.precio-demo {
    margin-top: 30px;
    background: #fafafa;
    border: 2px solid #d71920;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
}

.precio-demo span {
    display: block;
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
}

.precio-demo strong {
    display: block;
    color: #d71920;
    font-size: 34px;
    margin-bottom: 7px;
}

.precio-demo small {
    color: #888;
}


/* TABLET */

@media (max-width: 900px) {

    .cotizador {
        width: 90%;
    }

    .fila {
        grid-template-columns: 1fr;
    }

    .medidas {
        grid-template-columns: 1fr 1fr;
    }

}


/* PANTALLAS CHICAS */

@media (max-width: 700px) {

    .resultado-ruta {
        flex-direction: column;
        align-items: flex-start;
    }

    .flecha-ruta {
        transform: rotate(90deg);
        align-self: center;
    }

    .resumen-fila {
        gap: 20px;
    }

}


/* CELULAR */

@media (max-width: 550px) {

    .pagina {
        padding-top: 20px;
    }

    .cotizador {
        width: 94%;
        padding: 22px 18px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo img {
        width: 220px;
    }

    h1 {
        font-size: 23px;
    }

    .pasos {
        margin-bottom: 25px;
    }

    .medidas {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .valor {
        width: 100%;
    }

    .resultado-ruta {
        padding: 20px;
    }

    .resultado-localidad strong {
        font-size: 15px;
    }

    .precio-demo {
        padding: 20px;
    }

    .precio-demo strong {
        font-size: 30px;
    }

    .botones {
        flex-wrap: wrap;
    }

    .siguiente {
        padding: 12px 24px;
    }

}