.custom-ruta-header, .custom-ruta-grid, .custom-ruta-footer {
    max-width: 1140px;
    margin: auto;
    padding: 0 20px;
}

.custom-ruta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 25px !important;
}

.custom-ruta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));    
    gap: 30px;
    margin-bottom: 25px;
}

.custom-ruta-local {
    border-top: 3px solid #EF3E56;
    padding: 42px 0;
}

.custom-ruta-local h4 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
}

.custom-ruta-recetas a {
    text-decoration: none;
    font-size: initial;
    color: initial;
    font-size: 16px;
    font-weight: 400;
    display: block;
}

.custom-ruta-recetas-item {
    width: fit-content;
}

.custom-ruta-recetas-item:hover {
    text-decoration: underline;
}

.custom-ruta-recetas > a:not(:last-child), .custom-ruta-recetas-leyenda:not(:last-child) {
    margin-bottom: 10px !important;
}

.custom-ruta-recetas-leyenda:nth-child(3) {
    margin-top: 25px;
}

.custom-ruta-recetas-item p, .custom-ruta-recetas-leyenda p {
    display: inline;
    width: fit-content;
    line-height: 25px;
}

.custom-ruta-recetas-item img, .custom-ruta-recetas-leyenda img {
    width: 25px;
    height: 25px;
    margin-bottom: 0 !important;
    margin-right: 7px;
    float: left;
}

.custom-ruta-footer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.custom-ruta-footer > * {
    flex: calc(50% - 30px);
}

.custom-ruta-footer h3 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 0.5em !important;
}

@media (max-width: 800px) {
    .custom-ruta-footer {
        flex-wrap: wrap;
    }

    .custom-ruta-footer > * {
        flex: 100% !important;
    }
}



.custom-ruta-footer > iframe {
    display: none;
}

@media (min-width: 800px) {
    .custom-ruta-folleto {
        max-width: 80%;
    }
}